diff options
Diffstat (limited to 'test/suite/ch15/15.9/15.9.5/15.9.5.19')
7 files changed, 36 insertions, 56 deletions
diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T1.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T1.js index 83aec2d9f..e77978a76 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T1.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Date.prototype property "getUTCHours" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T1.js - * @description Checking absence of ReadOnly attribute - */ +/*--- +info: The Date.prototype property "getUTCHours" has { DontEnum } attributes +description: Checking absence of ReadOnly attribute +---*/ x = Date.prototype.getUTCHours; if(x === 1) @@ -16,5 +14,3 @@ else if (Date.prototype.getUTCHours === x) { $ERROR('#1: The Date.prototype.getUTCHours has not the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T2.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T2.js index dbe96536f..5ba5a68d0 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T2.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T2.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Date.prototype property "getUTCHours" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T2.js - * @description Checking absence of DontDelete attribute - */ +/*--- +info: The Date.prototype property "getUTCHours" has { DontEnum } attributes +description: Checking absence of DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.prototype.getUTCHours === false) { $ERROR('#1: The Date.prototype.getUTCHours property has not the attributes DontDelete'); @@ -15,5 +14,3 @@ if (delete Date.prototype.getUTCHours === false) { if (Date.prototype.hasOwnProperty('getUTCHours')) { $FAIL('#2: The Date.prototype.getUTCHours property has not the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T3.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T3.js index cce164641..b85972f92 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T3.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Date.prototype property "getUTCHours" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A1_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: The Date.prototype property "getUTCHours" has { DontEnum } attributes +description: Checking DontEnum attribute +---*/ if (Date.prototype.propertyIsEnumerable('getUTCHours')) { $ERROR('#1: The Date.prototype.getUTCHours property has the attribute DontEnum'); @@ -17,5 +15,3 @@ for(x in Date.prototype) { $ERROR('#2: The Date.prototype.getUTCHours has the attribute DontEnum'); } } - - diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A2_T1.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A2_T1.js index 8bd281f48..c72cc0749 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A2_T1.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The "length" property of the "getUTCHours" is 0 - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A2_T1.js - * @description The "length" property of the "getUTCHours" is 0 - */ +/*--- +info: The "length" property of the "getUTCHours" is 0 +description: The "length" property of the "getUTCHours" is 0 +---*/ if(Date.prototype.getUTCHours.hasOwnProperty("length") !== true){ $ERROR('#1: The getUTCHours has a "length" property'); @@ -15,5 +13,3 @@ if(Date.prototype.getUTCHours.hasOwnProperty("length") !== true){ if(Date.prototype.getUTCHours.length !== 0){ $ERROR('#2: The "length" property of the getUTCHours is 0'); } - - diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T1.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T1.js index f3a6d38bb..f5270be7c 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T1.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T1.js @@ -1,17 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Date.prototype.getUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T1.js - * @description Checking ReadOnly attribute - */ +/*--- +info: > + The Date.prototype.getUTCHours property "length" has { ReadOnly, + DontDelete, DontEnum } attributes +description: Checking ReadOnly attribute +---*/ x = Date.prototype.getUTCHours.length; Date.prototype.getUTCHours.length = 1; if (Date.prototype.getUTCHours.length !== x) { $ERROR('#1: The Date.prototype.getUTCHours.length has the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T2.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T2.js index 2c6be6fcf..80219e76d 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T2.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Date.prototype.getUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T2.js - * @description Checking DontDelete attribute - */ +/*--- +info: > + The Date.prototype.getUTCHours property "length" has { ReadOnly, + DontDelete, DontEnum } attributes +description: Checking DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.prototype.getUTCHours.length !== false) { $ERROR('#1: The Date.prototype.getUTCHours.length property has the attributes DontDelete'); @@ -15,5 +16,3 @@ if (delete Date.prototype.getUTCHours.length !== false) { if (!Date.prototype.getUTCHours.hasOwnProperty('length')) { $FAIL('#2: The Date.prototype.getUTCHours.length property has the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T3.js b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T3.js index 2f6373d3a..7fdab747e 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T3.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Date.prototype.getUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.5/15.9.5.19/S15.9.5.19_A3_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: > + The Date.prototype.getUTCHours property "length" has { ReadOnly, + DontDelete, DontEnum } attributes +description: Checking DontEnum attribute +---*/ if (Date.prototype.getUTCHours.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum'); @@ -17,5 +17,3 @@ for(x in Date.prototype.getUTCHours) { $ERROR('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum'); } } - - |