diff options
Diffstat (limited to 'test/suite/ch11/11.7')
87 files changed, 436 insertions, 642 deletions
diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A1.js index 4b4e16d24..3654922eb 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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 ShiftExpression and "<<" or between "<<" and AdditiveExpression are allowed - * - * @path ch11/11.7/11.7.1/S11.7.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between ShiftExpression and "<<" or + between "<<" and AdditiveExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009<<\u00091") !== 2) { @@ -57,4 +57,3 @@ if (eval("1\u2029<<\u20291") !== 2) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029<<\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 2) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029<<\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 2'); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T1.js index e1066f118..e0e2d4df8 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 (2 << 1 !== 4) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop << objecty.prop !== 4) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 2; objecty.prop = 1; objectx.prop << objecty.prop === 4. Actual: ' + (objectx.prop << objecty.prop)); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T2.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T2.js index 1d6dcee60..5b5474de1 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T2.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_A2.1_T3.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T3.js index b33c6c680..f692ae2d0 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.1_T3.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 << y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.2_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.2_T1.js index b0403a9fb..7e0d0e314 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.2_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 2) { @@ -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.7/11.7.1/S11.7.1_A2.3_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.3_T1.js index e06852489..44ff35d7d 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.3_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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. -/** - * ToNumber(first expression) is called first, and then ToNumber(second expression) - * - * @path ch11/11.7/11.7.1/S11.7.1_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToNumber(first expression) is called first, and then ToNumber(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.7/11.7.1/S11.7.1_A2.4_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.4_T1.js index 1beb86794..319447e40 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.4_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_A2.4_T2.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.4_T2.js index e44dd956a..344096fe9 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.4_T2.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_A2.4_T3.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.4_T3.js index ed53451ac..8cc219a76 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A2.4_T3.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 2) { $ERROR('#2: (y = 1) << y === 2. Actual: ' + ((y = 1) << y)); } - - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.1.js index 5e1e84696..bf7c5d5f1 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_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.7/11.7.1/S11.7.1_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 !== 2) { @@ -27,4 +27,3 @@ if (true << new Boolean(true) !== 2) { if (new Boolean(true) << new Boolean(true) !== 2) { $ERROR('#4: new Boolean(true) << new Boolean(true) === 2. Actual: ' + (new Boolean(true) << new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.2.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.2.js index 06d8dca64..a2d6a9375 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.2.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_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 !== 2) { @@ -27,5 +25,3 @@ if (1 << new Number(1) !== 2) { if (new Number(1) << new Number(1) !== 2) { $ERROR('#4: new Number(1) << new Number(1) === 2. Actual: ' + (new Number(1) << new Number(1))); } - - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.3.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.3.js index 400362c34..5304fdf9d 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.3.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_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" !== 2) { @@ -37,4 +35,3 @@ if ("x" << "1" !== 0) { if ("1" << "x" !== 1) { $ERROR('#6: "1" << "x" === 1. Actual: ' + ("1" << "x")); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.4.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.4.js index f96d4eee5..286e0e551 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.4.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_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.7/11.7.1/S11.7.1_A3_T1.5.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.5.js index a548852a9..43b4c0b2d 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T1.5.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_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.7/11.7.1/S11.7.1_A3_T2.1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.1.js index 3865695e1..f3d836a97 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 2) { @@ -47,4 +47,3 @@ if (new Boolean(true) << new Number(1) !== 2) { if (new Number(1) << new Boolean(true) !== 2) { $ERROR('#8: new Number(1) << new Boolean(true) === 2. Actual: ' + (new Number(1) << new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.2.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.2.js index 363ee7234..b87aae941 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.2.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 2) { @@ -57,4 +57,3 @@ if ("x" << 1 !== 0) { if (1 << "x" !== 1) { $ERROR('#10: 1 << "x" === 1. Actual: ' + (1 << "x")); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.3.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.3.js index 182b1fbd2..1e3bba28d 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.3.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 1) { @@ -27,4 +27,3 @@ if (new Number(1) << null !== 1) { 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.7/11.7.1/S11.7.1_A3_T2.4.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.4.js index 2a4836aa5..b65a3bf85 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.4.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 1) { @@ -27,4 +27,3 @@ if (new Number(1) << undefined !== 1) { 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.7/11.7.1/S11.7.1_A3_T2.5.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.5.js index fa8652c5b..c26bd366d 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.5.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.1_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) or 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) or Boolean (primitive and object) +---*/ //CHECK#1 if (true << "1" !== 2) { @@ -47,4 +47,3 @@ if (new Boolean(true) << new String("1") !== 2) { if (new String("1") << new Boolean(true) !== 2) { $ERROR('#8: new String("1") << new Boolean(true) === 2. Actual: ' + (new String("1") << new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.6.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.6.js index 4f5d8c668..ae27977dc 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.6.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 1) { @@ -27,4 +27,3 @@ if (new String("1") << undefined !== 1) { 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.7/11.7.1/S11.7.1_A3_T2.7.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.7.js index da246f173..deb94fee6 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.7.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 1) { @@ -27,4 +27,3 @@ if (new String("1") << null !== 1) { 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.7/11.7.1/S11.7.1_A3_T2.8.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.8.js index 6c0d3858d..9b0c6e629 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.8.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 1) { @@ -27,4 +27,3 @@ if (new Boolean(true) << undefined !== 1) { 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.7/11.7.1/S11.7.1_A3_T2.9.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.9.js index 25935fea7..273d6fba7 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A3_T2.9.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.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.7/11.7.1/S11.7.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 !== 1) { @@ -27,4 +27,3 @@ if (new Boolean(true) << null !== 1) { 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.7/11.7.1/S11.7.1_A4_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T1.js index 6c2416dd9..315f12ef4 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_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. -/** - * Check operator x << y in distinct points - * - * @path ch11/11.7/11.7.1/S11.7.1_A4_T1.js - * @description ShiftExpression = -2^n, n = 0...15 - */ +/*--- +info: Check operator x << y in distinct points +description: ShiftExpression = -2^n, n = 0...15 +---*/ //CHECK @@ -2567,5 +2565,4 @@ if (-1073741824 << 15 !== 0) { if (-2147483648 << 15 !== 0) { $ERROR('#512: -2147483648 << 15 === 0. Actual: ' + (-2147483648 << 15)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T2.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T2.js index 0cdfbda0e..2248b8837 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T2.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_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. -/** - * Check operator x << y in distinct points - * - * @path ch11/11.7/11.7.1/S11.7.1_A4_T2.js - * @description ShiftExpression = 2^n - 1, n = 16...31 - */ +/*--- +info: Check operator x << y in distinct points +description: ShiftExpression = 2^n - 1, n = 16...31 +---*/ //CHECK @@ -2567,6 +2565,4 @@ if (-1073741824 << 31 !== 0) { if (-2147483648 << 31 !== 0) { $ERROR('#1024: -2147483648 << 31 === 0. Actual: ' + (-2147483648 << 31)); -} - - +} diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T3.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T3.js index 5357d1857..2e4c8634d 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T3.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_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. -/** - * Check operator x << y in distinct points - * - * @path ch11/11.7/11.7.1/S11.7.1_A4_T3.js - * @description ShiftExpression = 2^n - 1, n = 0...15 - */ +/*--- +info: Check operator x << y in distinct points +description: ShiftExpression = 2^n - 1, n = 0...15 +---*/ //CHECK @@ -2567,5 +2565,4 @@ if (1073741823 << 15 !== -32768) { if (2147483647 << 15 !== -32768) { $ERROR('#512: 2147483647 << 15 === -32768. Actual: ' + (2147483647 << 15)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T4.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T4.js index 15082a7cc..67b82e8d6 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T4.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_A4_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Check operator x << y in distinct points - * - * @path ch11/11.7/11.7.1/S11.7.1_A4_T4.js - * @description ShiftExpression = 2^n - 1, n = 16...31 - */ +/*--- +info: Check operator x << y in distinct points +description: ShiftExpression = 2^n - 1, n = 16...31 +---*/ //CHECK @@ -2567,5 +2565,4 @@ if (1073741823 << 31 !== -2147483648) { if (2147483647 << 31 !== -2147483648) { $ERROR('#1024: 2147483647 << 31 === -2147483648. Actual: ' + (2147483647 << 31)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.1_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.1_T1.js index 49bdc5e7e..af0a3646a 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.1_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.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 ToInt32(ShiftExpression) - * - * @path ch11/11.7/11.7.1/S11.7.1_A5.1_T1.js - * @description Checking boundary points - */ +/*--- +info: Operator x << y uses ToInt32(ShiftExpression) +description: Checking boundary points +---*/ //CHECK#1 if (2147483648.1 << 0 !== -2147483648) { @@ -56,5 +54,4 @@ if (-4294967296.1 << 0 !== 0) { //CHECK#10 if (-6442450944.1 << 0 !== -2147483648) { $ERROR('#10: -6442450944.1 << 0 === -2147483648. Actual: ' + (-6442450944.1 << 0)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.2_T1.js b/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.2_T1.js index 689fe1203..9312b6fb3 100644 --- a/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.2_T1.js +++ b/test/suite/ch11/11.7/11.7.1/S11.7.1_A5.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 ToUint32(AdditiveExpression) & 31 - * - * @path ch11/11.7/11.7.1/S11.7.1_A5.2_T1.js - * @description Checking distinct points - */ +/*--- +info: Operator x << y uses ToUint32(AdditiveExpression) & 31 +description: Checking distinct points +---*/ //CHECK#1 if (1 << -32.1 !== 1) { @@ -326,5 +324,4 @@ if (1 << 62.1 !== 1073741824) { //CHECK#64 if (1 << 63.1 !== -2147483648) { $ERROR('#64: 1 << 63.1 === -2147483648. Actual: ' + (1 << 63.1)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A1.js index 086e03849..6e7ebc871 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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 ShiftExpression and ">>" or between ">>" and AdditiveExpression are allowed - * - * @path ch11/11.7/11.7.2/S11.7.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between ShiftExpression and ">>" or + between ">>" and AdditiveExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("-4\u0009>>\u00091") !== -2) { @@ -57,4 +57,3 @@ if (eval("-4\u2029>>\u20291") !== -2) { if (eval("-4\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029>>\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== -2) { $ERROR('#10: -4\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029>>\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === -2'); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T1.js index b036436d8..0dc74cb5a 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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 (-4 >> 1 !== -2) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop >> objecty.prop !== -2) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = -4; objecty.prop = 1; objectx.prop >> objecty.prop === -2. Actual: ' + (objectx.prop >> objecty.prop)); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T2.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T2.js index 107ac4ade..8d14f01b3 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T2.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: x >> 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T3.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T3.js index 1ce6c6dd2..d952752c1 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.1_T3.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: 1 >> y throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.2_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.2_T1.js index 3debe0ae1..f1e26364b 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.2_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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 -4}} >> 1 !== -2) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: -4 >> {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.3_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.3_T1.js index 1d3d1c544..0d8db695a 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.3_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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. -/** - * ToNumber(first expression) is called first, and then ToNumber(second expression) - * - * @path ch11/11.7/11.7.2/S11.7.2_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToNumber(first expression) is called first, and then ToNumber(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.7/11.7.2/S11.7.2_A2.4_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T1.js index 310bee61f..fe32cfcb6 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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 = 0; @@ -19,5 +17,3 @@ var x = -4; if (x >> (x = 1) !== -2) { $ERROR('#2: var x = -4; x >> (x = 1) === -2. Actual: ' + (x >> (x = 1))); } - - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T2.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T2.js index 4f1eb349a..da0a09f2d 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T2.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_A2.4_T3.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T3.js index 45f52d79d..fcab44629 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A2.4_T3.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_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.7/11.7.2/S11.7.2_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 !== 0) { $ERROR('#2: (y = 1) >> y === 0. Actual: ' + ((y = 1) >> y)); } - - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.1.js index 0f872cd25..614084938 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_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.7/11.7.2/S11.7.2_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 !== 0) { @@ -27,4 +27,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.7/11.7.2/S11.7.2_A3_T1.2.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.2.js index 0398c019a..4ab0f8991 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.2.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_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 !== 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.7/11.7.2/S11.7.2_A3_T1.3.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.3.js index 7172e563c..fb06756f2 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.3.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_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" !== 0) { @@ -37,4 +35,3 @@ if ("x" >> "1" !== 0) { if ("1" >> "x" !== 1) { $ERROR('#6: "1" >> "x" === 1. Actual: ' + ("1" >> "x")); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.4.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.4.js index b792d7c82..4b0b0c1d0 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.4.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_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.7/11.7.2/S11.7.2_A3_T1.5.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.5.js index 3f208836f..e4020d246 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T1.5.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_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.7/11.7.2/S11.7.2_A3_T2.1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.1.js index 808fb0e3a..820fc5296 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_A3_T2.2.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.2.js index 57c037ae0..94bf28baa 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.2.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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 !== 0) { if (1 >> "x" !== 1) { $ERROR('#10: 1 >> "x" === 1. Actual: ' + (1 >> "x")); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.3.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.3.js index fe7a31aaa..0653a843e 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.3.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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) !== 0) { $ERROR('#4: null >> new Number(1) === 0. Actual: ' + (null >> new Number(1))); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.4.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.4.js index 138b77681..8231a7d67 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.4.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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) !== 0) { $ERROR('#4: undefined >> new Number(1) === 0. Actual: ' + (undefined >> new Number(1))); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.5.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.5.js index ca296c62e..c864b0476 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.5.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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.7/11.7.2/S11.7.2_A3_T2.6.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.6.js index ea18c20a6..4dc7aa86a 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.6.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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") !== 0) { $ERROR('#4: undefined >> new String("1") === 0. Actual: ' + (undefined >> new String("1"))); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.7.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.7.js index 3061313c2..65b947c58 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.7.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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") !== 0) { $ERROR('#4: null >> new String("1") === 0. Actual: ' + (null >> new String("1"))); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.8.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.8.js index a918a6791..b0f97f852 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.8.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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) !== 0) { $ERROR('#4: undefined >> new Boolean(true) === 0. Actual: ' + (undefined >> new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.9.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.9.js index f5cbaf944..68b484c92 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A3_T2.9.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.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.7/11.7.2/S11.7.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) !== 0) { $ERROR('#4: null >> new Boolean(true) === 0. Actual: ' + (null >> new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T1.js index 851139bb1..493059628 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_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. -/** - * Check x >> y operator in distinct points - * - * @path ch11/11.7/11.7.2/S11.7.2_A4_T1.js - * @description ShiftExpression = -2^n, n = 0...15 - */ +/*--- +info: Check x >> y operator in distinct points +description: ShiftExpression = -2^n, n = 0...15 +---*/ //CHECK @@ -2567,5 +2565,4 @@ if (-1073741824 >> 15 !== -32768) { if (-2147483648 >> 15 !== -65536) { $ERROR('#512: -2147483648 >> 15 === -65536. Actual: ' + (-2147483648 >> 15)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T2.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T2.js index 7077af853..cedd6cb56 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T2.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_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. -/** - * Check x >> y operator in distinct points - * - * @path ch11/11.7/11.7.2/S11.7.2_A4_T2.js - * @description ShiftExpression = 2^n - 1, n = 16...31 - */ +/*--- +info: Check x >> y operator in distinct points +description: ShiftExpression = 2^n - 1, n = 16...31 +---*/ //CHECK @@ -2568,4 +2566,3 @@ if (-1073741824 >> 31 !== -1) { if (-2147483648 >> 31 !== -1) { $ERROR('#1024: -2147483648 >> 31 === -1. Actual: ' + (-2147483648 >> 31)); } - diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T3.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T3.js index 40f8d686d..d7afac984 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T3.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_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. -/** - * Check x >> y operator in distinct points - * - * @path ch11/11.7/11.7.2/S11.7.2_A4_T3.js - * @description ShiftExpression = 2^n - 1, n = 0...15 - */ +/*--- +info: Check x >> y operator in distinct points +description: ShiftExpression = 2^n - 1, n = 0...15 +---*/ //CHECK @@ -2567,5 +2565,4 @@ if (1073741823 >> 15 !== 32767) { if (2147483647 >> 15 !== 65535) { $ERROR('#512: 2147483647 >> 15 === 65535. Actual: ' + (2147483647 >> 15)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T4.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T4.js index aa1e0065a..b6cc04e06 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T4.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_A4_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Check x >> y operator in distinct points - * - * @path ch11/11.7/11.7.2/S11.7.2_A4_T4.js - * @description ShiftExpression = 2^n - 1, n = 16...31 - */ +/*--- +info: Check x >> y operator in distinct points +description: ShiftExpression = 2^n - 1, n = 16...31 +---*/ //CHECK @@ -2562,5 +2560,4 @@ if (536870911 >> 31 !== 0) { if (1073741823 >> 31 !== 0) { $ERROR('#1023: 1073741823 >> 31 === 0. Actual: ' + (1073741823 >> 31)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.1_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.1_T1.js index aa732c311..3d704ea14 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.1_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.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 ToInt32(ShiftExpression) - * - * @path ch11/11.7/11.7.2/S11.7.2_A5.1_T1.js - * @description Checking boundary points - */ +/*--- +info: Operator x >> y uses ToInt32(ShiftExpression) +description: Checking boundary points +---*/ //CHECK#1 if (2147483648.1 >> 0 !== -2147483648) { @@ -56,5 +54,4 @@ if (-4294967296.1 >> 0 !== 0) { //CHECK#10 if (-6442450944.1 >> 0 !== -2147483648) { $ERROR('#10: -6442450944.1 >> 0 === -2147483648. Actual: ' + (-6442450944.1 >> 0)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.2_T1.js b/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.2_T1.js index 64eca8df3..ce8c6842e 100644 --- a/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.2_T1.js +++ b/test/suite/ch11/11.7/11.7.2/S11.7.2_A5.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 ToUint32(AdditiveExpression) & 31 - * - * @path ch11/11.7/11.7.2/S11.7.2_A5.2_T1.js - * @description Checking distinct points - */ +/*--- +info: Operator x >> y uses ToUint32(AdditiveExpression) & 31 +description: Checking distinct points +---*/ //CHECK#1 if (2147483647 >> -32.1 !== 2147483647) { @@ -326,5 +324,4 @@ if (2147483647 >> 62.1 !== 1) { //CHECK#64 if (2147483647 >> 63.1 !== 0) { $ERROR('#64: 2147483647 >> 63.1 === 0. Actual: ' + (2147483647 >> 63.1)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A1.js index 58906e8fb..200632f08 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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 ShiftExpression and ">>>" or between ">>>" and AdditiveExpression are allowed - * - * @path ch11/11.7/11.7.3/S11.7.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between ShiftExpression and ">>>" or + between ">>>" and AdditiveExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("-4\u0009>>>\u00091") !== 2147483646) { @@ -57,4 +57,3 @@ if (eval("-4\u2029>>>\u20291") !== 2147483646) { if (eval("-4\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029>>>\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 2147483646) { $ERROR('#10: -4\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029>>>\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 2147483646'); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T1.js index e153a762e..3c61a19ef 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 (-4 >>> 1 !== 2147483646) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop >>> objecty.prop !== 2147483646) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = -4; objecty.prop = 1; objectx.prop >>> objecty.prop === 2147483646. Actual: ' + (objectx.prop >>> objecty.prop)); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T2.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T2.js index cae3ab773..9c5e5335f 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T2.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: x >>> 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T3.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T3.js index e682a064a..5f05c56d6 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.1_T3.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: 1 >>> y throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.2_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.2_T1.js index f678b914d..5fe396e6f 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.2_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 -4}} >>> 1 !== 2147483646) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: -4 >>> {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.3_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.3_T1.js index 717afe75d..57a05c066 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.3_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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. -/** - * ToNumber(first expression) is called first, and then ToNumber(second expression) - * - * @path ch11/11.7/11.7.3/S11.7.3_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToNumber(first expression) is called first, and then ToNumber(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.7/11.7.3/S11.7.3_A2.4_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T1.js index 7291d20fd..f78c575ed 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 = 0; @@ -19,5 +17,3 @@ var x = -4; if (x >>> (x = 1) !== 2147483646) { $ERROR('#2: var x = -4; x >>> (x = 1) === 2147483646. Actual: ' + (x >>> (x = 1))); } - - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T2.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T2.js index 84069b1f1..9856906e1 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T2.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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.7/11.7.3/S11.7.3_A2.4_T3.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T3.js index 72f08b3ee..920ddabfc 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A2.4_T3.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_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.7/11.7.3/S11.7.3_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 !== 0) { $ERROR('#2: (y = 1) >>> y === 0. Actual: ' + ((y = 1) >>> y)); } - - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.1.js index 0d90bbd6f..56d633fa7 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 !== 0) { @@ -27,4 +27,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.7/11.7.3/S11.7.3_A3_T1.2.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.2.js index 48d41b63a..0d1c32078 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.2.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 !== 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.7/11.7.3/S11.7.3_A3_T1.3.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.3.js index 60bf9d310..961eb3488 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.3.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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" !== 0) { @@ -37,4 +35,3 @@ if ("x" >>> "1" !== 0) { if ("1" >>> "x" !== 1) { $ERROR('#6: "1" >>> "x" === 1. Actual: ' + ("1" >>> "x")); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.4.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.4.js index 8da5b55c1..521bf60fa 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.4.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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.7/11.7.3/S11.7.3_A3_T1.5.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.5.js index aa023e286..568c482ac 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T1.5.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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,4 +25,3 @@ if ((function(){return 1} >>> function(){return 1}) !== 0) { if (({} >>> {}) !== 0) { $ERROR('#4: ({} >>> {}) === 0. Actual: ' + (({} >>> {}))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.1.js index ef7427e70..1f00c49b7 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 !== 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.7/11.7.3/S11.7.3_A3_T2.2.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.2.js index 04cf0bd1b..3a43d8ba3 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.2.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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 !== 0) { @@ -57,4 +57,3 @@ if ("x" >>> 1 !== 0) { if (1 >>> "x" !== 1) { $ERROR('#10: 1 >>> "x" === 1. Actual: ' + (1 >>> "x")); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.3.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.3.js index 658d6029c..298e14d86 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.3.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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) !== 0) { $ERROR('#4: null >>> new Number(1) === 0. Actual: ' + (null >>> new Number(1))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.4.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.4.js index a398f8a09..41b4769bd 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.4.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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) !== 0) { $ERROR('#4: undefined >>> new Number(1) === 0. Actual: ' + (undefined >>> new Number(1))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.5.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.5.js index 83fc64bb2..1364f99fb 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.5.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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" !== 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.7/11.7.3/S11.7.3_A3_T2.6.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.6.js index 63d3e4263..70e3c4a76 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.6.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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") !== 0) { $ERROR('#4: undefined >>> new String("1") === 0. Actual: ' + (undefined >>> new String("1"))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.7.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.7.js index c19be4a7d..fd9bfeb8c 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.7.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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") !== 0) { $ERROR('#4: null >>> new String("1") === 0. Actual: ' + (null >>> new String("1"))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.8.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.8.js index 98636ab0f..0dbf10d1a 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.8.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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) !== 0) { $ERROR('#4: undefined >>> new Boolean(true) === 0. Actual: ' + (undefined >>> new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.9.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.9.js index aacc034f5..155535d3c 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A3_T2.9.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.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.7/11.7.3/S11.7.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) !== 0) { $ERROR('#4: null >>> new Boolean(true) === 0. Actual: ' + (null >>> new Boolean(true))); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T1.js index c05ddc4e5..49d6833e7 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_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. -/** - * Check operator x >>> y in distinct points - * - * @path ch11/11.7/11.7.3/S11.7.3_A4_T1.js - * @description ShiftExpression = 2^n, n = 0...15 - */ +/*--- +info: Check operator x >>> y in distinct points +description: ShiftExpression = 2^n, n = 0...15 +---*/ //CHECK @@ -2567,5 +2565,4 @@ if (1073741824 >>> 15 !== 32768) { if (2147483648 >>> 15 !== 65536) { $ERROR('#512: 2147483648 >>> 15 === 65536. Actual: ' + (2147483648 >>> 15)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T2.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T2.js index 641360776..b3c442eea 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T2.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_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. -/** - * Check operator x >>> y in distinct points - * - * @path ch11/11.7/11.7.3/S11.7.3_A4_T2.js - * @description ShiftExpression = 2^n - 1, n = 16...31 - */ +/*--- +info: Check operator x >>> y in distinct points +description: ShiftExpression = 2^n - 1, n = 16...31 +---*/ //CHECK @@ -2568,4 +2566,3 @@ if (1073741824 >>> 31 !== 0) { if (2147483648 >>> 31 !== 1) { $ERROR('#1024: 2147483648 >>> 31 === 1. Actual: ' + (2147483648 >>> 31)); } - diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T3.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T3.js index 05cf9e7a2..717ecf08a 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T3.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_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. -/** - * Check operator x >>> y in distinct points - * - * @path ch11/11.7/11.7.3/S11.7.3_A4_T3.js - * @description ShiftExpression = 2^n - 1, n = 0...15 - */ +/*--- +info: Check operator x >>> y in distinct points +description: ShiftExpression = 2^n - 1, n = 0...15 +---*/ //CHECK @@ -2647,5 +2645,4 @@ if (2147483647 >>> 15 !== 65535) { if (4294967295 >>> 15 !== 131071) { $ERROR('#528: 4294967295 >>> 15 === 131071. Actual: ' + (4294967295 >>> 15)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T4.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T4.js index b8af33ec2..eae1f3609 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T4.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_A4_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Check operator x >>> y in distinct points - * - * @path ch11/11.7/11.7.3/S11.7.3_A4_T4.js - * @description ShiftExpression = 2^n - 1, n = 16...31 - */ +/*--- +info: Check operator x >>> y in distinct points +description: ShiftExpression = 2^n - 1, n = 16...31 +---*/ //CHECK @@ -2647,5 +2645,4 @@ if (2147483647 >>> 31 !== 0) { if (4294967295 >>> 31 !== 1) { $ERROR('#1056: 4294967295 >>> 31 === 1. Actual: ' + (4294967295 >>> 31)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.1_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.1_T1.js index a12bccd07..e814f9fa0 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.1_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.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 ToUint32(ShiftExpression) - * - * @path ch11/11.7/11.7.3/S11.7.3_A5.1_T1.js - * @description Checking boundary points - */ +/*--- +info: Operator x >>> y uses ToUint32(ShiftExpression) +description: Checking boundary points +---*/ //CHECK#1 if (2147483648.1 >>> 0 !== 2147483648) { @@ -56,5 +54,4 @@ if (-4294967296.1 >>> 0 !== 0) { //CHECK#10 if (-6442450944.1 >>> 0 !== 2147483648) { $ERROR('#10: -6442450944.1 >>> 0 === 2147483648. Actual: ' + (-6442450944.1 >>> 0)); -} - +} diff --git a/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.2_T1.js b/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.2_T1.js index 84abb3616..ae85a4c0e 100644 --- a/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.2_T1.js +++ b/test/suite/ch11/11.7/11.7.3/S11.7.3_A5.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 ToUint32(AdditiveExpression) & 31 - * - * @path ch11/11.7/11.7.3/S11.7.3_A5.2_T1.js - * @description Checking distinct points - */ +/*--- +info: Operator x >>> y uses ToUint32(AdditiveExpression) & 31 +description: Checking distinct points +---*/ //CHECK#1 if (4294967295 >>> -32.1 !== 4294967295) { @@ -326,6 +324,4 @@ if (4294967295 >>> 62.1 !== 3) { //CHECK#64 if (4294967295 >>> 63.1 !== 1) { $ERROR('#64: 4294967295 >>> 63.1 === 1. Actual: ' + (4294967295 >>> 63.1)); -} - - +} |