diff options
Diffstat (limited to 'test/built-ins/Date/prototype/getFullYear')
7 files changed, 10 insertions, 12 deletions
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js index 54897a558..e965ed28d 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getFullYear; -if (x === 1) +if(x === 1) Date.prototype.getFullYear = 2; else Date.prototype.getFullYear = 1; diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js index bfc30f439..087abbffb 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.10_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getFullYear === false) { +if (delete Date.prototype.getFullYear === false) { $ERROR('#1: The Date.prototype.getFullYear property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js index bc6e97309..e410c9213 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getFullYear')) { $ERROR('#1: The Date.prototype.getFullYear property has the attribute DontEnum'); } -for (var x in Date.prototype) { - if (x === "getFullYear") { +for(var x in Date.prototype) { + if(x === "getFullYear") { $ERROR('#2: The Date.prototype.getFullYear has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js index e6126c6a1..76682ac39 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.10_A2_T1 description: The "length" property of the "getFullYear" is 0 ---*/ -if (Date.prototype.getFullYear.hasOwnProperty("length") !== true) { +if(Date.prototype.getFullYear.hasOwnProperty("length") !== true){ $ERROR('#1: The getFullYear has a "length" property'); } -if (Date.prototype.getFullYear.length !== 0) { +if(Date.prototype.getFullYear.length !== 0){ $ERROR('#2: The "length" property of the getFullYear is 0'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js index 9bdbc7d89..8b35eb11b 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.10_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getFullYear.length !== true) { +if (delete Date.prototype.getFullYear.length !== true) { $ERROR('#1: The Date.prototype.getFullYear.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js index 7fedce52a..36e66960f 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getFullYear.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum'); } -for (var x in Date.prototype.getFullYear) { - if (x === "length") { +for(var x in Date.prototype.getFullYear) { + if(x === "length") { $ERROR('#2: The Date.prototype.getFullYear.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js index f191bd5a6..db86b65f9 100644 --- a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js @@ -16,9 +16,7 @@ info: | ---*/ var getFullYear = Date.prototype.getFullYear; -var args = (function() { - return arguments; -}()); +var args = (function() { return arguments; }()); assert.sameValue(typeof getFullYear, 'function'); |