diff options
Diffstat (limited to 'test/built-ins/Date/prototype/valueOf')
6 files changed, 9 insertions, 9 deletions
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js index 9492a8ae8..6a33b59ee 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.valueOf; -if (x === 1) +if(x === 1) Date.prototype.valueOf = 2; else Date.prototype.valueOf = 1; diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js index d6a5b8eb0..96d3028b5 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.8_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.valueOf === false) { +if (delete Date.prototype.valueOf === false) { $ERROR('#1: The Date.prototype.valueOf property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js index 81f7098e9..dd791639f 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('valueOf')) { $ERROR('#1: The Date.prototype.valueOf property has the attribute DontEnum'); } -for (var x in Date.prototype) { - if (x === "valueOf") { +for(var x in Date.prototype) { + if(x === "valueOf") { $ERROR('#2: The Date.prototype.valueOf has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js index 8a95d40db..514ec3605 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.8_A2_T1 description: The "length" property of the "valueOf" is 0 ---*/ -if (Date.prototype.valueOf.hasOwnProperty("length") !== true) { +if(Date.prototype.valueOf.hasOwnProperty("length") !== true){ $ERROR('#1: The valueOf has a "length" property'); } -if (Date.prototype.valueOf.length !== 0) { +if(Date.prototype.valueOf.length !== 0){ $ERROR('#2: The "length" property of the valueOf is 0'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js index 3ad642916..cdebc7dd5 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.8_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.valueOf.length !== true) { +if (delete Date.prototype.valueOf.length !== true) { $ERROR('#1: The Date.prototype.valueOf.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js index dfedf8c62..e7ab16930 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.valueOf.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.valueOf.length property has the attribute DontEnum'); } -for (var x in Date.prototype.valueOf) { - if (x === "length") { +for(var x in Date.prototype.valueOf) { + if(x === "length") { $ERROR('#2: The Date.prototype.valueOf.length has the attribute DontEnum'); } } |