diff options
Diffstat (limited to 'test/built-ins/Date/prototype/setHours')
7 files changed, 10 insertions, 12 deletions
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js index 95b5a5a21..7b709c759 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setHours; -if (x === 1) +if(x === 1) Date.prototype.setHours = 2; else Date.prototype.setHours = 1; diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js index a46d72b43..fbca2081e 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.34_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setHours === false) { +if (delete Date.prototype.setHours === false) { $ERROR('#1: The Date.prototype.setHours property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js index 9d005c8e7..614e46e97 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setHours')) { $ERROR('#1: The Date.prototype.setHours property has the attribute DontEnum'); } -for (var x in Date.prototype) { - if (x === "setHours") { +for(var x in Date.prototype) { + if(x === "setHours") { $ERROR('#2: The Date.prototype.setHours has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js index 7b8bfb66a..e000d2ab6 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.34_A2_T1 description: The "length" property of the "setHours" is 4 ---*/ -if (Date.prototype.setHours.hasOwnProperty("length") !== true) { +if(Date.prototype.setHours.hasOwnProperty("length") !== true){ $ERROR('#1: The setHours has a "length" property'); } -if (Date.prototype.setHours.length !== 4) { +if(Date.prototype.setHours.length !== 4){ $ERROR('#2: The "length" property of the setHours is 4'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js index 83d468f5d..c15bc6d2e 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.34_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setHours.length !== true) { +if (delete Date.prototype.setHours.length !== true) { $ERROR('#1: The Date.prototype.setHours.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js index d33d529cd..318de235b 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setHours.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setHours.length property has the attribute DontEnum'); } -for (var x in Date.prototype.setHours) { - if (x === "length") { +for(var x in Date.prototype.setHours) { + if(x === "length") { $ERROR('#2: The Date.prototype.setHours.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setHours/this-value-non-date.js b/test/built-ins/Date/prototype/setHours/this-value-non-date.js index e1f4fc3be..1f0c79bff 100644 --- a/test/built-ins/Date/prototype/setHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setHours/this-value-non-date.js @@ -23,9 +23,7 @@ var arg = { return 1; } }; -var args = (function() { - return arguments; -}()); +var args = (function() { return arguments; }()); assert.sameValue(typeof setHours, 'function'); |