diff options
Diffstat (limited to 'test/suite/ch11/11.8/11.8.4')
36 files changed, 215 insertions, 269 deletions
diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A1.js index 2a165a211..eee942672 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 "=>" and ShiftExpression are allowed - * - * @path ch11/11.8/11.8.4/S11.8.4_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between RelationalExpression and "=>" or + "=>" and ShiftExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009>=\u00091") !== true) { @@ -57,4 +57,3 @@ if (eval("1\u2029>=\u20291") !== true) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029>=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== true) { $ERROR('#10: (1\\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.4/S11.8.4_A2.1_T1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T1.js index 8f3adb309..3d136a7bb 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x >= y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 >= 1 !== true) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop >= objecty.prop !== true) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop >= objecty.prop === true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T2.js index 8a57a24e3..974927ebd 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.8/11.8.4/S11.8.4_A2.1_T3.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T3.js index 23c2ea604..4535d9693 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.1_T3.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A2.2_T1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.2_T1.js index f129ea315..0b03a6751 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.2_T1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 2}} >= 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.4/S11.8.4_A2.3_T1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.3_T1.js index dd286dd03..856480e83 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.3_T1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A2.4_T1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T1.js index 8e3f2b0c7..1e7baf551 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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) !== false) { $ERROR('#2: var x = 0; x >= (x = 1) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T2.js index f7c0446dd..aca2fe6dd 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A2.4_T3.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T3.js index 54efe21ac..fe38c26ce 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A2.4_T3.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_A2.4_T3.js - * @description Checking with undeclarated variables - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +---*/ //CHECK#1 try { @@ -23,5 +21,3 @@ catch (e) { if ((y = 1) >= y !== true) { $ERROR('#2: (y = 1) >= y === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.1.js index d92463091..d23ac9d4f 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { @@ -27,4 +29,3 @@ if (true >= new Boolean(true) !== true) { if (new Boolean(true) >= new Boolean(true) !== true) { $ERROR('#4: new Boolean(true) >= new Boolean(true) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.2.js index 255124d7d..e967d057d 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { @@ -27,5 +29,3 @@ if (1 >= new Number(1) !== true) { if (new Number(1) >= new Number(1) !== true) { $ERROR('#4: new Number(1) >= new Number(1) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.3.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.3.js index ffe39372e..0252ba6cc 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T1.3.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { $ERROR('#4: null >= null === true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.1.js index c1f367aae..8159c6f23 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_A3.1_T2.1.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Number (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 Number (primitive or object) and Boolean + (primitive and object) +---*/ //CHECK#1 if (true >= 1 !== true) { @@ -47,4 +50,3 @@ if (new Boolean(true) >= new Number(1) !== true) { if (new Number(1) >= new Boolean(true) !== true) { $ERROR('#8: new Number(1) >= new Boolean(true) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.2.js index 3e4bca79b..2ccfb7eb0 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { @@ -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.4/S11.8.4_A3.1_T2.3.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.3.js index 4d0c6b6a9..0eab4ac8f 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.3.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { @@ -27,4 +29,3 @@ if (new Number(1) >= null !== true) { if (null >= new Number(1) !== false) { $ERROR('#4: null >= new Number(1) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.4.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.4.js index f94a78e5a..c7b873f22 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.4.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A3.1_T2.5.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.5.js index 5f949872e..43d84e760 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.5.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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" !== true) { @@ -47,4 +50,3 @@ if (new Boolean(true) >= new String("1") !== true) { if (new String("1") >= new Boolean(true) !== true) { $ERROR('#8: new String("1") >= new Boolean(true) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.6.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.6.js index ff2ab1820..9b24e162e 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.6.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A3.1_T2.7.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.7.js index 10745f98a..41a912293 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.7.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { @@ -27,4 +29,3 @@ if (new String("1") >= null !== true) { if (null >= new String("1") !== false) { $ERROR('#4: null >= new String("1") === false'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.8.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.8.js index c45874ca8..5a202611c 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.8.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A3.1_T2.9.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.9.js index 8046d5a59..9fce92c87 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.1_T2.9.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 !== true) { @@ -27,4 +29,3 @@ if (new Boolean(true) >= null !== true) { if (null >= new Boolean(true) !== false) { $ERROR('#4: null >= new Boolean(true) === false'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.2_T1.1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.2_T1.1.js index d166d3f9b..835537b96 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.2_T1.1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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" !== true) { @@ -37,4 +39,3 @@ if ("x" >= "1" !== true) { if ("1" >= "x" !== false) { $ERROR('#6: "1" >= "x" === false'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.2_T1.2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.2_T1.2.js index 7a981028c..62bab1569 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A3.2_T1.2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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}.toS if (({} >= {}) !== ({}.toString() >= {}.toString())) { $ERROR('#4: ({} >= {}) === ({}.toString() >= {}.toString())'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.1.js index 601f23715..ce7999f27 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A4.10.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.10.js index caaf1fa86..2f3bd2edd 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.10.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 x is a prefix of y and x !== y, return false - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.10.js - * @description x and y are string primitives - */ +/*--- +info: If x is a prefix of y and x !== y, return false +description: x and y are string primitives +---*/ //CHECK#1 if (("x" >= "x ") !== false) { @@ -38,4 +36,3 @@ var x = "x"; if ((x >= x + "y") !== false) { $ERROR('#6: var x = "x"; (x >= x + "y") === false'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.11.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.11.js index 98b792a6d..7f15f3369 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.11.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 y is a prefix of x, return true - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.11.js - * @description x and y are string primitives - */ +/*--- +info: If y is a prefix of x, return true +description: x and y are string primitives +---*/ //CHECK#1 if (("x" >= "x") !== true) { @@ -48,5 +46,3 @@ if (("a\u0000a" >= "a\u0000") !== true) { if ((" x" >= "x") !== false) { $ERROR('#8: (" x" >= "x") === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.12_T1.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.12_T1.js index 961dc236f..52d274971 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.12_T1.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 (("xy" >= "xx") !== true) { @@ -42,4 +43,3 @@ if (("a\u0000b" >= "a\u0000a") !== true) { if (("aa" >= "aB") !== true) { $ERROR('#7: ("aa" >= aB") === true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.12_T2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.12_T2.js index 851e69d49..5512e0492 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.12_T2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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 (("x" >= "0") !== true) { @@ -42,4 +43,3 @@ if (("-1" >= "+1") !== true) { if (("1e-10" >= "1") !== true) { $ERROR('#7: ("1e-10" >= "1") !== true'); } - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.2.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.2.js index a10b2ab4e..c2f5665a5 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.2.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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.4/S11.8.4_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.4/S11.8.4_A4.3.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.3.js index 4169a91bb..a4d00bcc2 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.3.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 true - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.3.js - * @description x and y are number primitives - */ +/*--- +info: If x and y are the same number value, return true +description: x and y are number primitives +---*/ //CHECK#1 if ((1 >= 1) !== true) { @@ -42,6 +40,3 @@ if ((Number.MAX_VALUE >= Number.MAX_VALUE) !== true) { if ((Number.MIN_VALUE >= Number.MIN_VALUE) !== true) { $ERROR('#7: (Number.MIN_VALUE >= Number.MIN_VALUE) === true'); } - - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.4.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.4.js index 3abe7fa77..d06f5b2c1 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.4.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 either x or y is +0 and the other is -0, return true - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.4.js - * @description Checking all combinations - */ +/*--- +info: If either x or y is +0 and the other is -0, return true +description: Checking all combinations +---*/ //CHECK#1 if ((0 >= 0) !== true) { @@ -27,5 +25,3 @@ if ((+0 >= -0) !== true) { if ((-0 >= +0) !== true) { $ERROR('#4: (-0 >= +0) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.5.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.5.js index e0357fee2..f6c6c984f 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.5.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 true - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.5.js - * @description y is number primitive - */ +/*--- +info: If x is +Infinity, return true +description: y is number primitive +---*/ //CHECK#1 if ((Number.POSITIVE_INFINITY >= 0) !== true) { @@ -37,5 +35,3 @@ if ((Number.POSITIVE_INFINITY >= Number.MAX_VALUE) !== true) { if ((Number.POSITIVE_INFINITY >= Number.MIN_VALUE) !== true) { $ERROR('#6: (+Infinity >= Number.MIN_VALUE) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.6.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.6.js index b1f898a14..f12eae38c 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.6.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 false - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.6.js - * @description x is number primitive - */ +/*--- +info: If y is +Infinity and x !== y, return false +description: x is number primitive +---*/ //CHECK#1 if ((0 >= Number.POSITIVE_INFINITY) !== false) { @@ -37,5 +35,3 @@ if ((Number.MAX_VALUE >= Number.POSITIVE_INFINITY) !== false) { if ((Number.MIN_VALUE >= Number.POSITIVE_INFINITY) !== false) { $ERROR('#6: (Number.MIN_VALUE >= +Infinity) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.7.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.7.js index 6a423b834..3e1ad0040 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.7.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 false - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.7.js - * @description y is number primitive - */ +/*--- +info: If x is -Infinity and x !== y, return false +description: y is number primitive +---*/ //CHECK#1 if ((Number.NEGATIVE_INFINITY >= 0) !== false) { @@ -37,5 +35,3 @@ if ((Number.NEGATIVE_INFINITY >= Number.MAX_VALUE) !== false) { if ((Number.NEGATIVE_INFINITY >= Number.MIN_VALUE) !== false) { $ERROR('#6: (-Infinity >= Number.MIN_VALUE) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.8.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.8.js index ce00360b3..b0cfb6202 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.8.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 true - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.8.js - * @description x is number primitive - */ +/*--- +info: If y is -Infinity, return true +description: x is number primitive +---*/ //CHECK#1 if ((0 >= Number.NEGATIVE_INFINITY) !== true) { @@ -37,5 +35,3 @@ if ((Number.MAX_VALUE >= Number.NEGATIVE_INFINITY) !== true) { if ((Number.MIN_VALUE >= Number.NEGATIVE_INFINITY) !== true) { $ERROR('#6: (Number.MIN_VALUE >= -Infinity) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.9.js b/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.9.js index 116d934ef..3c514df79 100644 --- a/test/suite/ch11/11.8/11.8.4/S11.8.4_A4.9.js +++ b/test/suite/ch11/11.8/11.8.4/S11.8.4_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 greater or equal than y and these values are both finite non-zero, return true; otherwise, return false - * - * @path ch11/11.8/11.8.4/S11.8.4_A4.9.js - * @description x and y are number primitives - */ +/*--- +info: > + If x is greater or equal 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 >= Number.MAX_VALUE/2) !== true) { if ((Number.MIN_VALUE*2 >= Number.MIN_VALUE) !== true) { $ERROR('#8: (Number.MIN_VALUE*2 >= Number.MIN_VALUE) === true'); } - - - |