diff options
Diffstat (limited to 'test/suite/ch15/15.9/15.9.4')
26 files changed, 175 insertions, 237 deletions
diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T1.js index 6d357cc4b..956a39113 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_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 property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T1.js - * @description Checking ReadOnly attribute - */ +/*--- +info: > + The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } + attributes +description: Checking ReadOnly attribute +---*/ x = Date.prototype; Date.prototype = 1; if (Date.prototype !== x) { $ERROR('#1: The Date.prototype has the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T2.js b/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T2.js index 5885ccfad..a3797aa98 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T2.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_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 property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T2.js - * @description Checking DontDelete attribute - */ +/*--- +info: > + The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } + attributes +description: Checking DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.prototype !== false) { $ERROR('#1: The Date.prototype property has the attributes DontDelete'); @@ -15,5 +16,3 @@ if (delete Date.prototype !== false) { if (!Date.hasOwnProperty('prototype')) { $FAIL('#2: The Date.prototype property has the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T3.js b/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T3.js index 980aa3251..f4de3f21a 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T3.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_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 property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.1/S15.9.4.1_A1_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: > + The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } + attributes +description: Checking DontEnum attribute +---*/ if (Date.propertyIsEnumerable('prototype')) { $ERROR('#1: The Date.prototype property has the attribute DontEnum'); @@ -17,5 +17,3 @@ for(x in Date) { $ERROR('#2: The Date.prototype has the attribute DontEnum'); } } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T1.js index 2fb4afce9..0c8744fcd 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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 property "parse" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T1.js - * @description Checking absence of ReadOnly attribute - */ +/*--- +info: The Date property "parse" has { DontEnum } attributes +description: Checking absence of ReadOnly attribute +---*/ x = Date.parse; if(x === 1) @@ -16,5 +14,3 @@ else if (Date.parse === x) { $ERROR('#1: The Date.parse has not the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T2.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T2.js index c3cac9de8..e690dcdeb 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T2.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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 property "parse" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T2.js - * @description Checking absence of DontDelete attribute - */ +/*--- +info: The Date property "parse" has { DontEnum } attributes +description: Checking absence of DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.parse === false) { $ERROR('#1: The Date.parse property has not the attributes DontDelete'); @@ -15,5 +14,3 @@ if (delete Date.parse === false) { if (Date.hasOwnProperty('parse')) { $FAIL('#2: The Date.parse property has not the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T3.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T3.js index a0386541b..66f615576 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T3.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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 property "parse" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A1_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: The Date property "parse" has { DontEnum } attributes +description: Checking DontEnum attribute +---*/ if (Date.propertyIsEnumerable('parse')) { $ERROR('#1: The Date.parse property has the attribute DontEnum'); @@ -17,5 +15,3 @@ for(x in Date) { $ERROR('#2: The Date.parse has the attribute DontEnum'); } } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A2_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A2_T1.js index 579c1ecd6..4cf3504f2 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A2_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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 "parse" is 1 - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A2_T1.js - * @description The "length" property of the "parse" is 1 - */ +/*--- +info: The "length" property of the "parse" is 1 +description: The "length" property of the "parse" is 1 +---*/ if(Date.parse.hasOwnProperty("length") !== true){ $ERROR('#1: The parse has a "length" property'); @@ -15,5 +13,3 @@ if(Date.parse.hasOwnProperty("length") !== true){ if(Date.parse.length !== 1){ $ERROR('#2: The "length" property of the parse is 1'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T1.js index e802350b4..5ad6fa622 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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.parse property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T1.js - * @description Checking ReadOnly attribute - */ +/*--- +info: > + The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum } + attributes +description: Checking ReadOnly attribute +---*/ x = Date.parse.length; Date.parse.length = 1; if (Date.parse.length !== x) { $ERROR('#1: The Date.parse.length has the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T2.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T2.js index a613528aa..26a6ee371 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T2.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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.parse property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T2.js - * @description Checking DontDelete attribute - */ +/*--- +info: > + The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum } + attributes +description: Checking DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.parse.length !== false) { $ERROR('#1: The Date.parse.length property has the attributes DontDelete'); @@ -15,5 +16,3 @@ if (delete Date.parse.length !== false) { if (!Date.parse.hasOwnProperty('length')) { $FAIL('#2: The Date.parse.length property has the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T3.js b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T3.js index 13b9cc0ad..6de8539e8 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T3.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_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.parse property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.2/S15.9.4.2_A3_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: > + The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum } + attributes +description: Checking DontEnum attribute +---*/ if (Date.parse.propertyIsEnumerable('length')) { $ERROR('#1: The Date.parse.length property has the attribute DontEnum'); @@ -17,5 +17,3 @@ for(x in Date.parse) { $ERROR('#2: The Date.parse.length has the attribute DontEnum'); } } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T1.js index 6df1fbc65..7b7d6ae3a 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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 property "UTC" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T1.js - * @description Checking absence of ReadOnly attribute - */ +/*--- +info: The Date property "UTC" has { DontEnum } attributes +description: Checking absence of ReadOnly attribute +---*/ x = Date.UTC; if(x === 1) @@ -16,5 +14,3 @@ else if (Date.UTC === x) { $ERROR('#1: The Date.UTC has not the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T2.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T2.js index f4214ab90..f8151d7c2 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T2.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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 property "UTC" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T2.js - * @description Checking absence of DontDelete attribute - */ +/*--- +info: The Date property "UTC" has { DontEnum } attributes +description: Checking absence of DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.UTC === false) { $ERROR('#1: The Date.UTC property has not the attributes DontDelete'); @@ -15,5 +14,3 @@ if (delete Date.UTC === false) { if (Date.hasOwnProperty('UTC')) { $FAIL('#2: The Date.UTC property has not the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T3.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T3.js index cad9d23d1..fbbfb703b 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T3.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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 property "UTC" has { DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A1_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: The Date property "UTC" has { DontEnum } attributes +description: Checking DontEnum attribute +---*/ if (Date.propertyIsEnumerable('UTC')) { $ERROR('#1: The Date.UTC property has the attribute DontEnum'); @@ -17,5 +15,3 @@ for(x in Date) { $ERROR('#2: The Date.UTC has the attribute DontEnum'); } } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A2_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A2_T1.js index 5e99089e5..23006e429 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A2_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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 "UTC" is 7 - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A2_T1.js - * @description The "length" property of the "UTC" is 7 - */ +/*--- +info: The "length" property of the "UTC" is 7 +description: The "length" property of the "UTC" is 7 +---*/ if(Date.UTC.hasOwnProperty("length") !== true){ $ERROR('#1: The UTC has a "length" property'); @@ -15,5 +13,3 @@ if(Date.UTC.hasOwnProperty("length") !== true){ if(Date.UTC.length !== 7){ $ERROR('#2: The "length" property of the UTC is 7'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T1.js index 9935b2f35..9fcb93140 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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.UTC property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T1.js - * @description Checking ReadOnly attribute - */ +/*--- +info: > + The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum } + attributes +description: Checking ReadOnly attribute +---*/ x = Date.UTC.length; Date.UTC.length = 1; if (Date.UTC.length !== x) { $ERROR('#1: The Date.UTC.length has the attribute ReadOnly'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T2.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T2.js index 725626ab3..1906fc444 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T2.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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.UTC property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T2.js - * @description Checking DontDelete attribute - */ +/*--- +info: > + The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum } + attributes +description: Checking DontDelete attribute +includes: [$FAIL.js] +---*/ if (delete Date.UTC.length !== false) { $ERROR('#1: The Date.UTC.length property has the attributes DontDelete'); @@ -15,5 +16,3 @@ if (delete Date.UTC.length !== false) { if (!Date.UTC.hasOwnProperty('length')) { $FAIL('#2: The Date.UTC.length property has the attributes DontDelete'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T3.js b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T3.js index 8eb62a943..d5d9ebc55 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T3.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_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.UTC property "length" has { ReadOnly, DontDelete, DontEnum } attributes - * - * @path ch15/15.9/15.9.4/15.9.4.3/S15.9.4.3_A3_T3.js - * @description Checking DontEnum attribute - */ +/*--- +info: > + The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum } + attributes +description: Checking DontEnum attribute +---*/ if (Date.UTC.propertyIsEnumerable('length')) { $ERROR('#1: The Date.UTC.length property has the attribute DontEnum'); @@ -17,5 +17,3 @@ for(x in Date.UTC) { $ERROR('#2: The Date.UTC.length has the attribute DontEnum'); } } - - diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js index c336c2c8f..d374da645 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js
- * @description Date.now must exist as a function
- */
-
-
-function testcase() {
- return typeof Date.now === "function";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Date.now must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + return typeof Date.now === "function"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-2.js b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-2.js index c20ca6e6e..9e8a03ae5 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-2.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-2.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-2.js
- * @description Date.now must exist as a function taking 0 parameters
- */
-
-
-function testcase() {
- return Date.now.length === 0;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Date.now must exist as a function taking 0 parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + return Date.now.length === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-3.js b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-3.js index 24408d293..afaf183f3 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-3.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-3.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-3.js
- * @description Date.now must exist as a function
- */
-
-
-function testcase() {
-
- var fun = Date.now;
- return (typeof (fun) === "function");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Date.now must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + + var fun = Date.now; + return (typeof (fun) === "function"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-4.js b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-4.js index b3e381628..2a4824253 100644 --- a/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-4.js +++ b/test/suite/ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-4.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-4.js
- * @description Date.now - returns number
- */
-
-
-function testcase() {
- return typeof Date.now() === "number";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Date.now - returns number +includes: [runTestCase.js] +---*/ + +function testcase() { + return typeof Date.now() === "number"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.9/15.9.4/S15.9.4_A1.js b/test/suite/ch15/15.9/15.9.4/S15.9.4_A1.js index 0136767f7..981afcf50 100644 --- a/test/suite/ch15/15.9/15.9.4/S15.9.4_A1.js +++ b/test/suite/ch15/15.9/15.9.4/S15.9.4_A1.js @@ -1,15 +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 constructor has the property "prototype" - * - * @path ch15/15.9/15.9.4/S15.9.4_A1.js - * @description Checking existence of the property "prototype" - */ +/*--- +info: The Date constructor has the property "prototype" +description: Checking existence of the property "prototype" +---*/ if(!Date.hasOwnProperty("prototype")){ $ERROR('#1: The Date constructor has the property "prototype"'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/S15.9.4_A2.js b/test/suite/ch15/15.9/15.9.4/S15.9.4_A2.js index 6fdd2de7f..aa64a3a5b 100644 --- a/test/suite/ch15/15.9/15.9.4/S15.9.4_A2.js +++ b/test/suite/ch15/15.9/15.9.4/S15.9.4_A2.js @@ -1,15 +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 constructor has the property "parse" - * - * @path ch15/15.9/15.9.4/S15.9.4_A2.js - * @description Checking existence of the property "parse" - */ +/*--- +info: The Date constructor has the property "parse" +description: Checking existence of the property "parse" +---*/ if(!Date.hasOwnProperty("parse")){ $ERROR('#1: The Date constructor has the property "parse"'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/S15.9.4_A3.js b/test/suite/ch15/15.9/15.9.4/S15.9.4_A3.js index 6dd7de3f7..e4e99ef83 100644 --- a/test/suite/ch15/15.9/15.9.4/S15.9.4_A3.js +++ b/test/suite/ch15/15.9/15.9.4/S15.9.4_A3.js @@ -1,15 +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 constructor has the property "UTC" - * - * @path ch15/15.9/15.9.4/S15.9.4_A3.js - * @description Checking existence of the property "UTC" - */ +/*--- +info: The Date constructor has the property "UTC" +description: Checking existence of the property "UTC" +---*/ if(!Date.hasOwnProperty("UTC")){ $ERROR('#1: The Date constructor has the property "UTC"'); } - - diff --git a/test/suite/ch15/15.9/15.9.4/S15.9.4_A4.js b/test/suite/ch15/15.9/15.9.4/S15.9.4_A4.js index 127edb03b..558543b80 100644 --- a/test/suite/ch15/15.9/15.9.4/S15.9.4_A4.js +++ b/test/suite/ch15/15.9/15.9.4/S15.9.4_A4.js @@ -1,16 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of the internal [[Prototype]] property of the Date - * constructor is the Function prototype object - * - * @path ch15/15.9/15.9.4/S15.9.4_A4.js - * @description Checking Function.prototype.isPrototypeOf(Date) - */ +/*--- +info: > + The value of the internal [[Prototype]] property of the Date + constructor is the Function prototype object +description: Checking Function.prototype.isPrototypeOf(Date) +---*/ //CHECK#1 if (!(Function.prototype.isPrototypeOf(Date))) { $ERROR('#1: the value of the internal [[Prototype]] property of the Date constructor is the Function prototype object.'); } - diff --git a/test/suite/ch15/15.9/15.9.4/S15.9.4_A5.js b/test/suite/ch15/15.9/15.9.4/S15.9.4_A5.js index 13520bfbf..cb1ed28e5 100644 --- a/test/suite/ch15/15.9/15.9.4/S15.9.4_A5.js +++ b/test/suite/ch15/15.9/15.9.4/S15.9.4_A5.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. -/** - * Date constructor has length property whose value is 7 - * - * @path ch15/15.9/15.9.4/S15.9.4_A5.js - * @description Checking Date.length property - */ +/*--- +info: Date constructor has length property whose value is 7 +description: Checking Date.length property +---*/ //CHECK#1 if (!Date.hasOwnProperty("length")){ @@ -17,4 +15,3 @@ if (!Date.hasOwnProperty("length")){ if (Date.length !== 7) { $ERROR('#2: Date constructor length property value should be 7'); } - |