diff options
Diffstat (limited to 'test/built-ins/Object/prototype/valueOf')
13 files changed, 22 insertions, 24 deletions
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js index c8d3c25a5..83df8a3bd 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js @@ -17,9 +17,7 @@ if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { var obj = Object.prototype.valueOf.length; -verifyNotWritable(Object.prototype.valueOf, "length", null, function() { - return "shifted"; -}); +verifyNotWritable(Object.prototype.valueOf, "length", null, function(){return "shifted";}); //CHECK#2 if (Object.prototype.valueOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js index b09d95dea..a041be8bf 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js @@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property. ---*/ assert.throws(TypeError, function() { - Object.prototype.valueOf.call(undefined); + Object.prototype.valueOf.call(undefined); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js index bff652786..f576d726f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js @@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property. ---*/ assert.throws(TypeError, function() { - (1, Object.prototype.valueOf)(); + (1,Object.prototype.valueOf)(); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js index 147a31aee..4b296a9c2 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js @@ -12,5 +12,5 @@ description: Checking Object.prototype.valueOf when called as a global function. var v = Object.prototype.valueOf; assert.throws(TypeError, function() { - v(); + v(); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js index 31e763a47..b138c58dc 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object(1.1); +var obj=new Object(1.1); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== 1.1) { +if (obj.valueOf()!==1.1) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js index 116cfeec6..7cddd7100 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object(true); +var obj=new Object(true); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== true) { +if (obj.valueOf()!==true) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js index 7a62551a3..0374674c8 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object("greenfield"); +var obj=new Object("greenfield"); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== "greenfield") { +if (obj.valueOf()!=="greenfield") { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js index b5e10ce3f..0c1e63062 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object; +var obj=new Object; //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== obj) { +if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js index ad158cea2..4ab7b5b4f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object(null); +var obj=new Object(null); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== obj) { +if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js index b371d63d0..bbf95febd 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object(undefined); +var obj=new Object(undefined); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== obj) { +if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js index 61befa57c..e8a246064 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj = new Object(void 0); +var obj=new Object(void 0); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf() !== obj) { +if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js index 931f2d41f..b9cc6e21f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.valueOf.prototype !== undefined) { - $ERROR('#1: Object.prototype.valueOf has not prototype property' + Object.prototype.valueOf.prototype); + $ERROR('#1: Object.prototype.valueOf has not prototype property'+Object.prototype.valueOf.prototype); } // diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js index 424e64330..384ef8319 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js @@ -21,8 +21,8 @@ if (Object.prototype.valueOf.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.valueOf) { - if (p === "length") - $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); +for (var p in Object.prototype.valueOf){ + if (p==="length") + $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); } // |