diff options
Diffstat (limited to 'test/suite/ch11/11.9/11.9.1')
29 files changed, 152 insertions, 224 deletions
diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A1.js index 3f9904f46..9cd234174 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_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. -/** - * White Space and Line Terminator between EqualityExpression and "==" or between "==" and RelationalExpression are allowed - * - * @path ch11/11.9/11.9.1/S11.9.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between EqualityExpression and "==" or + between "==" and RelationalExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("true\u0009==\u00091") !== true) { @@ -57,4 +57,3 @@ if (eval("true\u2029==\u20291") !== true) { if (eval("true\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029==\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== true) { $ERROR('#10: (true\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029==\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js index 2d59985ae..ff27d214e 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_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. -/** - * Operator x == y uses GetValue - * - * @path ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x == y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1 == 1) !== true) { @@ -40,4 +38,3 @@ objecty.prop = 1; if ((objectx.prop == objecty.prop) !== true) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop == objecty.prop) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T2.js index 21994ea8b..0705baac8 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_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. -/** - * Operator x == y uses GetValue - * - * @path ch11/11.9/11.9.1/S11.9.1_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x == y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: x == 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js index 0f8b2c378..273bcd3b7 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_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. -/** - * Operator x == y uses GetValue - * - * @path ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x == y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: 1 == y throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T1.js index 04d461dcb..eb62a4f59 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.9/11.9.1/S11.9.1_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 0; @@ -19,5 +17,3 @@ var x = 0; if ((x == (x = 1)) !== false) { $ERROR('#2: var x = 0; (x == (x = 1)) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js index fdfc3fc92..d56399f81 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T3.js index eecdc35aa..850fd0d47 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.9/11.9.1/S11.9.1_A2.4_T3.js - * @description Checking with undeclarated variables - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +---*/ //CHECK#1 try { @@ -23,5 +21,3 @@ catch (e) { if (((y = 1) == y) !== true) { $ERROR('#2: ((y = 1) == y) === true'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.js index f54158976..dc5152d60 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.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. -/** - * Return true, if x and y are both true or both false; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A3.1.js - * @description x and y are boolean primitives - */ +/*--- +info: > + Return true, if x and y are both true or both false; otherwise, return + false +description: x and y are boolean primitives +---*/ //CHECK#1 if ((true == true) !== true) { @@ -27,4 +27,3 @@ if ((true == false) !== false) { if ((false == true) !== false) { $ERROR('#4: (false == true) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js index d64e86948..ec844948a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.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 Type(x) is Boolean and Type(y) is Number, - * return the result of comparison ToNumber(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A3.2.js - * @description x is primitive boolean, y is primitive number - */ +/*--- +info: > + If Type(x) is Boolean and Type(y) is Number, + return the result of comparison ToNumber(x) == y +description: x is primitive boolean, y is primitive number +---*/ //CHECK#1 if ((true == 1) !== true) { @@ -18,4 +17,3 @@ if ((true == 1) !== true) { if ((false == "0") !== true) { $ERROR('#2: (false == "0") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js index 342c6f961..2bc607203 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.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 Type(y) is Number and Type(y) is Boolean, - * return the result of comparison x == ToNumber(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A3.3.js - * @description x is primitive number, y is primitive boolean - */ +/*--- +info: > + If Type(y) is Number and Type(y) is Boolean, + return the result of comparison x == ToNumber(y) +description: x is primitive number, y is primitive boolean +---*/ //CHECK#1 if ((0 == false) !== true) { @@ -18,4 +17,3 @@ if ((0 == false) !== true) { if (("1" == true) !== true) { $ERROR('#2: ("1" == true) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js index 2e5b4738a..3e847949a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_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. -/** - * If x or y is NaN, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js - * @description x is NaN - */ +/*--- +info: If x or y is NaN, return false +description: x is NaN +---*/ //CHECK#1 if ((Number.NaN == true) !== false) { @@ -52,5 +50,3 @@ if ((Number.NaN == "string") !== false) { if ((Number.NaN == new Object()) !== false) { $ERROR('#9: (NaN == new Object()) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js index 8d3be41d2..6c46a4572 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_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. -/** - * If x or y is NaN, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js - * @description y is NaN - */ +/*--- +info: If x or y is NaN, return false +description: y is NaN +---*/ //CHECK#1 if ((true == Number.NaN) !== false) { @@ -52,4 +50,3 @@ if (("string" == Number.NaN) !== false) { if ((new Object() == Number.NaN) !== false) { $ERROR('#9: (new Object() == NaN) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.js index b7e26344d..165fd9e00 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.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. -/** - * If x is +0(-0) and y is -0(+0), return true - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.2.js - * @description Checking all combinations - */ +/*--- +info: If x is +0(-0) and y is -0(+0), return true +description: Checking all combinations +---*/ //CHECK#1 if ((+0 == -0) !== true) { @@ -17,4 +15,3 @@ if ((+0 == -0) !== true) { if ((-0 == +0) !== true) { $ERROR('#2: (-0 == +0) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js index b888b280c..2f668c44a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.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. -/** - * Type(x) and Type(y) are Number-s minus NaN, +0, -0. - * Return true, if x is the same number value as y; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.3.js - * @description x and y are primitive numbers - */ +/*--- +info: > + Type(x) and Type(y) are Number-s minus NaN, +0, -0. + Return true, if x is the same number value as y; otherwise, return false +description: x and y are primitive numbers +---*/ //CHECK#1 if ((Number.POSITIVE_INFINITY == Number.POSITIVE_INFINITY) !== true) { @@ -33,4 +32,3 @@ if ((1 == 0.999999999999) !== false) { if ((1.0 == 1) !== true) { $ERROR('#5: (1.0 == 1) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js index 26ba2d50d..5ad7cea74 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.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. -/** - * Type(x) and Type(y) are String-s. - * Return true, if x and y are exactly the same sequence of characters; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A5.1.js - * @description x and y are primitive string - */ +/*--- +info: > + Type(x) and Type(y) are String-s. + Return true, if x and y are exactly the same sequence of characters; otherwise, return false +description: x and y are primitive string +---*/ //CHECK#1 if (("" == "") !== true) { @@ -43,4 +42,3 @@ if (("1.0" == "1") !== false) { if (("0xff" == "255") !== false) { $ERROR('#7: ("0xff" == "255") === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js index a6464a519..77c8a5c86 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.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 Type(x) is Number and Type(y) is String, - * return the result of comparison x == ToNumber(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A5.2.js - * @description x is primitive number, y is primitive string - */ +/*--- +info: > + If Type(x) is Number and Type(y) is String, + return the result of comparison x == ToNumber(y) +description: x is primitive number, y is primitive string +---*/ //CHECK#1 if ((1 == "1") !== true) { @@ -33,4 +32,3 @@ if ((255 == "0xff") !== true) { if ((0 == "") !== true) { $ERROR('#5: (0 == "") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js index 7fb95cf74..b7cabbc12 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.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 Type(x) is String and Type(y) is Number, - * return the result of comparison ToNumber(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A5.3.js - * @description x is primitive string, y is primitive number - */ +/*--- +info: > + If Type(x) is String and Type(y) is Number, + return the result of comparison ToNumber(x) == y +description: x is primitive string, y is primitive number +---*/ //CHECK#1 if (("-1" == -1) !== true) { @@ -28,5 +27,3 @@ if (("false" == 0) !== false) { if (("5e-324" == 5e-324) !== true) { $ERROR('#4: ("5e-324" == 5e-324) === true'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.js index 95e8b80d7..9eb090789 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.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. -/** - * If Type(x) as well as Type(y) is undefined or null, return true - * - * @path ch11/11.9/11.9.1/S11.9.1_A6.1.js - * @description Checking all combinations - */ +/*--- +info: If Type(x) as well as Type(y) is undefined or null, return true +description: Checking all combinations +---*/ //CHECK#1 if ((undefined == undefined) !== true) { @@ -37,4 +35,3 @@ if ((null == void 0) !== true) { if ((null == null) !== true) { $ERROR('#6: (null == null) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js index 4dcf84051..1d5479bac 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.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. -/** - * If one expression is undefined or null and another is not, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js - * @description x is null or undefined, y is not - */ +/*--- +info: If one expression is undefined or null and another is not, return false +description: x is null or undefined, y is not +---*/ //CHECK#1 if ((undefined == true) !== false) { @@ -47,4 +45,3 @@ if ((null == "null") !== false) { if ((null == {}) !== false) { $ERROR('#8: (null == {}) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js index 6f5f2ac70..4530bca34 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_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. -/** - * If one expression is undefined or null and another is not, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js - * @description y is null or undefined, x is not - */ +/*--- +info: If one expression is undefined or null and another is not, return false +description: y is null or undefined, x is not +---*/ //CHECK#1 if ((false == undefined) !== false) { @@ -47,4 +45,3 @@ if (("null" == null) !== false) { if (({} == null) !== false) { $ERROR('#8: ({} == null) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js index b2f0d23a7..a9c76a6d2 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.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. -/** - * Type(x) and Type(y) are Object-s. - * Return true, if x and y are references to the same Object; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.1.js - * @description Checking Boolean object, Number object, String object, Object object - */ +/*--- +info: > + Type(x) and Type(y) are Object-s. + Return true, if x and y are references to the same Object; otherwise, return false +description: > + Checking Boolean object, Number object, String object, Object + object +---*/ //CHECK#1 if ((new Boolean(true) == new Boolean(true)) !== false) { @@ -50,4 +51,3 @@ if ((new Number(1) == new String("1")) !== false) { if ((new String("1") == new Boolean(true)) !== false) { $ERROR('#8: (new String("x") == new Boolean(true)) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js index 5704688ae..5237a4f25 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.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 Type(x) is Object and Type(y) is Boolean, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.2.js - * @description x is object, y is primitive boolean - */ +/*--- +info: > + If Type(x) is Object and Type(y) is Boolean, + return ToPrimitive(x) == y +description: x is object, y is primitive boolean +---*/ //CHECK#1 if ((new Boolean(true) == true) !== true) { @@ -23,4 +22,3 @@ if ((new Number(1) == true) !== true) { if ((new String("1") == true) !== true) { $ERROR('#3: (new String("1") == true) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js index c0c89cea0..83ec375ee 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.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 Type(x) is Boolean and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.3.js - * @description y is object, x is primitive boolean - */ +/*--- +info: > + If Type(x) is Boolean and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primitive boolean +---*/ //CHECK#1 if ((true == new Boolean(true)) !== true) { @@ -23,4 +22,3 @@ if ((true == new Number(1)) !== true) { if ((true == new String("+1")) !== true) { $ERROR('#3: (true == new String("+1")) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js index 65ce2df60..afe13d045 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.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 Type(x) is Object and Type(y) is Number, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.4.js - * @description x is object, y is primitive number - */ +/*--- +info: > + If Type(x) is Object and Type(y) is Number, + return ToPrimitive(x) == y +description: x is object, y is primitive number +---*/ //CHECK#1 if ((new Boolean(true) == 1) !== true) { @@ -23,4 +22,3 @@ if ((new Number(-1) == -1) !== true) { if ((new String("-1") == -1) !== true) { $ERROR('#3: (new String("-1") == -1) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js index 87cbe6eed..d878f58ff 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.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 Type(x) is Number and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.5.js - * @description y is object, x is primitive number - */ +/*--- +info: > + If Type(x) is Number and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primitive number +---*/ //CHECK#1 if ((1 == new Boolean(true)) !== true) { @@ -23,4 +22,3 @@ if ((-1 == new Number(-1)) !== true) { if ((-1 == new String("-1")) !== true) { $ERROR('#3: (-1 == new String("-1")) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js index 986f66b90..4bb1a7e8c 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.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 Type(x) is Object and Type(y) is String, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.6.js - * @description x is object, y is primitive string - */ +/*--- +info: > + If Type(x) is Object and Type(y) is String, + return ToPrimitive(x) == y +description: x is object, y is primitive string +---*/ //CHECK#1 if ((new Boolean(true) == "1") !== true) { @@ -23,4 +22,3 @@ if ((new Number(-1) == "-1") !== true) { if ((new String("x") == "x") !== true) { $ERROR('#3: (new String("x") == "x") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js index 4d8412d30..5729b054a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.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 Type(x) is String and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.7.js - * @description y is object, x is primitive string - */ +/*--- +info: > + If Type(x) is String and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primitive string +---*/ //CHECK#1 if (("1" == new Boolean(true)) !== true) { @@ -23,4 +22,3 @@ if (("-1" == new Number(-1)) !== true) { if (("x" == new String("x")) !== true) { $ERROR('#3: ("x" == new String("x")) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js index 9aa54434e..3f5d3421c 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.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 Type(x) is Object and Type(y) is primitive type, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.8.js - * @description x is object, y is primtitive - */ +/*--- +info: > + If Type(x) is Object and Type(y) is primitive type, + return ToPrimitive(x) == y +description: x is object, y is primtitive +---*/ //CHECK#1 if (({valueOf: function() {return 1}} == true) !== true) { @@ -73,4 +72,3 @@ catch (e) { $ERROR('#8.2: ({valueOf: function() {return {}}, toString: function() {return {}}} == 1) throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js index ba4d0f38d..052bb8c55 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.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 Type(x) is primitive type and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.9.js - * @description y is object, x is primtitive - */ +/*--- +info: > + If Type(x) is primitive type and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primtitive +---*/ //CHECK#1 if ((true == {valueOf: function() {return 1}}) !== true) { @@ -73,4 +72,3 @@ catch (e) { $ERROR('#8.2: (1 == {valueOf: function() {return {}}, toString: function() {return {}}}) throw TypeError. Actual: ' + (e)); } } - |