diff options
Diffstat (limited to 'test/suite/ch11/11.10')
69 files changed, 347 insertions, 500 deletions
diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js index 25416cdca..224969173 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.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 BitwiseANDExpression and "&" or between "&" and EqualityExpression are allowed - * - * @path ch11/11.10/11.10.1/S11.10.1_A1.js - * @description Checking uses eval - */ +/*--- +info: > + White Space and Line Terminator between BitwiseANDExpression and "&" or + between "&" and EqualityExpression are allowed +description: Checking uses eval +---*/ //CHECK#1 if ((eval("1\u0009&\u00091")) !== 1) { @@ -58,4 +58,3 @@ if ((eval("1\u2029&\u20291")) !== 1) { if ((eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029&\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 1) { $ERROR('#10: (1\\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.1/S11.10.1_A2.1_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js index 4acb431bc..1260bcdf3 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.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.10/11.10.1/S11.10.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) !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 1; if ((objectx.prop & objecty.prop) !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop & objecty.prop) === 1. Actual: ' + ((objectx.prop & objecty.prop))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js index 91f0369a6..2a67311bf 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.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.10/11.10.1/S11.10.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,4 +16,3 @@ catch (e) { $ERROR('#1.2: x & 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js index eb308b1b8..fc3708d69 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.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.10/11.10.1/S11.10.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.10/11.10.1/S11.10.1_A2.2_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js index b5aafe3d8..9bb925385 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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}} & 1) !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 & {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js index 079e2ccb4..6849fcdc3 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_A2.3_T1.js - * @description Checking by using "throw" - */ +/*--- +info: > + ToInt32(first expression) is called first, and then ToInt32(second + expression) +description: Checking by using "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js index c77c23d5d..4c3fafd5e 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.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.10/11.10.1/S11.10.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)) !== 0) { $ERROR('#2: var x = 0; (x & (x = 1)) === 0. Actual: ' + ((x & (x = 1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js index 23b8d91cf..4923ef8a6 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.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.10/11.10.1/S11.10.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.10/11.10.1/S11.10.1_A2.4_T3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js index 2aef6019b..c9ea03c51 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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,5 +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.1/S11.10.1_A3_T1.1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js index 3818831d2..ac4ba597e 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.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. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js - * @description Type(x) and Type(y) are primitive boolean and Boolean object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are primitive boolean and Boolean object +---*/ //CHECK#1 if ((true & true) !== 1) { @@ -27,4 +25,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.1/S11.10.1_A3_T1.2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js index 96f0a7c52..b0a38ce71 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_A3_T1.2.js - * @description Type(x) and Type(y) are primitive number and Number object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are 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.1/S11.10.1_A3_T1.3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js index e94451b58..4a7519bc7 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_A3_T1.3.js - * @description Type(x) and Type(y) are primitive string and String object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are primitive string and String object +---*/ //CHECK#1 if (("1" & "1") !== 1) { @@ -37,4 +35,3 @@ if (("x" & "1") !== 0) { if (("1" & "x") !== 0) { $ERROR('#6: ("1" & "x") === 0. Actual: ' + (("1" & "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js index ba187bd35..d5923d39b 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_A3_T1.4.js - * @description Type(x) and Type(y) are null and undefined - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are 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.1/S11.10.1_A3_T1.5.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js index 437336a4b..89a8105ce 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_A3_T1.5.js - * @description Type(x) and Type(y) are Object object and Function object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are 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.1/S11.10.1_A3_T2.1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js index 7a70acf5f..5b6865825 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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.1/S11.10.1_A3_T2.2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js index 72765faf2..1810facb8 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { if ((1 & "x") !== 0) { $ERROR('#10: (1 & "x") === 0. Actual: ' + ((1 & "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js index a133e1f43..02355d9d4 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { @@ -27,4 +27,3 @@ if ((new Number(1) & null) !== 0) { if ((null & new Number(1)) !== 0) { $ERROR('#4: (null & new Number(1)) === 0. Actual: ' + ((null & new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js index 1ceb71fa0..157d116d9 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { @@ -27,4 +27,3 @@ if ((new Number(1) & undefined) !== 0) { if ((undefined & new Number(1)) !== 0) { $ERROR('#4: (undefined & new Number(1)) === 0. Actual: ' + ((undefined & new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js index 3983069f4..fe8fe2862 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_A3_T2.5.js - * @description Type(x) us different from Type(y) and both types are String (primitive or object) or Boolean (primitive and object) - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) us different from Type(y) and both types are String + (primitive or object) or 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.1/S11.10.1_A3_T2.6.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js index b9f66bb79..63d58ebea 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { @@ -27,4 +27,3 @@ if ((new String("1") & undefined) !== 0) { if ((undefined & new String("1")) !== 0) { $ERROR('#4: (undefined & new String("1")) === 0. Actual: ' + ((undefined & new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js index 0dbabe1f0..97475fad7 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { @@ -27,4 +27,3 @@ if ((new String("1") & null) !== 0) { if ((null & new String("1")) !== 0) { $ERROR('#4: (null & new String("1")) === 0. Actual: ' + ((null & new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js index 33eec3241..bb53bd827 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { @@ -27,4 +27,3 @@ if ((new Boolean(true) & undefined) !== 0) { if ((undefined & new Boolean(true)) !== 0) { $ERROR('#4: (undefined & new Boolean(true)) === 0. Actual: ' + ((undefined & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js index 9c94ad0e7..d2eb8268e 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_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.1/S11.10.1_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) !== 0) { @@ -27,4 +27,3 @@ if ((new Boolean(true) & null) !== 0) { if ((null & new Boolean(true)) !== 0) { $ERROR('#4: (null & new Boolean(true)) === 0. Actual: ' + ((null & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js index 6798a9ea4..a00206a81 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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 BitwiseXORExpression and "^" or between "^" and BitwiseANDExpression are allowed - * - * @path ch11/11.10/11.10.2/S11.10.2_A1.js - * @description The check uses eval - */ +/*--- +info: > + White Space and Line Terminator between BitwiseXORExpression and "^" or + between "^" and BitwiseANDExpression are allowed +description: The check uses eval +---*/ //CHECK#1 if ((eval("1\u0009^\u00091")) !== 0) { @@ -58,4 +58,3 @@ if ((eval("1\u2029^\u20291")) !== 0) { if ((eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029^\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 0) { $ERROR('#10: (1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029^\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 0'); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js index f4aad4a19..b69ed2d8f 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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) !== 0) { @@ -40,5 +38,3 @@ objecty.prop = 1; if ((objectx.prop ^ objecty.prop) !== 0) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop ^ objecty.prop) === 0. Actual: ' + ((objectx.prop ^ objecty.prop))); } - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js index 503ac9678..2c03e64c4 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A2.1_T3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js index 6c5969614..3dffea843 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A2.2_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js index 0a00ada6d..1e059ac4e 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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}} ^ 1) !== 0) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 ^ {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js index cbf3009a1..d98fd7981 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A2.4_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js index e1af1b864..96ed61ec5 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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,6 +17,3 @@ var x = 0; if ((x ^ (x = 1)) !== 1) { $ERROR('#2: var x = 0; (x ^ (x = 1)) === 1. Actual: ' + ((x ^ (x = 1)))); } - - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js index 5cc5a1540..6844ceb90 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A2.4_T3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js index 5241ec557..b916259ee 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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,6 +22,3 @@ catch (e) { if (((y = 1) ^ y) !== 0) { $ERROR('#2: ((y = 1) ^ y) === 0. Actual: ' + (((y = 1) ^ y))); } - - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js index e6466e784..c0350e625 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.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. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js - * @description Type(x) and Type(y) are primitive boolean and Boolean object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are primitive boolean and Boolean object +---*/ //CHECK#1 if ((true ^ true) !== 0) { @@ -27,4 +25,3 @@ if ((true ^ new Boolean(true)) !== 0) { if ((new Boolean(true) ^ new Boolean(true)) !== 0) { $ERROR('#4: (new Boolean(true) ^ new Boolean(true)) === 0. Actual: ' + ((new Boolean(true) ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js index 9b997e82f..043e61749 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_A3_T1.2.js - * @description Type(x) and Type(y) are primitive number and Number object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are primitive number and Number object +---*/ //CHECK#1 if ((1 ^ 1) !== 0) { @@ -27,5 +25,3 @@ if ((1 ^ new Number(1)) !== 0) { if ((new Number(1) ^ new Number(1)) !== 0) { $ERROR('#4: (new Number(1) ^ new Number(1)) === 0. Actual: ' + ((new Number(1) ^ new Number(1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js index acd61cf11..51a8ac49d 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_A3_T1.3.js - * @description Type(x) and Type(y) are primitive string and String object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are primitive string and String object +---*/ //CHECK#1 if (("1" ^ "1") !== 0) { @@ -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.2/S11.10.2_A3_T1.4.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js index 72698a656..d259ee4c5 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_A3_T1.4.js - * @description Type(x) and Type(y) are null and undefined - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are 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.2/S11.10.2_A3_T1.5.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js index b415d1c75..b4fa4efe1 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_A3_T1.5.js - * @description Type(x) and Type(y) are Object object and Function object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are 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.2/S11.10.2_A3_T2.1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js index c32718b6e..e13655a4e 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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) !== 0) { @@ -47,4 +47,3 @@ if ((new Boolean(true) ^ new Number(1)) !== 0) { if ((new Number(1) ^ new Boolean(true)) !== 0) { $ERROR('#8: (new Number(1) ^ new Boolean(true)) === 0. Actual: ' + ((new Number(1) ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js index 1503fbaf5..df55b7193 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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) !== 0) { @@ -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.2/S11.10.2_A3_T2.3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js index 7944312eb..cebb94e6d 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A3_T2.4.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js index 6578ce84d..948a4265a 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A3_T2.5.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js index 2e80dfef2..7b37a130b 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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") !== 0) { @@ -47,4 +47,3 @@ if ((new Boolean(true) ^ new String("1")) !== 0) { if ((new String("1") ^ new Boolean(true)) !== 0) { $ERROR('#8: (new String("1") ^ new Boolean(true)) === 0. Actual: ' + ((new String("1") ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js index b433b597e..7c1b463c5 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A3_T2.7.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js index 17996c7b8..1027484ee 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A3_T2.8.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js index 36c1c1d23..0d6c5e1ce 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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.2/S11.10.2_A3_T2.9.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js index 6a9d6cb0d..9d7e4350c 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_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.2/S11.10.2_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)))); } - 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)))); } - |