diff options
Diffstat (limited to 'test/built-ins/Date/prototype/getUTCMonth')
7 files changed, 12 insertions, 10 deletions
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js index 705c403c3..7e18abfda 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCMonth; -if(x === 1) +if (x === 1) Date.prototype.getUTCMonth = 2; else Date.prototype.getUTCMonth = 1; diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js index 9ea891483..a36fde2db 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.13_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMonth === false) { +if (delete Date.prototype.getUTCMonth === false) { $ERROR('#1: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js index 70498de04..bdff66e89 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMonth')) { $ERROR('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCMonth") { +for (var x in Date.prototype) { + if (x === "getUTCMonth") { $ERROR('#2: The Date.prototype.getUTCMonth has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js index c75a98145..987754bcc 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.13_A2_T1 description: The "length" property of the "getUTCMonth" is 0 ---*/ -if(Date.prototype.getUTCMonth.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCMonth.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCMonth has a "length" property'); } -if(Date.prototype.getUTCMonth.length !== 0){ +if (Date.prototype.getUTCMonth.length !== 0) { $ERROR('#2: The "length" property of the getUTCMonth is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js index da0788086..7f1b9e911 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.13_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMonth.length !== true) { +if (delete Date.prototype.getUTCMonth.length !== true) { $ERROR('#1: The Date.prototype.getUTCMonth.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js index f6755a860..f2258b315 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCMonth.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCMonth) { - if(x === "length") { +for (var x in Date.prototype.getUTCMonth) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js index 0dacaba82..cfb11a6a9 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMonth = Date.prototype.getUTCMonth; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMonth, 'function'); |