diff options
Diffstat (limited to 'test/built-ins/Date/prototype/setFullYear')
8 files changed, 13 insertions, 11 deletions
diff --git a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js index cde7bec69..446066cec 100644 --- a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js +++ b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js @@ -11,5 +11,5 @@ description: > assert.throws(TypeError, function() { - Date.prototype.setFullYear(2012); + Date.prototype.setFullYear(2012); }); diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js index f148514c4..87c6dfcec 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setFullYear; -if(x === 1) +if (x === 1) Date.prototype.setFullYear = 2; else Date.prototype.setFullYear = 1; diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js index 6b430e528..2614ce2be 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.40_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setFullYear === false) { +if (delete Date.prototype.setFullYear === false) { $ERROR('#1: The Date.prototype.setFullYear property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js index 2ecf10d65..506cc0869 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setFullYear')) { $ERROR('#1: The Date.prototype.setFullYear property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setFullYear") { +for (var x in Date.prototype) { + if (x === "setFullYear") { $ERROR('#2: The Date.prototype.setFullYear has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js index 0a49250a5..4cab3b334 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.40_A2_T1 description: The "length" property of the "setFullYear" is 3 ---*/ -if(Date.prototype.setFullYear.hasOwnProperty("length") !== true){ +if (Date.prototype.setFullYear.hasOwnProperty("length") !== true) { $ERROR('#1: The setFullYear has a "length" property'); } -if(Date.prototype.setFullYear.length !== 3){ +if (Date.prototype.setFullYear.length !== 3) { $ERROR('#2: The "length" property of the setFullYear is 3'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js index ba5017746..5dab62ff4 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.40_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setFullYear.length !== true) { +if (delete Date.prototype.setFullYear.length !== true) { $ERROR('#1: The Date.prototype.setFullYear.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js index 565a1f80a..170c26f65 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setFullYear.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setFullYear) { - if(x === "length") { +for (var x in Date.prototype.setFullYear) { + if (x === "length") { $ERROR('#2: The Date.prototype.setFullYear.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js index ece79ddc4..9a4d316d3 100644 --- a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setFullYear, 'function'); |