diff options
Diffstat (limited to 'test/suite/ch11/11.8/11.8.1')
36 files changed, 215 insertions, 270 deletions
diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A1.js index 5203b7341..e151aa27b 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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 RelationalExpression and "<" or between "<" and ShiftExpression are allowed - * - * @path ch11/11.8/11.8.1/S11.8.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between RelationalExpression and "<" or + between "<" and ShiftExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("0\u0009<\u00091") !== true) { @@ -57,4 +57,3 @@ if (eval("0\u2029<\u20291") !== true) { if (eval("0\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029<\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== true) { $ERROR('#10: (0\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029<\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T1.js index 4bcd448cb..20ebcba99 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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 < 2 !== true) { @@ -40,4 +38,3 @@ objecty.prop = 2; if (objectx.prop < objecty.prop !== true) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 2; objectx.prop < objecty.prop === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T2.js index 591c7a7a5..27c621da3 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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.8/11.8.1/S11.8.1_A2.1_T3.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T3.js index b71cac528..a8978fe4d 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.1_T3.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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.8/11.8.1/S11.8.1_A2.2_T1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.2_T1.js index 8641cf4f2..924508c35 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.2_T1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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 0}} < 1 !== true) { @@ -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.8/11.8.1/S11.8.1_A2.3_T1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.3_T1.js index 9f7c478ca..73eec6137 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.3_T1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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.8/11.8.1/S11.8.1_A2.4_T1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T1.js index 739640488..21a6a1f10 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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 = 1; @@ -19,5 +17,3 @@ var x = 0; if (x < (x = 1) !== true) { $ERROR('#2: var x = 0; x < (x = 1) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T2.js index acd8c1274..ca342460b 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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.8/11.8.1/S11.8.1_A2.4_T3.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T3.js index 657ef95f2..cefba0ad6 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A2.4_T3.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.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.8/11.8.1/S11.8.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 !== false) { $ERROR('#2: (y = 1) < y === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.1.js index 0d01c8f9f..cbd4111df 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T1.1.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive boolean and Boolean object - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) and Type(Primitive(y)) vary between primitive + boolean and Boolean object +---*/ //CHECK#1 if (true < true !== false) { @@ -27,4 +29,3 @@ if (true < new Boolean(true) !== false) { if (new Boolean(true) < new Boolean(true) !== false) { $ERROR('#4: new Boolean(true) < new Boolean(true) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.2.js index afec980fd..05ed01af4 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T1.2.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive number and Number object - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) and Type(Primitive(y)) vary between primitive + number and Number object +---*/ //CHECK#1 if (1 < 1 !== false) { @@ -27,5 +29,3 @@ if (1 < new Number(1) !== false) { if (new Number(1) < new Number(1) !== false) { $ERROR('#4: new Number(1) < new Number(1) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.3.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.3.js index 7964cd27d..7d51e001c 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.3.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T1.3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T1.3.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between Null and Undefined - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) and Type(Primitive(y)) vary between Null and + Undefined +---*/ //CHECK#1 if (null < undefined !== false) { @@ -27,4 +29,3 @@ if (undefined < undefined !== false) { if (null < null !== false) { $ERROR('#4: null < null === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.1.js index acbeb65db..1a80ad1d5 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.1.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.1.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types are Number (primitive or object) or Boolean (primitive and object) - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types are Number (primitive or object) or Boolean (primitive and + object) +---*/ //CHECK#1 if (true < 1 !== false) { @@ -47,4 +50,3 @@ if (new Boolean(true) < new Number(1) !== false) { if (new Number(1) < new Boolean(true) !== false) { $ERROR('#8: new Number(1) < new Boolean(true) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.2.js index e67f1c50a..1cfa1dd93 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.2.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.2.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between Number (primitive or object) and String + (primitive and object) +---*/ //CHECK#1 if ("1" < 1 !== false) { @@ -57,4 +60,3 @@ if ("x" < 1 !== false) { if (1 < "x" !== false) { $ERROR('#10: 1 < "x" === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.3.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.3.js index 32d4fa5fa..cc69728eb 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.3.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.3.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between Number (primitive or object) and Null +---*/ //CHECK#1 if (1 < null !== false) { @@ -27,4 +29,3 @@ if (new Number(1) < null !== false) { if (null < new Number(1) !== true) { $ERROR('#4: null < new Number(1) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.4.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.4.js index 19ce587cb..e670bb93f 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.4.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.4.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.4.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between Number (primitive or object) and Undefined +---*/ //CHECK#1 if (1 < undefined !== false) { @@ -27,4 +29,3 @@ if (new Number(1) < undefined !== false) { if (undefined < new Number(1) !== false) { $ERROR('#4: undefined < new Number(1) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.5.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.5.js index 2ec157c85..e4646e627 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.5.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.5.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.5.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between String (primitive or object) and Boolean + (primitive and object) +---*/ //CHECK#1 if (true < "1" !== false) { @@ -47,4 +50,3 @@ if (new Boolean(true) < new String("1") !== false) { if (new String("1") < new Boolean(true) !== false) { $ERROR('#8: new String("1") < new Boolean(true) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.6.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.6.js index de4ef0016..8075a0b52 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.6.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.6.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.6.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between String (primitive or object) and Undefined +---*/ //CHECK#1 if ("1" < undefined !== false) { @@ -27,4 +29,3 @@ if (new String("1") < undefined !== false) { if (undefined < new String("1") !== false) { $ERROR('#4: undefined < new String("1") === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.7.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.7.js index 97e9c8fdd..92c9d8bb4 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.7.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.7.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.7.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between String (primitive or object) and Null - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between String (primitive or object) and Null +---*/ //CHECK#1 if ("1" < null !== false) { @@ -27,4 +29,3 @@ if (new String("1") < null !== false) { if (null < new String("1") !== true) { $ERROR('#4: null < new String("1") === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.8.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.8.js index dcd5dfef8..fa5c1162e 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.8.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.8.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.8.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if (true < undefined !== false) { @@ -27,4 +29,3 @@ if (new Boolean(true) < undefined !== false) { if (undefined < new Boolean(true) !== false) { $ERROR('#4: undefined < new Boolean(true) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.9.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.9.js index 3e47b7d07..0abc5e65d 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.9.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.1_T2.9.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.9.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: > + If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, + then operator x < y returns ToNumber(x) < ToNumber(y) +description: > + Type(Primitive(x)) is different from Type(Primitive(y)) and both + types vary between Boolean (primitive or object) and Null +---*/ //CHECK#1 if (true < null !== false) { @@ -27,4 +29,3 @@ if (new Boolean(true) < null !== false) { if (null < new Boolean(true) !== true) { $ERROR('#4: null < new Boolean(true) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.1.js index 9e1cb7811..4162b4215 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.1.js @@ -1,12 +1,14 @@ // 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 ToString(x) < ToString(y), if Type(Primitive(x)) is String and Type(Primitive(y)) is String - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.2_T1.1.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive string and String object - */ +/*--- +info: > + Operator x < y returns ToString(x) < ToString(y), if Type(Primitive(x)) + is String and Type(Primitive(y)) is String +description: > + Type(Primitive(x)) and Type(Primitive(y)) vary between primitive + string and String object +---*/ //CHECK#1 if ("1" < "1" !== false) { @@ -37,4 +39,3 @@ if ("x" < "1" !== false) { if ("1" < "x" !== true) { $ERROR('#6: "1" < "x" === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.2.js index 47068903b..b2fb8b33e 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A3.2_T1.2.js @@ -1,12 +1,14 @@ // 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 ToString(x) < ToString(y), if Type(Primitive(x)) is String and Type(Primitive(y)) is String - * - * @path ch11/11.8/11.8.1/S11.8.1_A3.2_T1.2.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between Object object and Function object - */ +/*--- +info: > + Operator x < y returns ToString(x) < ToString(y), if Type(Primitive(x)) + is String and Type(Primitive(y)) is String +description: > + Type(Primitive(x)) and Type(Primitive(y)) vary between Object + object and Function object +---*/ //CHECK#1 if (({} < function(){return 1}) !== ({}.toString() < function(){return 1}.toString())) { @@ -27,4 +29,3 @@ if ((function(){return 1} < function(){return 1}) !== (function(){return 1}.toSt if (({} < {}) !== ({}.toString() < {}.toString())) { $ERROR('#4: ({} < {}) === ({}.toString() < {}.toString())'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.1.js index 5dee6e657..a800a90b3 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, return false (if result in 11.8.5 is undefined, return false) - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.1.js - * @description y is number primitive - */ +/*--- +info: If x is NaN, return false (if result in 11.8.5 is undefined, return false) +description: y is number primitive +---*/ //CHECK#1 if ((Number.NaN < 0) !== false) { @@ -47,5 +45,3 @@ if ((Number.NaN < Number.MAX_VALUE) !== false) { if ((Number.NaN < Number.MIN_VALUE) !== false) { $ERROR('#8: (NaN < Number.MIN_VALUE) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.10.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.10.js index 2caacdc42..90cad8e44 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.10.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.10.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is a prefix of x, return false - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.10.js - * @description x and y are string primitives - */ +/*--- +info: If y is a prefix of x, return false +description: x and y are string primitives +---*/ //CHECK#1 if (("x" < "x") !== false) { @@ -38,5 +36,3 @@ var x = "x"; if ((x + "y" < x) !== false) { $ERROR('#6: var x = "x"; (x + "y" < x) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.11.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.11.js index 2c87da030..4e6639e64 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.11.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.11.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is a prefix of y and x !== y, return true - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.11.js - * @description x and y are string primitives - */ +/*--- +info: If x is a prefix of y and x !== y, return true +description: x and y are string primitives +---*/ //CHECK#1 if (("x" < "x ") !== true) { @@ -48,6 +46,3 @@ if (("a\u0000" < "a\u0000a") !== true) { if (("x" < " x") !== false) { $ERROR('#8: ("x" < " x") === false'); } - - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T1.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T1.js index b8f0eb78d..53d120b3b 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T1.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T1.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If neither x, nor y is a prefix of each other, returned result of strings comparison applies a simple lexicographic ordering to the sequences of code point value values - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.12_T1.js - * @description x and y are string primitives - */ +/*--- +info: > + If neither x, nor y is a prefix of each other, returned result of strings + comparison applies a simple lexicographic ordering to the sequences of + code point value values +description: x and y are string primitives +---*/ //CHECK#1 if (("xx" < "xy") !== true) { @@ -42,4 +43,3 @@ if (("a\u0000a" < "a\u0000b") !== true) { if (("aB" < "aa") !== true) { $ERROR('#7: ("aB" < aa") === true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T2.js index 0b0e2d5fb..626cacb8a 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.12_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If neither x, nor y is a prefix of each other, returned result of strings comparison applies a simple lexicographic ordering to the sequences of code point value values - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.12_T2.js - * @description x and y are string primitives - */ +/*--- +info: > + If neither x, nor y is a prefix of each other, returned result of strings + comparison applies a simple lexicographic ordering to the sequences of + code point value values +description: x and y are string primitives +---*/ //CHECK#1 if (("0" < "x") !== true) { @@ -42,4 +43,3 @@ if (("+1" < "-1") !== true) { if (("1" < "1e-10") !== true) { $ERROR('#7: ("1" < "1e-10") !== true'); } - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.2.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.2.js index 2ab4adeb4..37053563b 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.2.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is NaN, return false (if result in 11.8.5 is undefined, return false) - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.2.js - * @description x is number primitive - */ +/*--- +info: If y is NaN, return false (if result in 11.8.5 is undefined, return false) +description: x is number primitive +---*/ //CHECK#1 if ((0 < Number.NaN) !== false) { @@ -47,5 +45,3 @@ if ((Number.MAX_VALUE < Number.NaN) !== false) { if ((Number.MIN_VALUE < Number.NaN) !== false) { $ERROR('#8: (Number.MIN_VALUE < NaN) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.3.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.3.js index 1fa8a4988..059099478 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.3.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.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. -/** - * If x and y are the same number value, return false - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.3.js - * @description x and y are number primitives - */ +/*--- +info: If x and y are the same number value, return false +description: x and y are number primitives +---*/ //CHECK#1 if ((1 < 1) !== false) { @@ -42,6 +40,3 @@ if ((Number.MAX_VALUE < Number.MAX_VALUE) !== false) { if ((Number.MIN_VALUE < Number.MIN_VALUE) !== false) { $ERROR('#7: (Number.MIN_VALUE < Number.MIN_VALUE) === false'); } - - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.4.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.4.js index d04541e42..9e4298548 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.4.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.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. -/** - * If x and y are +0 and -0, return false - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.4.js - * @description Checking all combinations - */ +/*--- +info: If x and y are +0 and -0, return false +description: Checking all combinations +---*/ //CHECK#1 if ((0 < 0) !== false) { @@ -27,5 +25,3 @@ if ((+0 < -0) !== false) { if ((-0 < +0) !== false) { $ERROR('#4: (-0 < +0) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.5.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.5.js index d874e0fde..e90599eb8 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.5.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.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. -/** - * If x is +Infinity, return false - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.5.js - * @description y is number primitive - */ +/*--- +info: If x is +Infinity, return false +description: y is number primitive +---*/ //CHECK#1 if ((Number.POSITIVE_INFINITY < 0) !== false) { @@ -37,5 +35,3 @@ if ((Number.POSITIVE_INFINITY < Number.MAX_VALUE) !== false) { if ((Number.POSITIVE_INFINITY < Number.MIN_VALUE) !== false) { $ERROR('#6: (+Infinity < Number.MIN_VALUE) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.6.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.6.js index 2dce0a45a..203a4253d 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.6.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.6.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is +Infinity and x !== y, return true - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.6.js - * @description x is number primitive - */ +/*--- +info: If y is +Infinity and x !== y, return true +description: x is number primitive +---*/ //CHECK#1 if ((0 < Number.POSITIVE_INFINITY) !== true) { @@ -37,5 +35,3 @@ if ((Number.MAX_VALUE < Number.POSITIVE_INFINITY) !== true) { if ((Number.MIN_VALUE < Number.POSITIVE_INFINITY) !== true) { $ERROR('#6: (Number.MIN_VALUE < +Infinity) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.7.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.7.js index a54ec57be..4ad7c3b88 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.7.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity and x !== y, return true - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.7.js - * @description y is number primitive - */ +/*--- +info: If x is -Infinity and x !== y, return true +description: y is number primitive +---*/ //CHECK#1 if ((Number.NEGATIVE_INFINITY < 0) !== true) { @@ -37,5 +35,3 @@ if ((Number.NEGATIVE_INFINITY < Number.MAX_VALUE) !== true) { if ((Number.NEGATIVE_INFINITY < Number.MIN_VALUE) !== true) { $ERROR('#6: (-Infinity < Number.MIN_VALUE) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.8.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.8.js index ac5202d5a..e37961598 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.8.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.8.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is -Infinity, return false - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.8.js - * @description x is number primitive - */ +/*--- +info: If y is -Infinity, return false +description: x is number primitive +---*/ //CHECK#1 if ((0 < Number.NEGATIVE_INFINITY) !== false) { @@ -37,5 +35,3 @@ if ((Number.MAX_VALUE < Number.NEGATIVE_INFINITY) !== false) { if ((Number.MIN_VALUE < Number.NEGATIVE_INFINITY) !== false) { $ERROR('#6: (Number.MIN_VALUE < -Infinity) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.9.js b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.9.js index 32839492c..f2a18ea24 100644 --- a/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.9.js +++ b/test/suite/ch11/11.8/11.8.1/S11.8.1_A4.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. -/** - * If x is less than y and these values are both finite non-zero, return true; otherwise, return false - * - * @path ch11/11.8/11.8.1/S11.8.1_A4.9.js - * @description x and y are number primitives - */ +/*--- +info: > + If x is less than y and these values are both finite non-zero, return + true; otherwise, return false +description: x and y are number primitives +---*/ //CHECK#1 if ((1.1 < 1) !== false) { @@ -47,6 +47,3 @@ if ((Number.MAX_VALUE/2 < Number.MAX_VALUE) !== true) { if ((Number.MIN_VALUE < Number.MIN_VALUE*2) !== true) { $ERROR('#8: (Number.MIN_VALUE < Number.MIN_VALUE*2) === true'); } - - - |