diff options
Diffstat (limited to 'test/suite/ch15/15.2/15.2.4')
82 files changed, 623 insertions, 648 deletions
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-1.js index 4cab4855c..9213d1b70 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-1.js @@ -1,15 +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.2/15.2.4/15.2.4.2/15.2.4.2-1-1.js
- * @description Object.prototype.toString - '[object Undefined]' will be returned when 'this' value is undefined
- */
-
-
-function testcase() {
- return Object.prototype.toString.call(undefined) === "[object Undefined]";
- }
-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: > + Object.prototype.toString - '[object Undefined]' will be returned + when 'this' value is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + return Object.prototype.toString.call(undefined) === "[object Undefined]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-2.js index 38cb9c506..22881d9ef 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-1-2.js @@ -1,15 +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.2/15.2.4/15.2.4.2/15.2.4.2-1-2.js
- * @description Object.prototype.toString - '[object Undefined]' will be returned when 'this' value is undefined
- */
-
-
-function testcase() {
- return Object.prototype.toString.apply(undefined, []) === "[object Undefined]";
- }
-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: > + Object.prototype.toString - '[object Undefined]' will be returned + when 'this' value is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + return Object.prototype.toString.apply(undefined, []) === "[object Undefined]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-1.js index 91d8b635b..94a99d835 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-1.js @@ -1,15 +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.2/15.2.4/15.2.4.2/15.2.4.2-2-1.js
- * @description Object.prototype.toString - '[object Null]' will be returned when 'this' value is null
- */
-
-
-function testcase() {
- return Object.prototype.toString.call(null) === "[object Null]";
- }
-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: > + Object.prototype.toString - '[object Null]' will be returned when + 'this' value is null +includes: [runTestCase.js] +---*/ + +function testcase() { + return Object.prototype.toString.call(null) === "[object Null]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-2.js index d52724e08..ce10ff6d9 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/15.2.4.2-2-2.js @@ -1,15 +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.2/15.2.4/15.2.4.2/15.2.4.2-2-2.js
- * @description Object.prototype.toString - '[object Null]' will be returned when 'this' value is null
- */
-
-
-function testcase() {
- return Object.prototype.toString.apply(null, []) === "[object Null]";
- }
-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: > + Object.prototype.toString - '[object Null]' will be returned when + 'this' value is null +includes: [runTestCase.js] +---*/ + +function testcase() { + return Object.prototype.toString.apply(null, []) === "[object Null]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A1.js index 5f849a63e..b40819192 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A1.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the toString method is called, the following steps are taken: - * i) Get the [[Class]] property of this object - * ii) Compute a string value by concatenating the three strings "[object ", Result(1), and "]" - * iii) Return Result(2) - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A1.js - * @description Checking the type of Object.prototype.toString and the returned result - */ +/*--- +info: > + When the toString method is called, the following steps are taken: + i) Get the [[Class]] property of this object + ii) Compute a string value by concatenating the three strings "[object ", Result(1), and "]" + iii) Return Result(2) +description: > + Checking the type of Object.prototype.toString and the returned + result +---*/ //CHECK#1 if (typeof Object.prototype.toString !== "function") { @@ -25,4 +26,3 @@ if (Object.prototype.toString() !=="[object "+"Object"+"]") { if ({}.toString()!=="[object "+"Object"+"]") { $ERROR('#3: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A10.js index 7a3010dfb..a9ee87428 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A10.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.toString.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A10.js - * @description Checking if varying the Object.prototype.toString.length property fails - * @noStrict - */ +/*--- +info: The Object.prototype.toString.length property has the attribute ReadOnly +description: > + Checking if varying the Object.prototype.toString.length property + fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.toString.hasOwnProperty('length'))) { @@ -22,4 +23,3 @@ Object.prototype.toString.length = function(){return "shifted";}; if (Object.prototype.toString.length !== obj) { $ERROR('#2: the Object.prototype.toString length property has the attributes ReadOnly.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A11.js index fc2281b40..f5fe8b324 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A11.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 toString method is 0 - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A11.js - * @description Checking the Object.prototype.toString.length property - */ +/*--- +info: The length property of the toString method is 0 +description: Checking the Object.prototype.toString.length property +---*/ //CHECK#1 if (!(Object.prototype.toString.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.toString.hasOwnProperty("length"))) { if (Object.prototype.toString.length !== 0) { $ERROR('#2: The length property of the toString method is 0'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A12.js index 239afb792..b05b0bb25 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A12.js @@ -1,12 +1,10 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A12.js - * @description If the this value is undefined, return "[object Undefined]". - */ +/*--- +description: If the this value is undefined, return "[object Undefined]". +---*/ if (Object.prototype.toString.call(undefined) !== "[object Undefined]") { $ERROR('If the this value is undefined, return "[object Undefined]".'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A13.js index a68665c2a..5624b0535 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A13.js @@ -1,12 +1,10 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A13.js - * @description If the this value is null, return "[object Null]". - */ +/*--- +description: If the this value is null, return "[object Null]". +---*/ if (Object.prototype.toString.call(null) !== "[object Null]") { $ERROR('If the this value is null, return "[object Null]".'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A14.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A14.js index 4469b7c01..ad3ce74ee 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A14.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A14.js @@ -1,13 +1,13 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A14.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +---*/ if (Object.prototype.toString.call(33) !== "[object Number]") { $ERROR('Let O be the result of calling ToObject passing the this ' + 'value as the argument.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A15.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A15.js index 59753fa01..380101030 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A15.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A15.js @@ -1,13 +1,13 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A15.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +---*/ if (Object.prototype.toString.call(true) !== "[object Boolean]") { $ERROR('Let O be the result of calling ToObject passing the this ' + 'value as the argument.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A16.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A16.js index 917e8965b..0a26af27c 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A16.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A16.js @@ -1,13 +1,13 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A16.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +---*/ if (Object.prototype.toString.call('foo') !== "[object String]") { $ERROR('Let O be the result of calling ToObject passing the this ' + 'value as the argument.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A6.js index 2e11f8252..0b2d87ed5 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.toString has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.toString fails - */ +/*--- +info: Object.prototype.toString has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.toString fails +---*/ //CHECK#1 if (Object.prototype.toString.prototype !== undefined) { $ERROR('#1: Object.prototype.toString has not prototype property'+Object.prototype.toString.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A7.js index 949133177..c51aabc8a 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A7.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. -/** - * Object.prototype.toString can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A7.js - * @description Checking if creating "new Object.prototype.toString" fails - */ +/*--- +info: Object.prototype.toString can't be used as a constructor +description: Checking if creating "new Object.prototype.toString" fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.toString; @@ -16,4 +17,3 @@ try { } catch (e) { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A8.js index dc4fbc4c8..7963cf273 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A8.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 Object.prototype.toString.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A8.js - * @description Checking if enumerating the Object.prototype.toString.length property fails - */ +/*--- +info: The Object.prototype.toString.length property has the attribute DontEnum +description: > + Checking if enumerating the Object.prototype.toString.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.toString.hasOwnProperty('length'))) { @@ -25,4 +26,3 @@ for (var p in Object.prototype.toString){ $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A9.js index 54fc68907..05c94bc9e 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A9.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.toString.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.2/S15.2.4.2_A9.js - * @description Checknig if deleting of the Object.prototype.toString.length property fails - * @noStrict - */ +/*--- +info: The Object.prototype.toString.length property has the attribute DontDelete +description: > + Checknig if deleting of the Object.prototype.toString.length + property fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.toString.hasOwnProperty('length'))) { @@ -23,4 +24,3 @@ if (delete Object.prototype.toString.length) { if (!(Object.prototype.toString.hasOwnProperty('length'))) { $FAIL('#2: The Object.prototype.toString.length property has the attributes DontDelete'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js index f849be7de..1b8df01a9 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.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. -/** - * toLocaleString function returns the result of calling toString() - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js - * @description Checking the type of Object.prototype.toLocaleString and the returned result - */ +/*--- +info: toLocaleString function returns the result of calling toString() +description: > + Checking the type of Object.prototype.toLocaleString and the + returned result +---*/ //CHECK#1 if (typeof Object.prototype.toLocaleString !== "function") { @@ -22,4 +22,3 @@ if (Object.prototype.toLocaleString() !== Object.prototype.toString()) { if ({}.toLocaleString()!=={}.toString()) { $ERROR('#2: toLocaleString function returns the result of calling toString()'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js index e6f73800a..c0101d3bb 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.toLocaleString.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js - * @description Checking if varying the Object.prototype.toLocaleString.length property fails - */ +/*--- +info: > + The Object.prototype.toLocaleString.length property has the attribute + ReadOnly +description: > + Checking if varying the Object.prototype.toLocaleString.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { @@ -21,4 +24,3 @@ Object.prototype.toLocaleString.length = function(){return "shifted";}; if (Object.prototype.toLocaleString.length !== obj) { $ERROR('#2: the Object.prototype.toLocaleString length property has the attributes ReadOnly.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js index 0d0f4108e..8c43b8d70 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.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 toLocaleString method is 0 - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js - * @description Checking the Object.prototype.toLocaleString.length - */ +/*--- +info: The length property of the toLocaleString method is 0 +description: Checking the Object.prototype.toLocaleString.length +---*/ //CHECK#1 if (!(Object.prototype.toLocaleString.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.toLocaleString.hasOwnProperty("length"))) { if (Object.prototype.toLocaleString.length !== 0) { $ERROR('#2: The length property of the toLocaleString method is 0'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js index 72f142264..2b114bd9b 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.toLocaleString.call(undefined); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js index c5570753c..68088b6e7 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.toLocaleString.call(null); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js index adb3ce993..a110e74a8 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.toLocaleString has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.toLocaleString fails - */ +/*--- +info: Object.prototype.toLocaleString has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.toLocaleString fails +---*/ //CHECK#1 if (Object.prototype.toLocaleString.prototype !== undefined) { $ERROR('#1: Object.prototype.toLocaleString has not prototype property'+Object.prototype.toLocaleString.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js index 4a15a4413..5d3142716 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.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. -/** - * Object.prototype.toLocaleString can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js - * @description Checking if creating "new Object.prototype.toLocaleString" fails - */ +/*--- +info: Object.prototype.toLocaleString can't be used as a constructor +description: Checking if creating "new Object.prototype.toLocaleString" fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.toLocaleString; @@ -17,4 +18,3 @@ try { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js index 646bcb400..846e6110a 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.toLocaleString.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js - * @description Checking if enumerating the Object.prototype.toLocaleString.length property fails - */ +/*--- +info: > + The Object.prototype.toLocaleString.length property has the attribute + DontEnum +description: > + Checking if enumerating the Object.prototype.toLocaleString.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { @@ -25,4 +28,3 @@ for (p in Object.prototype.toLocaleString){ $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js index d5929c1b7..80b40d93e 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js @@ -1,13 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.toLocaleString.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js - * @description Checknig if deleting of the Object.prototype.toLocaleString.length property fails - * @noStrict - */ +/*--- +info: > + The Object.prototype.toLocaleString.length property has the attribute + DontDelete +description: > + Checknig if deleting of the Object.prototype.toLocaleString.length + property fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { @@ -23,4 +26,3 @@ if (delete Object.prototype.toLocaleString.length) { if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { $FAIL('#2: The Object.prototype.toLocaleString.length property has the attributes DontDelete'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-1.js index b2f92f7f7..536464c95 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-1.js @@ -1,15 +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.2/15.2.4/15.2.4.4/15.2.4.4-1.js
- * @description Object.prototype.valueOf - typeof Object.prototype.valueOf.call(true)==="object"
- */
-
-
-function testcase() {
- return (typeof Object.prototype.valueOf.call(true)) === "object";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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: > + Object.prototype.valueOf - typeof + Object.prototype.valueOf.call(true)==="object" +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof Object.prototype.valueOf.call(true)) === "object"; +} +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-2.js index 791f5ce69..932d21be8 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/15.2.4.4-2.js @@ -1,15 +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.2/15.2.4/15.2.4.4/15.2.4.4-2.js
- * @description Object.prototype.valueOf - typeof Object.prototype.valueOf.call(false)==="object"
- */
-
-
-function testcase() {
- return (typeof Object.prototype.valueOf.call(false)) === "object";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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: > + Object.prototype.valueOf - typeof + Object.prototype.valueOf.call(false)==="object" +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof Object.prototype.valueOf.call(false)) === "object"; +} +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A10.js index e0b39e076..351a1dec9 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A10.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 Object.prototype.valueOf.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A10.js - * @description Checking if varying the Object.prototype.valueOf.length property fails - */ +/*--- +info: The Object.prototype.valueOf.length property has the attribute ReadOnly +description: > + Checking if varying the Object.prototype.valueOf.length property + fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { @@ -21,4 +22,3 @@ Object.prototype.valueOf.length = function(){return "shifted";}; if (Object.prototype.valueOf.length !== obj) { $ERROR('#2: the Object.prototype.valueOf length property has the attributes ReadOnly.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A11.js index 2ecde7c52..e5b57fe9e 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A11.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 valueOf method is 0 - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A11.js - * @description Checking the Object.prototype.valueOf.length - */ +/*--- +info: The length property of the valueOf method is 0 +description: Checking the Object.prototype.valueOf.length +---*/ //CHECK#1 if (!(Object.prototype.valueOf.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.valueOf.hasOwnProperty("length"))) { if (Object.prototype.valueOf.length !== 0) { $ERROR('#2: The length property of the toObject method is 0'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A12.js index b2bec26f3..1342d76a3 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A12.js @@ -1,13 +1,12 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Let O be the result of calling ToObject passing the this value as the argument. - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A12.js - * @description Checking Object.prototype.valueOf invoked by the 'call' property. - * @negative - */ +/*--- +info: > + Let O be the result of calling ToObject passing the this value as the + argument. +description: Checking Object.prototype.valueOf invoked by the 'call' property. +flags: [negative] +---*/ Object.prototype.valueOf.call(undefined); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A13.js index a9842e5a2..8e8290826 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A13.js @@ -1,13 +1,12 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Let O be the result of calling ToObject passing the this value as the argument. - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A13.js - * @description Checking Object.prototype.valueOf invoked by the 'call' property. - * @negative - */ +/*--- +info: > + Let O be the result of calling ToObject passing the this value as the + argument. +description: Checking Object.prototype.valueOf invoked by the 'call' property. +flags: [negative] +---*/ Object.prototype.valueOf.call(null); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A14.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A14.js index e3d1fd7d7..a387a8469 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A14.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A14.js @@ -1,13 +1,12 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Let O be the result of calling ToObject passing the this value as the argument. - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A14.js - * @description Checking Object.prototype.valueOf invoked by the 'call' property. - * @negative - */ +/*--- +info: > + Let O be the result of calling ToObject passing the this value as the + argument. +description: Checking Object.prototype.valueOf invoked by the 'call' property. +flags: [negative] +---*/ (1,Object.prototype.valueOf)(); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A15.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A15.js index 1e26f05f5..12cade2af 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A15.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A15.js @@ -1,14 +1,13 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Let O be the result of calling ToObject passing the this value as the argument. - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A15.js - * @description Checking Object.prototype.valueOf when called as a global function. - * @negative - */ +/*--- +info: > + Let O be the result of calling ToObject passing the this value as the + argument. +description: Checking Object.prototype.valueOf when called as a global function. +flags: [negative] +---*/ var v = Object.prototype.valueOf; v(); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T1.js index 5f0dd6f27..ef1e4910f 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T1.js - * @description "this" value is a number - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is a number" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!==1.1) { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T2.js index c5c88ff05..61e0d0e1b 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T2.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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T2.js - * @description "this" value is a boolean - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is a boolean" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!==true) { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T3.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T3.js index 66b9aa6d8..1f716d228 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T3.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T3.js - * @description "this" value is a string - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is a string" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!=="greenfield") { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T4.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T4.js index 9c7b3b4df..a8d8defc5 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T4.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T4.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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T4.js - * @description "this" value is an object - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is an object" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T5.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T5.js index a227c41dd..13dde808f 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T5.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T5.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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T5.js - * @description "this" value is "null" - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is \"null\"" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T6.js index f4b989c30..4ea142175 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T6.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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T6.js - * @description "this" value is "undefined" - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is \"undefined\"" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T7.js index 4e7cd7353..a7d1dc95d 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T7.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 valueOf method returns its "this" value - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A1_T7.js - * @description "this" value is "void 0" - */ +/*--- +info: The valueOf method returns its "this" value +description: "\"this\" value is \"void 0\"" +---*/ //CHECK#1 if (typeof Object.prototype.valueOf !== "function") { @@ -24,5 +22,3 @@ if (typeof obj.valueOf !== "function") { if (obj.valueOf()!==obj) { $ERROR('#3: The valueOf method returns its this value'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A6.js index f53fbaaaa..0079114fa 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.valueOf has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.valueOf fails - */ +/*--- +info: Object.prototype.valueOf has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.valueOf fails +---*/ //CHECK#1 if (Object.prototype.valueOf.prototype !== undefined) { $ERROR('#1: Object.prototype.valueOf has not prototype property'+Object.prototype.valueOf.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A7.js index 23be75a1b..1a611506a 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A7.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. -/** - * Object.prototype.valueOf can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A7.js - * @description Checking if creating "new Object.prototype.valueOf" fails - */ +/*--- +info: Object.prototype.valueOf can't be used as a constructor +description: Checking if creating "new Object.prototype.valueOf" fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.valueOf; @@ -17,4 +18,3 @@ try { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A8.js index 7872afa5e..14a7bc1bb 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A8.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 Object.prototype.valueOf.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A8.js - * @description Checking if enumerating the Object.prototype.valueOf.length property fails - */ +/*--- +info: The Object.prototype.valueOf.length property has the attribute DontEnum +description: > + Checking if enumerating the Object.prototype.valueOf.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { @@ -25,4 +26,3 @@ for (p in Object.prototype.valueOf){ $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A9.js index 709a3313e..0a11312da 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A9.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.valueOf.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.4/S15.2.4.4_A9.js - * @description Checknig if deleting of the Object.prototype.valueOf.length property fails - * @noStrict - */ +/*--- +info: The Object.prototype.valueOf.length property has the attribute DontDelete +description: > + Checknig if deleting of the Object.prototype.valueOf.length + property fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { @@ -23,4 +24,3 @@ if (delete Object.prototype.valueOf.length) { if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { $FAIL('#2: The Object.prototype.valueOf.length property has the attributes DontDelete'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A10.js index 70a0ca21e..4e88267d0 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A10.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.hasOwnProperty.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A10.js - * @description Checking if varying the Object.prototype.hasOwnProperty.length property fails - */ +/*--- +info: > + The Object.prototype.hasOwnProperty.length property has the attribute + ReadOnly +description: > + Checking if varying the Object.prototype.hasOwnProperty.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { @@ -21,4 +24,3 @@ Object.prototype.hasOwnProperty.length = function(){return "shifted";}; if (Object.prototype.hasOwnProperty.length !== obj) { $ERROR('#2: the Object.prototype.hasOwnProperty length property has the attributes ReadOnly.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A11.js index 176f74c25..8a8465416 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A11.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 hasOwnProperty method is 1 - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A11.js - * @description Checking the Object.prototype.hasOwnProperty.length - */ +/*--- +info: The length property of the hasOwnProperty method is 1 +description: Checking the Object.prototype.hasOwnProperty.length +---*/ //CHECK#1 if (!(Object.prototype.hasOwnProperty.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.hasOwnProperty.hasOwnProperty("length"))) { if (Object.prototype.hasOwnProperty.length !== 1) { $ERROR('#2: The length property of the toObject method is 1'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A12.js index aa0ab4929..1c4da440e 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A12.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A12.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.hasOwnProperty.call(undefined, 'foo'); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A13.js index 68b75b0e7..c42cc9204 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A13.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A13.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.hasOwnProperty.call(null, 'foo'); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T1.js index f86012728..940b4b595 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T1.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the hasOwnProperty method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T1.js - * @description Checking type of the Object.prototype.hasOwnProperty and the returned result - */ +/*--- +info: > + When the hasOwnProperty method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) Return true +description: > + Checking type of the Object.prototype.hasOwnProperty and the + returned result +---*/ //CHECK#1 if (typeof Object.prototype.hasOwnProperty !== "function") { @@ -22,4 +23,3 @@ if (!(Object.prototype.hasOwnProperty("hasOwnProperty"))) { $ERROR('#2: hasOwnProperty method works properly'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T2.js index 860cd4936..e5f63d8b3 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T2.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the hasOwnProperty method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T2.js - * @description Argument of the hasOwnProperty method is a custom boolean property - */ +/*--- +info: > + When the hasOwnProperty method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) Return true +description: Argument of the hasOwnProperty method is a custom boolean property +---*/ //CHECK#1 if (typeof Object.prototype.hasOwnProperty !== "function") { @@ -34,4 +33,3 @@ if (!(obj.hasOwnProperty("the_property"))) { $ERROR('#4: hasOwnProperty method works properly'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T3.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T3.js index cb6cb43bf..a9cdf24c0 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T3.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T3.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the hasOwnProperty method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A1_T3.js - * @description Argument of the hasOwnProperty method is a custom property of a function object - */ +/*--- +info: > + When the hasOwnProperty method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) Return true +description: > + Argument of the hasOwnProperty method is a custom property of a + function object +---*/ var FACTORY = function(){ this.aproperty = 1; @@ -37,5 +38,3 @@ if (instance.hasOwnProperty("toString")) { if (!(instance.hasOwnProperty("aproperty"))) { $ERROR('#4: hasOwnProperty method works properly'); } - - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A6.js index 2af4fa766..e5d7b02bb 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.hasOwnProperty has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.hasOwnProperty fails - */ +/*--- +info: Object.prototype.hasOwnProperty has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.hasOwnProperty fails +---*/ //CHECK#1 if (Object.prototype.hasOwnProperty.prototype !== undefined) { $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property'+Object.prototype.hasOwnProperty.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A7.js index d4543791a..b99c8f18c 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A7.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. -/** - * Object.prototype.hasOwnProperty can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A7.js - * @description Checking if creating "new Object.prototype.hasOwnProperty" fails - */ +/*--- +info: Object.prototype.hasOwnProperty can't be used as a constructor +description: Checking if creating "new Object.prototype.hasOwnProperty" fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.hasOwnProperty; @@ -17,4 +18,3 @@ try { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A8.js index d1e245296..96d4ecf46 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A8.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.hasOwnProperty.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A8.js - * @description Checking if enumerating the Object.prototype.hasOwnProperty.length property fails - */ +/*--- +info: > + The Object.prototype.hasOwnProperty.length property has the attribute + DontEnum +description: > + Checking if enumerating the Object.prototype.hasOwnProperty.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { @@ -25,4 +28,3 @@ for (p in Object.prototype.hasOwnProperty){ $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A9.js index c32d75ff8..ba4b583a9 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A9.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.hasOwnProperty.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A9.js - * @description Checking if deleting the Object.prototype.hasOwnProperty.length property fails - */ +/*--- +info: > + The Object.prototype.hasOwnProperty.length property has the attribute + DontDelete +description: > + Checking if deleting the Object.prototype.hasOwnProperty.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { @@ -22,4 +25,3 @@ if (delete Object.prototype.hasOwnProperty.length) { if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { $FAIL('#2: The Object.prototype.hasOwnProperty.length property has the attributes DontDelete'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A1.js index accc8ba7d..b92350698 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A1.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the isPrototypeOf method is called with argument V and when O and - * V refer to the same object or to objects joined to each other, return true - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A1.js - * @description Creating two objects with the same prototype - */ +/*--- +info: > + When the isPrototypeOf method is called with argument V and when O and + V refer to the same object or to objects joined to each other, return true +description: Creating two objects with the same prototype +includes: [$PRINT.js] +---*/ function USER_FACTORY( name ) { this.name = name; @@ -51,4 +51,3 @@ if(Number.isPrototypeOf(luke)){ } // ///////// - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A10.js index 81609c8dc..635f7351b 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A10.js @@ -1,13 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.isPrototypeOf.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A10.js - * @description Checking if varying the Object.prototype.isPrototypeOf.length property fails - * @noStrict - */ +/*--- +info: > + The Object.prototype.isPrototypeOf.length property has the attribute + ReadOnly +description: > + Checking if varying the Object.prototype.isPrototypeOf.length + property fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) { @@ -22,4 +25,3 @@ Object.prototype.isPrototypeOf.length = function(){return "shifted";}; if (Object.prototype.isPrototypeOf.length !== obj) { $ERROR('#2: the Object.prototype.isPrototypeOf length property has the attributes ReadOnly'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A11.js index 71200a579..44dba2c3c 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A11.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 hasOwnProperty method is 1 - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A11.js - * @description Checking the Object.prototype.hasOwnProperty.length - */ +/*--- +info: The length property of the hasOwnProperty method is 1 +description: Checking the Object.prototype.hasOwnProperty.length +---*/ //CHECK#1 if (!(Object.prototype.isPrototypeOf.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.isPrototypeOf.hasOwnProperty("length"))) { if (Object.prototype.isPrototypeOf.length !== 1) { $ERROR('#2: The length property of the toObject method is 1'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A12.js index e81cd68d1..22c7b86e7 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A12.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A12.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.isPrototypeOf.call(undefined, {}); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A13.js index 1a37cecdd..3e98db65e 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A13.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A13.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.isPrototypeOf.call(null, {}); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A6.js index b55044497..9a0c74a73 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.isPrototypeOf has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.isPrototypeOf fails - */ +/*--- +info: Object.prototype.isPrototypeOf has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.isPrototypeOf fails +---*/ //CHECK#1 if (Object.prototype.isPrototypeOf.prototype !== undefined) { $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property'+Object.prototype.isPrototypeOf.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A7.js index 537ee1bb1..d1697a254 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A7.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. -/** - * Object.prototype.isPrototypeOf can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A7.js - * @description Checking if creating new "Object.prototype.isPrototypeOf" fails - */ +/*--- +info: Object.prototype.isPrototypeOf can't be used as a constructor +description: Checking if creating new "Object.prototype.isPrototypeOf" fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.isPrototypeOf; @@ -17,4 +18,3 @@ try { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A8.js index 17c7e1e12..7ac195826 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A8.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.isPrototypeOf.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A8.js - * @description Checknig if enumerating the Object.prototype.isPrototypeOf.length property fails - */ +/*--- +info: > + The Object.prototype.isPrototypeOf.length property has the attribute + DontEnum +description: > + Checknig if enumerating the Object.prototype.isPrototypeOf.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) { @@ -25,4 +28,3 @@ for (p in Object.prototype.isPrototypeOf){ $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A9.js index fe93b264d..f21ef8dbd 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A9.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.isPrototypeOf.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.6/S15.2.4.6_A9.js - * @description Checking deleting the Object.prototype.isPrototypeOf.length property fails - */ +/*--- +info: > + The Object.prototype.isPrototypeOf.length property has the attribute + DontDelete +description: > + Checking deleting the Object.prototype.isPrototypeOf.length + property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) { @@ -18,4 +21,3 @@ if (delete Object.prototype.isPrototypeOf.length) { $ERROR('#1: The Object.prototype.isPrototypeOf.length property has the attributes DontDelete'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js index a375a71ae..c06a1b1ff 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js @@ -1,13 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.propertyIsEnumerable.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js - * @description Checking if varying the Object.prototype.propertyIsEnumerable.length property fails - * @noStrict - */ +/*--- +info: > + The Object.prototype.propertyIsEnumerable.length property has the + attribute ReadOnly +description: > + Checking if varying the + Object.prototype.propertyIsEnumerable.length property fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { @@ -22,4 +25,3 @@ Object.prototype.propertyIsEnumerable.length = function(){return "shifted";}; if (Object.prototype.propertyIsEnumerable.length !== obj) { $ERROR('#2: the Object.prototype.propertyIsEnumerable length property has the attributes ReadOnly'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js index c6c54336e..a82dbae79 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.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 hasOwnProperty method is 1 - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js - * @description Checking the value of Object.prototype.hasOwnProperty.length - */ +/*--- +info: The length property of the hasOwnProperty method is 1 +description: Checking the value of Object.prototype.hasOwnProperty.length +---*/ //CHECK#1 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty("length"))) { if (Object.prototype.propertyIsEnumerable.length !== 1) { $ERROR('#2: The length property of the toObject method is 1'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js index 6340475e3..79b8dfa41 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.propertyIsEnumerable.call(undefined, 'foo'); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js index d053e6ab4..9d364d460 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.propertyIsEnumerable.call(null, 'foo'); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js index 455bab10a..827bbe2b3 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The propertyIsEnumerable method does not consider objects in the prototype chain - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js - * @description Calling the propertyIsEnumerable method for object in the prototype chain - */ +/*--- +info: > + The propertyIsEnumerable method does not consider objects in the + prototype chain +description: > + Calling the propertyIsEnumerable method for object in the + prototype chain +---*/ //CHECK#1 if (typeof Object.prototype.propertyIsEnumerable !== "function") { @@ -36,4 +38,3 @@ if (seagull.propertyIsEnumerable("rootprop")) { $ERROR('#4: propertyIsEnumerable method does not consider objects in the prototype chain'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js index b7a328f79..e5105ebf5 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js @@ -1,17 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the propertyIsEnumerable method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) If the property has the DontEnum attribute, return false - * v) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js - * @description Checking the type of Object.prototype.propertyIsEnumerable and the returned result - */ +/*--- +info: > + When the propertyIsEnumerable method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) If the property has the DontEnum attribute, return false + v) Return true +description: > + Checking the type of Object.prototype.propertyIsEnumerable and the + returned result +---*/ //CHECK#1 if (typeof Object.prototype.propertyIsEnumerable !== "function") { @@ -23,4 +24,3 @@ if (Object.prototype.propertyIsEnumerable("propertyIsEnumerable")) { $ERROR('#2: hasOwnProperty method works properly'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js index 373880b83..abb41a237 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js @@ -1,17 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the propertyIsEnumerable method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) If the property has the DontEnum attribute, return false - * v) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js - * @description Argument of the propertyIsEnumerable method is a custom boolean property - */ +/*--- +info: > + When the propertyIsEnumerable method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) If the property has the DontEnum attribute, return false + v) Return true +description: > + Argument of the propertyIsEnumerable method is a custom boolean + property +---*/ //CHECK#1 if (typeof Object.prototype.propertyIsEnumerable !== "function") { @@ -39,4 +40,3 @@ if (accum.indexOf("the_property")!==0) { $ERROR('#4: enumerating works properly'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js index 0e74d7a83..a6f340e67 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.propertyIsEnumerable has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.propertyIsEnumerable fails - */ +/*--- +info: Object.prototype.propertyIsEnumerable has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.propertyIsEnumerable fails +---*/ //CHECK#1 if (Object.prototype.propertyIsEnumerable.prototype !== undefined) { $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property'+Object.prototype.propertyIsEnumerable.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js index 6c0974bfd..cdb489f4b 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.propertyIsEnumerable can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js - * @description Checking if creating "new Object.prototype.propertyIsEnumerable" fails - */ +/*--- +info: Object.prototype.propertyIsEnumerable can't be used as a constructor +description: > + Checking if creating "new Object.prototype.propertyIsEnumerable" + fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.propertyIsEnumerable; @@ -17,4 +20,3 @@ try { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js index e83f04365..1ab6aeb1a 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.propertyIsEnumerable.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js - * @description Checking if enumerating the Object.prototype.propertyIsEnumerable.length property fails - */ +/*--- +info: > + The Object.prototype.propertyIsEnumerable.length property has the + attribute DontEnum +description: > + Checking if enumerating the + Object.prototype.propertyIsEnumerable.length property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { @@ -25,4 +28,3 @@ for (p in Object.prototype.propertyIsEnumerable){ $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js index 139add613..136750e52 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.propertyIsEnumerable.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js - * @description Checking if deleting the Object.prototype.propertyIsEnumerable.length property fails - */ +/*--- +info: > + The Object.prototype.propertyIsEnumerable.length property has the + attribute DontDelete +description: > + Checking if deleting the + Object.prototype.propertyIsEnumerable.length property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { @@ -18,4 +21,3 @@ if (delete Object.prototype.propertyIsEnumerable.length) { $ERROR('#1: The Object.prototype.propertyIsEnumerable.length property has the attributes DontDelete'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T1.js b/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T1.js index 393c83870..d09641b30 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T1.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T1.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The initial value of Object.prototype.constructor is the built-in Object constructor - * - * @path ch15/15.2/15.2.4/S15.2.4.1_A1_T1.js - * @description Checking the Object.prototype.constructor - */ +/*--- +info: > + The initial value of Object.prototype.constructor is the built-in Object + constructor +description: Checking the Object.prototype.constructor +---*/ //CHECK#1 if (Object.prototype.constructor !== Object) { $ERROR('#1: The initial value of Object.prototype.constructor is the built-in Object constructor'); } - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T2.js b/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T2.js index df3b111f7..1c7b710cc 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T2.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4.1_A1_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The initial value of Object.prototype.constructor is the built-in Object constructor - * - * @path ch15/15.2/15.2.4/S15.2.4.1_A1_T2.js - * @description Creating "new Object.prototype.constructor" and checking its properties - */ +/*--- +info: > + The initial value of Object.prototype.constructor is the built-in Object + constructor +description: > + Creating "new Object.prototype.constructor" and checking its + properties +---*/ var constr = Object.prototype.constructor; @@ -37,4 +39,3 @@ if (obj.toString() !== to_string_result) { if (obj.valueOf().toString() !== to_string_result) { $ERROR('#4: when new Object() calls the newly constructed object has no [[Value]] property.'); } - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T1.js b/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T1.js index cfdbafe9f..9911587e1 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T1.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T1.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object prototype object has not prototype - * - * @path ch15/15.2/15.2.4/S15.2.4_A1_T1.js - * @description Checking if obtaining Object.prototype.prototype fails - */ +/*--- +info: Object prototype object has not prototype +description: Checking if obtaining Object.prototype.prototype fails +---*/ // CHECK#1 if (Object.prototype.prototype !== undefined) { $ERROR('#1: Object prototype has not prototype'); } - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T2.js b/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T2.js index 1c6e97e24..35cb484b0 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T2.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4_A1_T2.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. -/** - * Object prototype object has not prototype - * - * @path ch15/15.2/15.2.4/S15.2.4_A1_T2.js - * @description Since the Object prototype object has not prototype, deleted toString method can not be found in prototype chain - */ +/*--- +info: Object prototype object has not prototype +description: > + Since the Object prototype object has not prototype, deleted + toString method can not be found in prototype chain +---*/ //CHECK#1 if (Object.prototype.toString() == false) { @@ -25,4 +25,3 @@ try { } } // - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4_A2.js b/test/suite/ch15/15.2/15.2.4/S15.2.4_A2.js index d0d5647cc..8111b4838 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4_A2.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4_A2.js @@ -1,12 +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 [[Class]] property of Object prototype object is "Object" - * - * @path ch15/15.2/15.2.4/S15.2.4_A2.js - * @description Getting the value of the internal [[Class]] property with Object.prototype.toString() function - */ +/*--- +info: > + The value of the internal [[Class]] property of Object prototype object + is "Object" +description: > + Getting the value of the internal [[Class]] property with + Object.prototype.toString() function +---*/ var tostr = Object.prototype.toString(); @@ -14,4 +16,3 @@ var tostr = Object.prototype.toString(); if (tostr !== "[object Object]") { $ERROR('#1: the value of the internal [[Class]] property of Object prototype object is "Object"'); } - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4_A3.js b/test/suite/ch15/15.2/15.2.4/S15.2.4_A3.js index cd5dc8b2d..2f93e9d0e 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4_A3.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4_A3.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Since the Object prototype object is not a function, it has not [[call]] method - * - * @path ch15/15.2/15.2.4/S15.2.4_A3.js - * @description Checking if calling Object prototype as a function fails - */ +/*--- +info: > + Since the Object prototype object is not a function, it has not [[call]] + method +description: Checking if calling Object prototype as a function fails +includes: + - $PRINT.js + - $FAIL.js +---*/ //CHECK#1 try { @@ -15,4 +18,3 @@ try { } catch (e) { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/S15.2.4_A4.js b/test/suite/ch15/15.2/15.2.4/S15.2.4_A4.js index 34a95179c..f0584f3d3 100644 --- a/test/suite/ch15/15.2/15.2.4/S15.2.4_A4.js +++ b/test/suite/ch15/15.2/15.2.4/S15.2.4_A4.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Since the Object prototype object is not a function, it has not [[create]] method - * - * @path ch15/15.2/15.2.4/S15.2.4_A4.js - * @description Checking if creating "new Object.prototype" fails - */ +/*--- +info: > + Since the Object prototype object is not a function, it has not + [[create]] method +description: Checking if creating "new Object.prototype" fails +includes: + - $PRINT.js + - $FAIL.js +---*/ //CHECK#1 try { @@ -15,4 +18,3 @@ try { } catch (e) { $PRINT(e); } - |