summaryrefslogtreecommitdiff
path: root/test/built-ins/String/S15.5.2.1_A1_T7.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/S15.5.2.1_A1_T7.js')
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T7.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/built-ins/String/S15.5.2.1_A1_T7.js b/test/built-ins/String/S15.5.2.1_A1_T7.js
index 9ff917a50..5ce2ae1ac 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T7.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T7.js
@@ -11,9 +11,7 @@ description: Creating string object with "new String({})"
var __stored__Object__prototype__toString = Object.prototype.toString;
-Object.prototype.toString = function() {
- return "SHIFTED"
-};
+Object.prototype.toString=function(){return "SHIFTED"};
var __str = new String({});
@@ -22,7 +20,7 @@ Object.prototype.toString = __stored__Object__prototype__toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
+ $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,15 +28,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
+ $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str != "SHIFTED") {
- $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str ==' + __str);
+if (__str !="SHIFTED") {
+ $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str =='+__str );
}
//
//////////////////////////////////////////////////////////////////////////////