diff options
Diffstat (limited to 'test/suite/ch11/11.10/11.10.3')
23 files changed, 117 insertions, 164 deletions
diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js index 193860824..146b4c1fd 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.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. -/** - * White Space and Line Terminator between BitwiseORExpression and "|" or between "|" and BitwiseXORExpression are allowed - * - * @path ch11/11.10/11.10.3/S11.10.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between BitwiseORExpression and "|" or + between "|" and BitwiseXORExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if ((eval("0\u0009|\u00091")) !== 1) { @@ -58,4 +58,3 @@ if ((eval("0\u2029|\u20291")) !== 1) { if ((eval("0\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029|\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 1) { $ERROR('#10: (0\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029|\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 1'); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js index 4c39440fe..b4b26fb5a 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_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.10/11.10.3/S11.10.3_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 | 0) !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 0; if ((objectx.prop | objecty.prop) !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 0; (objectx.prop | objecty.prop) === 1. Actual: ' + ((objectx.prop | objecty.prop))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js index 38886529f..3ebc8ed5b 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_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.10/11.10.3/S11.10.3_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,4 +16,3 @@ catch (e) { $ERROR('#1.2: x | 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js index 313ea9588..1514d4cb4 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_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.10/11.10.3/S11.10.3_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,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 | y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js index 1c7331411..2f67e3c9a 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.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. -/** - * Operator x | y uses [[Default Value]] - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x | y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if (({valueOf: function() {return 1}} | 0) !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 0 | {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js index fe60b24d1..84e664cac 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.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. -/** - * ToInt32(first expression) is called first, and then ToInt32(second expression) - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToInt32(first expression) is called first, and then ToInt32(second + expression) +description: Checking with "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js index 4c5705d00..f1f32f3d9 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_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.10/11.10.3/S11.10.3_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 1; @@ -19,4 +17,3 @@ var x = 1; if ((x | (x = 0)) !== 1) { $ERROR('#2: var x = 1; (x | (x = 0)) === 1. Actual: ' + ((x | (x = 0)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js index 886ae2af5..a481f8399 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_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.10/11.10.3/S11.10.3_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.10/11.10.3/S11.10.3_A2.4_T3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js index 975bba911..4beb31e79 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js @@ -1,13 +1,11 @@ // 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.10/11.10.3/S11.10.3_A2.4_T3.js - * @description Checking with undeclarated variables - * @noStrict - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +flags: [noStrict] +---*/ //CHECK#1 try { @@ -24,4 +22,3 @@ catch (e) { if (((y = 1) | y) !== 1) { $ERROR('#2: ((y = 1) | y) === 1. Actual: ' + (((y = 1) | y))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js index bdf1dddd2..5fc23ac90 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if ((true | true) !== 1) { @@ -27,4 +27,3 @@ if ((true | new Boolean(true)) !== 1) { if ((new Boolean(true) | new Boolean(true)) !== 1) { $ERROR('#4: (new Boolean(true) | new Boolean(true)) === 1. Actual: ' + ((new Boolean(true) | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js index 057a8fd55..0b8e19636 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if ((1 | 1) !== 1) { @@ -27,5 +25,3 @@ if ((1 | new Number(1)) !== 1) { if ((new Number(1) | new Number(1)) !== 1) { $ERROR('#4: (new Number(1) | new Number(1)) === 1. Actual: ' + ((new Number(1) | new Number(1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js index f62798951..ff08dc8fd 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.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 returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if (("1" | "1") !== 1) { @@ -37,4 +35,3 @@ if (("x" | "1") !== 1) { if (("1" | "x") !== 1) { $ERROR('#6: ("1" | "x") === 1. Actual: ' + (("1" | "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js index 1fcf3aea4..17b6211f1 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.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 returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 if ((null | undefined) !== 0) { @@ -27,4 +25,3 @@ if ((undefined | undefined) !== 0) { if ((null | null) !== 0) { $ERROR('#4: (null | null) === 0. Actual: ' + ((null | null))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js index c3df41a2c..ecca0c182 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.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 returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js - * @description Type(x) and Type(y) vary between Object object and Function object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between Object object and Function object +---*/ //CHECK#1 if (({} | function(){return 1}) !== 0) { @@ -27,5 +25,3 @@ if ((function(){return 1} | function(){return 1}) !== 0) { if (({} | {}) !== 0) { $ERROR('#4: ({} | {}) === 0. Actual: ' + (({} | {}))); } - - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js index a54f2dbdf..dc336b1e1 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true | 1) !== 1) { @@ -47,4 +47,3 @@ if ((new Boolean(true) | new Number(1)) !== 1) { if ((new Number(1) | new Boolean(true)) !== 1) { $ERROR('#8: (new Number(1) | new Boolean(true)) === 1. Actual: ' + ((new Number(1) | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js index 78795a543..1dc3817d2 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if (("1" | 1) !== 1) { @@ -57,4 +57,3 @@ if (("x" | 1) !== 1) { if ((1 | "x") !== 1) { $ERROR('#10: (1 | "x") === 1. Actual: ' + ((1 | "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js index c01d6e726..85aba2820 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if ((1 | null) !== 1) { @@ -27,4 +27,3 @@ if ((new Number(1) | null) !== 1) { if ((null | new Number(1)) !== 1) { $ERROR('#4: (null | new Number(1)) === 1. Actual: ' + ((null | new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js index eb7d1432a..576e07810 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if ((1 | undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new Number(1) | undefined) !== 1) { if ((undefined | new Number(1)) !== 1) { $ERROR('#4: (undefined | new Number(1)) === 1. Actual: ' + ((undefined | new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js index 3195c149d..29a6dfded 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true | "1") !== 1) { @@ -47,4 +47,3 @@ if ((new Boolean(true) | new String("1")) !== 1) { if ((new String("1") | new Boolean(true)) !== 1) { $ERROR('#8: (new String("1") | new Boolean(true)) === 1. Actual: ' + ((new String("1") | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js index c6aeffafd..59616b2cf 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 if (("1" | undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new String("1") | undefined) !== 1) { if ((undefined | new String("1")) !== 1) { $ERROR('#4: (undefined | new String("1")) === 1. Actual: ' + ((undefined | new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js index fc0e39bb9..4d0df0fef 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if (("1" | null) !== 1) { @@ -27,4 +27,3 @@ if ((new String("1") | null) !== 1) { if ((null | new String("1")) !== 1) { $ERROR('#4: (null | new String("1")) === 1. Actual: ' + ((null | new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js index 4208476dd..406c71443 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if ((true | undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new Boolean(true) | undefined) !== 1) { if ((undefined | new Boolean(true)) !== 1) { $ERROR('#4: (undefined | new Boolean(true)) === 1. Actual: ' + ((undefined | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js index 2c892773b..e1eb94be1 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.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. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if ((true | null) !== 1) { @@ -27,4 +27,3 @@ if ((new Boolean(true) | null) !== 1) { if ((null | new Boolean(true)) !== 1) { $ERROR('#4: (null | new Boolean(true)) === 1. Actual: ' + ((null | new Boolean(true)))); } - |