diff options
Diffstat (limited to 'test/suite/ch15/15.4/15.4.2')
20 files changed, 136 insertions, 179 deletions
diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T1.js index d833ddf9a..435038333 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T1.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object - * is set to the original Array prototype object, the one that - * is the initial value of Array.prototype - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T1.js - * @description Create new property of Array.prototype. When new Array object has this property - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object + is set to the original Array prototype object, the one that + is the initial value of Array.prototype +description: > + Create new property of Array.prototype. When new Array object has + this property +---*/ //CHECK#1 Array.prototype.myproperty = 1; @@ -21,4 +22,3 @@ if (x.myproperty !== 1) { if (x.hasOwnProperty('myproperty') !== false) { $ERROR('#2: Array.prototype.myproperty = 1; var x = new Array(); x.hasOwnProperty(\'myproperty\') === false. Actual: ' + (x.hasOwnProperty('myproperty'))); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T2.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T2.js index 3c3098d0b..177a0156e 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T2.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object - * is set to the original Array prototype object, the one that - * is the initial value of Array.prototype - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T2.js - * @description Array.prototype.toString = Object.prototype.toString - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object + is set to the original Array prototype object, the one that + is the initial value of Array.prototype +description: Array.prototype.toString = Object.prototype.toString +---*/ //CHECK#1 Array.prototype.toString = Object.prototype.toString; @@ -23,5 +22,3 @@ var x = new Array(0,1,2); if (x.toString() !== "[object " + "Array" + "]") { $ERROR('#2: Array.prototype.toString = Object.prototype.toString; var x = new Array(0,1,2); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString())); } - - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T3.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T3.js index 6e5e9ea3d..28db0bcb5 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T3.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T3.js @@ -1,18 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object - * is set to the original Array prototype object, the one that - * is the initial value of Array.prototype - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.1_T3.js - * @description Checking use isPrototypeOf - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object + is set to the original Array prototype object, the one that + is the initial value of Array.prototype +description: Checking use isPrototypeOf +---*/ //CHECK#1 if (Array.prototype.isPrototypeOf(new Array()) !== true) { $ERROR('#1: Array.prototype.isPrototypeOf(new Array()) === true. Actual: ' + (Array.prototype.isPrototypeOf(new Array()))); } - - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.2_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.2_T1.js index 0046b6955..1b567b88f 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.2_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.2_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 [[Class]] property of the newly constructed object is set to "Array" - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.2_T1.js - * @description Checking use Object.prototype.toString - */ +/*--- +info: The [[Class]] property of the newly constructed object is set to "Array" +description: Checking use Object.prototype.toString +---*/ //CHECK#1 var x = new Array(); @@ -21,4 +19,3 @@ x.getClass = Object.prototype.toString; if (x.getClass() !== "[object " + "Array" + "]") { $ERROR('#2: var x = new Array(0,1,2); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass())); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.3_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.3_T1.js index e6d11bca8..546b454b1 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.3_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.3_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * This description of Array constructor applies if and only if - * the Array constructor is given no arguments or at least two arguments - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A1.3_T1.js - * @description Checking case when Array constructor is given one argument - */ +/*--- +info: > + This description of Array constructor applies if and only if + the Array constructor is given no arguments or at least two arguments +description: Checking case when Array constructor is given one argument +---*/ var x = new Array(2); @@ -20,4 +19,3 @@ if (x.length === 1) { if (x[0] === 2) { $ERROR('#2: var x = new Array(2); x[0] !== 2'); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.1_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.1_T1.js index 5bdd8828b..ddf11672a 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.1_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.1_T1.js @@ -1,13 +1,12 @@ // 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 newly constructed object; - * is set to the number of arguments - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.1_T1.js - * @description Array constructor is given no arguments or at least two arguments - */ +/*--- +info: > + The length property of the newly constructed object; + is set to the number of arguments +description: Array constructor is given no arguments or at least two arguments +---*/ //CHECK#1 if (new Array().length !== 0) { @@ -23,4 +22,3 @@ if (new Array(0,1,0,1).length !== 4) { if (new Array(undefined, undefined).length !== 2) { $ERROR('#3: new Array(undefined, undefined).length === 2. Actual: ' + (new Array(undefined, undefined).length)); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.2_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.2_T1.js index 9e6371253..de4ff6181 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.2_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.2_T1.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. -/** - * The 0 property of the newly constructed object is set to item0 - * (if supplied); the 1 property of the newly constructed object is set to item1 - * (if supplied); and, in general, for as many arguments as there are, the k property - * of the newly constructed object is set to argument k, where the first argument is - * considered to be argument number 0 - * - * @path ch15/15.4/15.4.2/15.4.2.1/S15.4.2.1_A2.2_T1.js - * @description Checking correct work this algorithm - */ +/*--- +info: > + The 0 property of the newly constructed object is set to item0 + (if supplied); the 1 property of the newly constructed object is set to item1 + (if supplied); and, in general, for as many arguments as there are, the k property + of the newly constructed object is set to argument k, where the first argument is + considered to be argument number 0 +description: Checking correct work this algorithm +---*/ //CHECK# var x = new Array( @@ -35,5 +34,4 @@ for (var i = 0; i < 100; i++) { if (result !== true) { $ERROR('#1: x[i] === i. Actual: ' + (x[i])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T1.js index 597a29467..58d351949 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T1.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object - * is set to the original Array prototype object, the one that - * is the initial value of Array.prototype - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T1.js - * @description Create new property of Array.prototype. When new Array object has this property - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object + is set to the original Array prototype object, the one that + is the initial value of Array.prototype +description: > + Create new property of Array.prototype. When new Array object has + this property +---*/ //CHECK#1 Array.prototype.myproperty = 1; @@ -16,4 +17,3 @@ var x = new Array(0); if (x.myproperty !== 1) { $ERROR('#1: Array.prototype.myproperty = 1; var x = new Array(0); x.myproperty === 1. Actual: ' + (x.myproperty)); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T2.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T2.js index 2ae3fccaa..743e3b6d8 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T2.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object - * is set to the original Array prototype object, the one that - * is the initial value of Array.prototype - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T2.js - * @description Array.prototype.toString = Object.prototype.toString - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object + is set to the original Array prototype object, the one that + is the initial value of Array.prototype +description: Array.prototype.toString = Object.prototype.toString +---*/ //CHECK#1 Array.prototype.toString = Object.prototype.toString; @@ -16,4 +15,3 @@ var x = new Array(0); if (x.toString() !== "[object " + "Array" + "]") { $ERROR('#1: Array.prototype.toString = Object.prototype.toString; var x = new Array(0); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString())); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T3.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T3.js index 679ff6876..4a9d40710 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T3.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T3.js @@ -1,18 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object - * is set to the original Array prototype object, the one that - * is the initial value of Array.prototype - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.1_T3.js - * @description Checking use isPrototypeOf - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object + is set to the original Array prototype object, the one that + is the initial value of Array.prototype +description: Checking use isPrototypeOf +---*/ //CHECK#1 if (Array.prototype.isPrototypeOf(new Array(0)) !== true) { $ERROR('#1: Array.prototype.isPrototypeOf(new Array(0)) === true. Actual: ' + (Array.prototype.isPrototypeOf(new Array(0)))); } - - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.2_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.2_T1.js index 3cc17dd17..706d8d978 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.2_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.2_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 [[Class]] property of the newly constructed object is set to "Array" - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A1.2_T1.js - * @description Checking use Object.prototype.toString - */ +/*--- +info: The [[Class]] property of the newly constructed object is set to "Array" +description: Checking use Object.prototype.toString +---*/ //CHECK#1 var x = new Array(0); @@ -14,4 +12,3 @@ x.getClass = Object.prototype.toString; if (x.getClass() !== "[object " + "Array" + "]") { $ERROR('#1: var x = new Array(0); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass())); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.1_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.1_T1.js index 7d9a9952c..c0e432363 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.1_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.1_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is a Number and ToUint32(len) is equal to len, - * then the length property of the newly constructed object is set to ToUint32(len) - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.1_T1.js - * @description Array constructor is given one argument - */ +/*--- +info: > + If the argument len is a Number and ToUint32(len) is equal to len, + then the length property of the newly constructed object is set to ToUint32(len) +description: Array constructor is given one argument +---*/ //CHECK#1 var x = new Array(0); @@ -25,5 +24,4 @@ if (x.length !== 1) { var x = new Array(4294967295); if (x.length !== 4294967295) { $ERROR('#3: var x = new Array(4294967295); x.length === 4294967295. Actual: ' + (x.length)); -} - +} diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T1.js index 244cdb178..59f9825c6 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is a Number and ToUint32(len) is not equal to len, - * a RangeError exception is thrown - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T1.js - * @description Use try statement. len = -1, 4294967296, 4294967297 - */ +/*--- +info: > + If the argument len is a Number and ToUint32(len) is not equal to len, + a RangeError exception is thrown +description: Use try statement. len = -1, 4294967296, 4294967297 +---*/ //CHECK#1 try { @@ -38,4 +37,3 @@ try { $ERROR('#3.2: new Array(4294967297) throw RangeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T2.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T2.js index 6b2419d6a..f80d7cef4 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T2.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is a Number and ToUint32(len) is not equal to len, - * a RangeError exception is thrown - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T2.js - * @description Use try statement. len = NaN, +/-Infinity - */ +/*--- +info: > + If the argument len is a Number and ToUint32(len) is not equal to len, + a RangeError exception is thrown +description: Use try statement. len = NaN, +/-Infinity +---*/ //CHECK#1 try { @@ -38,4 +37,3 @@ try { $ERROR('#3.2: new Array(Number.NEGATIVE_INFINITY) throw RangeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T3.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T3.js index 8e4a21486..6f987a756 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T3.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is a Number and ToUint32(len) is not equal to len, - * a RangeError exception is thrown - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.2_T3.js - * @description Use try statement. len = 1.5, Number.MAX_VALUE, Number.MIN_VALUE - */ +/*--- +info: > + If the argument len is a Number and ToUint32(len) is not equal to len, + a RangeError exception is thrown +description: Use try statement. len = 1.5, Number.MAX_VALUE, Number.MIN_VALUE +---*/ //CHECK#1 try { @@ -38,4 +37,3 @@ try { $ERROR('#3.2: new Array(Number.MIN_VALUE) throw RangeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T1.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T1.js index d5b4b5333..381bce20e 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T1.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is not a Number, then the length property of - * the newly constructed object is set to 1 and the 0 property of - * the newly constructed object is set to len - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T1.js - * @description Checking for null and undefined - */ +/*--- +info: > + If the argument len is not a Number, then the length property of + the newly constructed object is set to 1 and the 0 property of + the newly constructed object is set to len +description: Checking for null and undefined +---*/ var x = new Array(null); @@ -33,4 +32,3 @@ if (x.length !== 1) { if (x[0] !== undefined) { $ERROR('#4: var x = new Array(undefined); x[0] === undefined. Actual: ' + (x[0])); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T2.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T2.js index 5f4f26d05..940fb54bd 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T2.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is not a Number, then the length property of - * the newly constructed object is set to 1 and the 0 property of - * the newly constructed object is set to len - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T2.js - * @description Checking for boolean primitive and Boolean object - */ +/*--- +info: > + If the argument len is not a Number, then the length property of + the newly constructed object is set to 1 and the 0 property of + the newly constructed object is set to len +description: Checking for boolean primitive and Boolean object +---*/ var x = new Array(true); @@ -34,4 +33,3 @@ if (x.length !== 1) { if (x[0] !== obj) { $ERROR('#4: var obj = new Boolean(false); var x = new Array(obj); x[0] === obj. Actual: ' + (x[0])); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T3.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T3.js index 4fe1311f9..19188590e 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T3.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is not a Number, then the length property of - * the newly constructed object is set to 1 and the 0 property of - * the newly constructed object is set to len - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T3.js - * @description Checking for boolean primitive and Boolean object - */ +/*--- +info: > + If the argument len is not a Number, then the length property of + the newly constructed object is set to 1 and the 0 property of + the newly constructed object is set to len +description: Checking for boolean primitive and Boolean object +---*/ var x = new Array("1"); @@ -34,4 +33,3 @@ if (x.length !== 1) { if (x[0] !== obj) { $ERROR('#4: var obj = new String("0"); var x = new Array(obj); x[0] === obj. Actual: ' + (x[0])); } - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T4.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T4.js index 5565e216d..28180f3d6 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T4.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is not a Number, then the length property of - * the newly constructed object is set to 1 and the 0 property of - * the newly constructed object is set to len - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T4.js - * @description Checking for Number object - */ +/*--- +info: > + If the argument len is not a Number, then the length property of + the newly constructed object is set to 1 and the 0 property of + the newly constructed object is set to len +description: Checking for Number object +---*/ var obj = new Number(0); var x = new Array(obj); @@ -48,5 +47,3 @@ if (x.length !== 1) { if (x[0] !== obj) { $ERROR('#6: var obj = new Number(4294967295); var x = new Array(obj); x[0] === obj. Actual: ' + (x[0])); } - - diff --git a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T5.js b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T5.js index 10355f3bd..e91b597db 100644 --- a/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T5.js +++ b/test/suite/ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T5.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the argument len is not a Number, then the length property of - * the newly constructed object is set to 1 and the 0 property of - * the newly constructed object is set to len - * - * @path ch15/15.4/15.4.2/15.4.2.2/S15.4.2.2_A2.3_T5.js - * @description Checking for Number object - */ +/*--- +info: > + If the argument len is not a Number, then the length property of + the newly constructed object is set to 1 and the 0 property of + the newly constructed object is set to len +description: Checking for Number object +---*/ var obj = new Number(-1); var x = new Array(obj); @@ -48,5 +47,3 @@ if (x.length !== 1) { if (x[0] !== obj) { $ERROR('#6: var obj = new Number(4294967297); var x = new Array(obj); x[0] === obj. Actual: ' + (x[0])); } - - |