diff options
Diffstat (limited to 'test/built-ins/Date/prototype/toString')
7 files changed, 11 insertions, 11 deletions
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js index c4938dc06..04e6d7ffa 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toString; -if (x === 1) +if(x === 1) Date.prototype.toString = 2; else Date.prototype.toString = 1; diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js index e39133756..63c170fe6 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.2_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toString === false) { +if (delete Date.prototype.toString === false) { $ERROR('#1: The Date.prototype.toString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js index 382fc242c..1317b0abd 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toString')) { $ERROR('#1: The Date.prototype.toString property has the attribute DontEnum'); } -for (var x in Date.prototype) { - if (x === "toString") { +for(var x in Date.prototype) { + if(x === "toString") { $ERROR('#2: The Date.prototype.toString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js index a5026ecfd..861d62cab 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.2_A2_T1 description: The "length" property of the "toString" is 0 ---*/ -if (Date.prototype.toString.hasOwnProperty("length") !== true) { +if(Date.prototype.toString.hasOwnProperty("length") !== true){ $ERROR('#1: The toString has a "length" property'); } -if (Date.prototype.toString.length !== 0) { +if(Date.prototype.toString.length !== 0){ $ERROR('#2: The "length" property of the toString is 0'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js index 3bc1f906c..b264985cb 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.2_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toString.length !== true) { +if (delete Date.prototype.toString.length !== true) { $ERROR('#1: The Date.prototype.toString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js index 0c4a7fe58..15c54f020 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toString.length property has the attribute DontEnum'); } -for (var x in Date.prototype.toString) { - if (x === "length") { +for(var x in Date.prototype.toString) { + if(x === "length") { $ERROR('#2: The Date.prototype.toString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toString/non-date-receiver.js b/test/built-ins/Date/prototype/toString/non-date-receiver.js index 3d0885b9c..4273975b1 100644 --- a/test/built-ins/Date/prototype/toString/non-date-receiver.js +++ b/test/built-ins/Date/prototype/toString/non-date-receiver.js @@ -15,6 +15,6 @@ assert.throws(TypeError, () => Date.prototype.toString.call(undefined)); assert.throws(TypeError, () => Date.prototype.toString.call(0)); assert.throws(TypeError, () => Date.prototype.toString.call({})); assert.throws(TypeError, () => - Date.prototype.toString.call("Tue Mar 21 2017 12:16:43 GMT-0400 (EDT)")); + Date.prototype.toString.call("Tue Mar 21 2017 12:16:43 GMT-0400 (EDT)")); assert.throws(TypeError, () => - Date.prototype.toString.call(1490113011493)); + Date.prototype.toString.call(1490113011493)); |