diff options
Diffstat (limited to 'test/suite/ch11')
1320 files changed, 11974 insertions, 13673 deletions
diff --git a/test/suite/ch11/11.1/11.1.1/11.1.1-1gs.js b/test/suite/ch11/11.1/11.1.1/11.1.1-1gs.js index 0f2b30b5d..f7473928d 100644 --- a/test/suite/ch11/11.1/11.1.1/11.1.1-1gs.js +++ b/test/suite/ch11/11.1/11.1.1/11.1.1-1gs.js @@ -1,16 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch11/11.1/11.1.1/11.1.1-1gs.js
- * @description Strict Mode - 'this' object at the global scope is not undefined
- * @onlyStrict
- */
-
-"use strict";
-if (this===undefined) {
- throw NotEarlyError;
-}
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - 'this' object at the global scope is not undefined +flags: [onlyStrict] +---*/ + +"use strict"; +if (this===undefined) { + throw NotEarlyError; +} diff --git a/test/suite/ch11/11.1/11.1.1/S11.1.1_A1.js b/test/suite/ch11/11.1/11.1.1/S11.1.1_A1.js index c68c32736..876c46e90 100644 --- a/test/suite/ch11/11.1/11.1.1/S11.1.1_A1.js +++ b/test/suite/ch11/11.1/11.1.1/S11.1.1_A1.js @@ -1,13 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The "this" is reserved word - * - * @path ch11/11.1/11.1.1/S11.1.1_A1.js - * @description Checking if execution of "this=1" fails - * @negative - */ +/*--- +info: The "this" is reserved word +description: Checking if execution of "this=1" fails +flags: [negative] +---*/ this = 1; - diff --git a/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.1.js b/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.1.js index 4094fa914..64589de5c 100644 --- a/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.1.js +++ b/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.1.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Being in function code, "this" and eval("this"), called as a functions, return the global object - * - * @path ch11/11.1/11.1.1/S11.1.1_A3.1.js - * @description Creating function which returns "this" or eval("this") - * @noStrict - */ +/*--- +info: > + Being in function code, "this" and eval("this"), called as a functions, + return the global object +description: Creating function which returns "this" or eval("this") +flags: [noStrict] +---*/ //CHECK#1 function MyFunction() {return this} @@ -20,6 +20,3 @@ function MyFunction() {return eval("this")} if (MyFunction() !== this) { $ERROR('#2: function MyFunction() {return eval("this")} MyFunction() === this. Actual: ' + (MyFunction())); } - - - diff --git a/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.2.js b/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.2.js index ca0d5e699..e6863804c 100644 --- a/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.2.js +++ b/test/suite/ch11/11.1/11.1.1/S11.1.1_A3.2.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Being in function code, "this" and eval("this"), called as a constructors, return the object - * - * @path ch11/11.1/11.1.1/S11.1.1_A3.2.js - * @description Create function. It have property, that returned "this" - * @noStrict - */ +/*--- +info: > + Being in function code, "this" and eval("this"), called as a + constructors, return the object +description: Create function. It have property, that returned "this" +flags: [noStrict] +---*/ //CHECK#1 function MyFunction() {this.THIS = this} @@ -20,5 +20,3 @@ function MyFunction() {this.THIS = eval("this")} if ((new MyFunction()).THIS.toString() !== "[object Object]") { $ERROR('#2: function MyFunction() {this.THIS = eval("this")} (new MyFunction()).THIS.toString() !== "[object Object]". Actual: ' + ((new MyFunction()).THIS.toString())); } - - diff --git a/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.1.js b/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.1.js index 38e2adbbd..f79e1b463 100644 --- a/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.1.js +++ b/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.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. -/** - * Being in anonymous code, "this" and eval("this"), called as a function, return the global object - * - * @path ch11/11.1/11.1.1/S11.1.1_A4.1.js - * @description Creating function with new Function() constructor - */ +/*--- +info: > + Being in anonymous code, "this" and eval("this"), called as a function, + return the global object +description: Creating function with new Function() constructor +---*/ //CHECK#1 var MyFunction = new Function("return this"); @@ -19,6 +19,3 @@ MyFunction = new Function("return eval(\'this\')"); if (MyFunction() !== this) { $ERROR('#2: var MyFunction = new Function("return eval(\'this\')"); MyFunction() === this. Actual: ' + (MyFunction())); } - - - diff --git a/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.2.js b/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.2.js index cd37d6824..1d8fc7469 100644 --- a/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.2.js +++ b/test/suite/ch11/11.1/11.1.1/S11.1.1_A4.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. -/** - * Being in anonymous code, "this" and eval("this"), called as a constructor, return the object - * - * @path ch11/11.1/11.1.1/S11.1.1_A4.2.js - * @description Creating function by using new Function() constructor. It has the property, which returns "this" - */ +/*--- +info: > + Being in anonymous code, "this" and eval("this"), called as a + constructor, return the object +description: > + Creating function by using new Function() constructor. It has the + property, which returns "this" +---*/ //CHECK#1 var MyFunction = new Function("this.THIS = this"); @@ -21,5 +23,3 @@ MyObject = new MyFunction(); if (MyObject.THIS.toString() !== "[object Object]") { $ERROR('#2: var MyFunction = new Function("this.THIS = eval(\'this\')"); var MyObject = new MyFunction(); MyObject.THIS.toString() === "[object Object]". Actual: ' + (MyObject.THIS.toString())); } - - diff --git a/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_T1.js b/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_T1.js index 46955d3ca..cdd983ded 100644 --- a/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_T1.js +++ b/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_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. -/** - * The result of evaluating an Identifier is always a value of type Reference - * - * @path ch11/11.1/11.1.2/S11.1.2_A1_T1.js - * @description Creating variables without defining it - */ +/*--- +info: The result of evaluating an Identifier is always a value of type Reference +description: Creating variables without defining it +---*/ //CHECK#1 if (this.x !== undefined) { @@ -24,4 +22,3 @@ this.y++; if (isNaN(y) !== true) { $ERROR('#3: this.y++; y === Not-a-Number. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_T2.js b/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_T2.js index df170468d..2cf3be2b3 100644 --- a/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_T2.js +++ b/test/suite/ch11/11.1/11.1.2/S11.1.2_A1_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. -/** - * The result of evaluating an Identifier is always a value of type Reference - * - * @path ch11/11.1/11.1.2/S11.1.2_A1_T2.js - * @description Trying to generate ReferenceError - */ +/*--- +info: The result of evaluating an Identifier is always a value of type Reference +description: Trying to generate ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ try { $ERROR('#1.2: this.z; z === undefined throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.1/11.1.4/11.1.4-0.js b/test/suite/ch11/11.1/11.1.4/11.1.4-0.js index 60d4b1d8c..4cd28c576 100644 --- a/test/suite/ch11/11.1/11.1.4/11.1.4-0.js +++ b/test/suite/ch11/11.1/11.1.4/11.1.4-0.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.4/11.1.4-0.js
- * @description elements elided at the end of an array do not contribute to its length
- */
-
-
-function testcase() {
- var a = [,];
- if (a.length === 1) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + elements elided at the end of an array do not contribute to its + length +includes: [runTestCase.js] +---*/ + +function testcase() { + var a = [,]; + if (a.length === 1) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.4/11.1.4_4-5-1.js b/test/suite/ch11/11.1/11.1.4/11.1.4_4-5-1.js index 15de1077b..95951b8e6 100644 --- a/test/suite/ch11/11.1/11.1.4/11.1.4_4-5-1.js +++ b/test/suite/ch11/11.1/11.1.4/11.1.4_4-5-1.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.4;
- * The production
- * ElementList : Elisionopt AssignmentExpression
- * 5.Call the [[DefineOwnProperty]] internal method of array with arguments ToString(firstIndex), the Property Descriptor { [[Value]]: initValue, [[Writable]]: true
- * , [[Enumerable]]: true, [[Configurable]]: true}, and false.
- *
- * @path ch11/11.1/11.1.4/11.1.4_4-5-1.js
- * @description Initialize array using ElementList (Elisionopt AssignmentExpression) when index property (read-only) exists in Array.prototype (step 5)
- */
-
-
-function testcase() {
- try {
- Object.defineProperty(Array.prototype, "0", {
- value: 100,
- writable: false,
- configurable: true
- });
- var arr = [101];
-
- return arr.hasOwnProperty("0") && arr[0] === 101;
- } finally {
- delete Array.prototype[0];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.4; + The production + ElementList : Elisionopt AssignmentExpression + 5.Call the [[DefineOwnProperty]] internal method of array with arguments ToString(firstIndex), the Property Descriptor { [[Value]]: initValue, [[Writable]]: true + , [[Enumerable]]: true, [[Configurable]]: true}, and false. +description: > + Initialize array using ElementList (Elisionopt + AssignmentExpression) when index property (read-only) exists in + Array.prototype (step 5) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.defineProperty(Array.prototype, "0", { + value: 100, + writable: false, + configurable: true + }); + var arr = [101]; + + return arr.hasOwnProperty("0") && arr[0] === 101; + } finally { + delete Array.prototype[0]; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.4/11.1.4_5-6-1.js b/test/suite/ch11/11.1/11.1.4/11.1.4_5-6-1.js index 14e02a1b7..2075bbc43 100644 --- a/test/suite/ch11/11.1/11.1.4/11.1.4_5-6-1.js +++ b/test/suite/ch11/11.1/11.1.4/11.1.4_5-6-1.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.4;
- * The production
- * ElementList : ElementList , Elisionopt AssignmentExpression
- * 6.Call the [[DefineOwnProperty]] internal method of array with arguments ToString(ToUint32((pad+len)) and the Property Descriptor { [[Value]]: initValue
- * , [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true}, and false.
- *
- * @path ch11/11.1/11.1.4/11.1.4_5-6-1.js
- * @description Initialize array using ElementList (ElementList , Elisionopt AssignmentExpression) when index property (read-only) exists in Array.prototype (step 6)
- */
-
-
-function testcase() {
- try {
- Object.defineProperty(Array.prototype, "1", {
- value: 100,
- writable: false,
- configurable: true
- });
- var arr = [101, 12];
-
- return arr.hasOwnProperty("1") && arr[1] === 12;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.4; + The production + ElementList : ElementList , Elisionopt AssignmentExpression + 6.Call the [[DefineOwnProperty]] internal method of array with arguments ToString(ToUint32((pad+len)) and the Property Descriptor { [[Value]]: initValue + , [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true}, and false. +description: > + Initialize array using ElementList (ElementList , Elisionopt + AssignmentExpression) when index property (read-only) exists in + Array.prototype (step 6) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.defineProperty(Array.prototype, "1", { + value: 100, + writable: false, + configurable: true + }); + var arr = [101, 12]; + + return arr.hasOwnProperty("1") && arr[1] === 12; + } finally { + delete Array.prototype[1]; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.1.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.1.js index 6e202534b..7e7837662 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.1.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.1.js - * @description Checking various properties of the array defined with expression "var array = []" - */ +/*--- +info: "Evaluate the production ArrayLiteral: [ ]" +description: > + Checking various properties of the array defined with expression + "var array = []" +---*/ var array = []; @@ -29,4 +29,3 @@ if (array.toString !== Array.prototype.toString) { if (array.length !== 0) { $ERROR('#4: var array = []; array.length === 0. Actual: ' + (array.length)); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.2.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.2.js index e1b0ff3ee..db34ebf97 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.2.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ Elision ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.2.js - * @description Checking various properties the array defined with "var array = [,,,,,]" - */ +/*--- +info: "Evaluate the production ArrayLiteral: [ Elision ]" +description: > + Checking various properties the array defined with "var array = + [,,,,,]" +---*/ var array = [,,,,,]; @@ -29,4 +29,3 @@ if (array.toString !== Array.prototype.toString) { if (array.length !== 5) { $ERROR('#4: var array = [,,,,,]; array.length === 5. Actual: ' + (array.length)); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.3.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.3.js index 6682a8eef..8fa9539b4 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.3.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ AssignmentExpression ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.3.js - * @description Checking various properteis and contents of the array defined with "var array = [1,2,3,4,5]" - */ +/*--- +info: "Evaluate the production ArrayLiteral: [ AssignmentExpression ]" +description: > + Checking various properteis and contents of the array defined with + "var array = [1,2,3,4,5]" +---*/ var array = [1,2,3,4,5]; @@ -54,4 +54,3 @@ if (array[3] !== 4) { if (array[4] !== 5) { $ERROR('#9: var array = [1,2,3,4,5]; array[4] === 5. Actual: ' + (array[4])); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.4.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.4.js index 28e67233e..51b7fc7a9 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.4.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ Elision, AssignmentExpression ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.4.js - * @description Checking various properteis and content of the array defined with "var array = [,,,1,2]" - */ +/*--- +info: "Evaluate the production ArrayLiteral: [ Elision, AssignmentExpression ]" +description: > + Checking various properteis and content of the array defined with + "var array = [,,,1,2]" +---*/ var array = [,,,1,2]; @@ -54,4 +54,3 @@ if (array[3] !== 1) { if (array[4] !== 2) { $ERROR('#9: var array = [,,,1,2]; array[4] === 2. Actual: ' + (array[4])); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.5.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.5.js index d08183f2e..43c392d15 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.5.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ AssignmentExpression, Elision ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.5.js - * @description Checking various properteis and contents of the array defined with "var array = [4,5,,,,]" - */ +/*--- +info: "Evaluate the production ArrayLiteral: [ AssignmentExpression, Elision ]" +description: > + Checking various properteis and contents of the array defined with + "var array = [4,5,,,,]" +---*/ var array = [4,5,,,,]; @@ -54,4 +54,3 @@ if (array[3] !== undefined) { if (array[4] !== undefined) { $ERROR('#9: var array = [4,5,,,,]; array[4] === undefined. Actual: ' + (array[4])); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.6.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.6.js index 589eb3c0d..fa04a1f28 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.6.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ Elision, AssignmentExpression, Elision ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.6.js - * @description Checking various properteis and contents of the array defined with "var array = [,,3,,,]" - */ +/*--- +info: > + Evaluate the production ArrayLiteral: [ Elision, AssignmentExpression, + Elision ] +description: > + Checking various properteis and contents of the array defined with + "var array = [,,3,,,]" +---*/ var array = [,,3,,,]; @@ -54,4 +56,3 @@ if (array[3] !== undefined) { if (array[4] !== undefined) { $ERROR('#9: var array = [,,3,,,]; array[4] === undefined. Actual: ' + (array[4])); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.7.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.7.js index 4689d6b00..609d3ff6f 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.7.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A1.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. -/** - * Evaluate the production ArrayLiteral: [ AssignmentExpression, Elision, AssignmentExpression ] - * - * @path ch11/11.1/11.1.4/S11.1.4_A1.7.js - * @description Checking various properteis and contents of the array defined with "var array = [1,2,,4,5]" - */ +/*--- +info: > + Evaluate the production ArrayLiteral: [ AssignmentExpression, Elision, + AssignmentExpression ] +description: > + Checking various properteis and contents of the array defined with + "var array = [1,2,,4,5]" +---*/ var array = [1,2,,4,5]; @@ -54,4 +56,3 @@ if (array[3] !== 4) { if (array[4] !== 5) { $ERROR('#9: var array = [1,2,,4,5]; array[4] === 5. Actual: ' + (array[4])); } - diff --git a/test/suite/ch11/11.1/11.1.4/S11.1.4_A2.js b/test/suite/ch11/11.1/11.1.4/S11.1.4_A2.js index 3e1c699fb..b91afaf6a 100644 --- a/test/suite/ch11/11.1/11.1.4/S11.1.4_A2.js +++ b/test/suite/ch11/11.1/11.1.4/S11.1.4_A2.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. -/** - * Create multi dimensional array - * - * @path ch11/11.1/11.1.4/S11.1.4_A2.js - * @description Checking various properteis and contents of the arrya defined with "var array = [[1,2], [3], []]" - */ +/*--- +info: Create multi dimensional array +description: > + Checking various properteis and contents of the arrya defined with + "var array = [[1,2], [3], []]" +---*/ var array = [[1,2], [3], []]; @@ -125,4 +125,3 @@ if (array[0][1] !== 2) { if (array[1][0] !== 3) { $ERROR('#722: var array = [[1,2], [3], []]; array[1][0] === 3. Actual: ' + (array[1][0])); } - diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-0-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5-0-1.js index 5ff963de5..ea0067315 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-0-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-0-1.js @@ -1,27 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * it isn't clear what specific requirements of the specificaiton are being tested here. This test should
- * probably be replaced by some more targeted tests. AllenWB
- *
- * @path ch11/11.1/11.1.5/11.1.5-0-1.js
- * @description Object literal - get set property
- */
-
-
-function testcase() {
- var s1 = "In getter";
- var s2 = "In setter";
- var s3 = "Modified by setter";
- eval("var o = {get foo(){ return s1;},set foo(arg){return s2 = s3}};");
- if(o.foo !== s1)
- return false;
- o.foo=10;
- if(s2 !== s3)
- return false;
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + it isn't clear what specific requirements of the specificaiton are being tested here. This test should + probably be replaced by some more targeted tests. AllenWB +description: Object literal - get set property +includes: [runTestCase.js] +---*/ + +function testcase() { + var s1 = "In getter"; + var s2 = "In setter"; + var s3 = "Modified by setter"; + eval("var o = {get foo(){ return s1;},set foo(arg){return s2 = s3}};"); + if(o.foo !== s1) + return false; + o.foo=10; + if(s2 !== s3) + return false; + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-0-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5-0-2.js index 3f820b441..b4a4cdabc 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-0-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-0-2.js @@ -1,32 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * it isn't clear what specific requirements of the specificaiton are being tested here. This test should
- * probably be replaced by some more targeted tests. AllenWB
- *
- * @path ch11/11.1/11.1.5/11.1.5-0-2.js
- * @description Object literal - multiple get set properties
- */
-
-
-function testcase() {
- var s1 = "First getter";
- var s2 = "First setter";
- var s3 = "Second getter";
- eval("var o = {get foo(){ return s1;},set foo(arg){return s2 = s3}, get bar(){ return s3}, set bar(arg){ s3 = arg;}};");
- if(o.foo !== s1)
- return false;
- o.foo = 10;
- if(s2 !== s3)
- return false;
- if(o.bar !== s3)
- return false;
- o.bar = "Second setter";
- if(o.bar !== "Second setter")
- return false;
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + it isn't clear what specific requirements of the specificaiton are being tested here. This test should + probably be replaced by some more targeted tests. AllenWB +description: Object literal - multiple get set properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var s1 = "First getter"; + var s2 = "First setter"; + var s3 = "Second getter"; + eval("var o = {get foo(){ return s1;},set foo(arg){return s2 = s3}, get bar(){ return s3}, set bar(arg){ s3 = arg;}};"); + if(o.foo !== s1) + return false; + o.foo = 10; + if(s2 !== s3) + return false; + if(o.bar !== s3) + return false; + o.bar = "Second setter"; + if(o.bar !== "Second setter") + return false; + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-1-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5-1-s.js index 371c0aceb..6b8b86888 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-1-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-1-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5-1-s.js
- * @description Strict Mode - SyntaxError is thrown when 'eval' occurs as the Identifier in a PropertySetParameterList of a PropertyAssignment that is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var obj = {set _11_1_5_1_fun(eval) {}};");
- return false;
- } catch (e) {
- return (e instanceof SyntaxError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when 'eval' occurs as the + Identifier in a PropertySetParameterList of a PropertyAssignment + that is contained in strict code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("var obj = {set _11_1_5_1_fun(eval) {}};"); + return false; + } catch (e) { + return (e instanceof SyntaxError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-1gs.js b/test/suite/ch11/11.1/11.1.5/11.1.5-1gs.js index 6d7766e3e..061f92cbd 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-1gs.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-1gs.js @@ -1,14 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5-1gs.js
- * @description Strict Mode - SyntaxError is thrown when 'eval' occurs as the Identifier in a PropertySetParameterList of a PropertyAssignment that is contained in strict code
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-var obj = { set _11_1_5_1_fun(eval) {}};
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when 'eval' occurs as the + Identifier in a PropertySetParameterList of a PropertyAssignment + that is contained in strict code +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +var obj = { set _11_1_5_1_fun(eval) {}}; diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-2-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5-2-s.js index 5b763b78a..aba8cde74 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-2-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-2-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5-2-s.js
- * @description Strict Mode - SyntaxError is thrown when 'arguments' occurs as the Identifier in a PropertySetParameterList of a PropertyAssignment that is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var obj = {set _11_1_5_2_fun(arguments) {} };");
- return false;
- } catch (e) {
- return (e instanceof SyntaxError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when 'arguments' occurs as the + Identifier in a PropertySetParameterList of a PropertyAssignment + that is contained in strict code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("var obj = {set _11_1_5_2_fun(arguments) {} };"); + return false; + } catch (e) { + return (e instanceof SyntaxError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-2gs.js b/test/suite/ch11/11.1/11.1.5/11.1.5-2gs.js index f45f20b51..f2f0793e1 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-2gs.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-2gs.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5-2gs.js
- * @description Strict Mode - SyntaxError is thrown when eval code contains an ObjectLiteral with more than one definition of any data property
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-var obj = { _11_1_5_2_gs: 10, _11_1_5_2_gs: 10 };
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when eval code contains an + ObjectLiteral with more than one definition of any data property +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +var obj = { _11_1_5_2_gs: 10, _11_1_5_2_gs: 10 }; diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-3-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5-3-s.js index 72219037e..d08afb2be 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-3-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-3-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5-3-s.js
- * @description Strict Mode - SyntaxError is thrown when 'evals' occurs as the Identifier in a PropertySetParameterList of a PropertyAssignment if its FunctionBody is strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var obj = {set _11_1_5_3_fun(eval) { \"use strict\"; }};");
- return false;
- } catch (e) {
- return (e instanceof SyntaxError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when 'evals' occurs as the + Identifier in a PropertySetParameterList of a PropertyAssignment + if its FunctionBody is strict code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + eval("var obj = {set _11_1_5_3_fun(eval) { \"use strict\"; }};"); + return false; + } catch (e) { + return (e instanceof SyntaxError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js index a192b85e4..29c078132 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true
- *
- * @path ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js
- * @description Object literal - SyntaxError for duplicate date property name in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try
- {
- eval("'use strict'; ({foo:0,foo:1});");
- return false;
- }
- catch(e)
- {
- return (e instanceof SyntaxError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true +description: > + Object literal - SyntaxError for duplicate date property name in + strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + try + { + eval("'use strict'; ({foo:0,foo:1});"); + return false; + } + catch(e) + { + return (e instanceof SyntaxError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5-4-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5-4-s.js index 8e4185c91..0248eba61 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5-4-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5-4-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5-4-s.js
- * @description Strict Mode - SyntaxError is thrown when 'arguments' occurs as the Identifier in a PropertySetParameterList of a PropertyAssignment if its FunctionBody is strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var obj = {set _11_1_5_4_fun(arguments) {\"use strict\";}};");
- return false;
- } catch (e) {
- return (e instanceof SyntaxError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when 'arguments' occurs as + the Identifier in a PropertySetParameterList of a + PropertyAssignment if its FunctionBody is strict code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + eval("var obj = {set _11_1_5_4_fun(arguments) {\"use strict\";}};"); + return false; + } catch (e) { + return (e instanceof SyntaxError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_3-3-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_3-3-1.js index 54b381128..c68a124e6 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_3-3-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_3-3-1.js @@ -1,31 +1,34 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyAssignment
- * 3.Call the [[DefineOwnProperty]] internal method of obj with arguments propId.name, propId.descriptor, and false.
- *
- * @path ch11/11.1/11.1.5/11.1.5_3-3-1.js
- * @description Object initialization using PropertyNameAndValueList (PropertyAssignment) when property (read-only) exists in Object.prototype (step 3)
- */
-
-
-function testcase() {
- try {
- Object.defineProperty(Object.prototype, "prop", {
- value: 100,
- writable: false,
- configurable: true
- });
- var obj = { prop: 12 };
-
- return obj.hasOwnProperty("prop") && obj.prop === 12;
- } finally {
- delete Object.prototype.prop;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyAssignment + 3.Call the [[DefineOwnProperty]] internal method of obj with arguments propId.name, propId.descriptor, and false. +description: > + Object initialization using PropertyNameAndValueList + (PropertyAssignment) when property (read-only) exists in + Object.prototype (step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.defineProperty(Object.prototype, "prop", { + value: 100, + writable: false, + configurable: true + }); + var obj = { prop: 12 }; + + return obj.hasOwnProperty("prop") && obj.prop === 12; + } finally { + delete Object.prototype.prop; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-2.js index 837c309b3..8864f0f09 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-2.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-a-2.js
- * @description Object literal - Duplicate data property name allowed if not in strict mode
- */
-
-
-function testcase() {
-
- eval("({foo:0,foo:1});");
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true +description: > + Object literal - Duplicate data property name allowed if not in + strict mode +includes: [runTestCase.js] +---*/ + +function testcase() { + + eval("({foo:0,foo:1});"); + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-3.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-3.js index 9d37ec89d..2c516a511 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-3.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-a-3.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-a-3.js
- * @description Object literal - Duplicate data property name allowed gets last defined value
- */
-
-
-function testcase() {
-
- var o = eval("({foo:0,foo:1});");
- return o.foo===1;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true +description: > + Object literal - Duplicate data property name allowed gets last + defined value +includes: [runTestCase.js] +---*/ + +function testcase() { + + var o = eval("({foo:0,foo:1});"); + return o.foo===1; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-1.js index 9eb9c6dd4..b17759d4b 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-1.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true.
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-b-1.js
- * @description Object literal - SyntaxError if a data property definition is followed by get accessor definition with the same name
- */
-
-
-function testcase() {
- try
- {
- eval("({foo : 1, get foo(){}});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true. +description: > + Object literal - SyntaxError if a data property definition is + followed by get accessor definition with the same name +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({foo : 1, get foo(){}});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-2.js index 39ace4e17..a0bdf2ab7 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-b-2.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true.
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-b-2.js
- * @description Object literal - SyntaxError if a data property definition is followed by set accessor definition with the same name
- */
-
-
-function testcase() {
- try
- {
- eval("({foo : 1, set foo(x){}});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true. +description: > + Object literal - SyntaxError if a data property definition is + followed by set accessor definition with the same name +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({foo : 1, set foo(x){}});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-1.js index b194489e0..89fac1a63 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-1.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true.
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-c-1.js
- * @description Object literal - SyntaxError if a get accessor property definition is followed by a data property definition with the same name
- */
-
-
-function testcase() {
- try
- {
- eval("({get foo(){}, foo : 1});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true. +description: > + Object literal - SyntaxError if a get accessor property definition + is followed by a data property definition with the same name +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({get foo(){}, foo : 1});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-2.js index 17b2080c3..f498a8563 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-c-2.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true.
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-c-2.js
- * @description Object literal - SyntaxError if a set accessor property definition is followed by a data property definition with the same name
- */
-
-
-function testcase() {
- try
- {
- eval("({set foo(x){}, foo : 1});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true. +description: > + Object literal - SyntaxError if a set accessor property definition + is followed by a data property definition with the same name +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({set foo(x){}, foo : 1});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-1.js index 3c08ae391..0cca2a4a2 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-1.js @@ -1,29 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-d-1.js
- * @description Object literal - SyntaxError for duplicate property name (get,get)
- */
-
-
-function testcase() {
- try
- {
- eval("({get foo(){}, get foo(){}});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields +description: Object literal - SyntaxError for duplicate property name (get,get) +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({get foo(){}, get foo(){}});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-2.js index cad28d876..025412a70 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-2.js @@ -1,29 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-d-2.js
- * @description Object literal - SyntaxError for duplicate property name (set,set)
- */
-
-
-function testcase() {
- try
- {
- eval("({set foo(arg){}, set foo(arg1){}});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields +description: Object literal - SyntaxError for duplicate property name (set,set) +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({set foo(arg){}, set foo(arg1){}});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-3.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-3.js index 8bfacb42e..c68a3e252 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-3.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-3.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-d-3.js
- * @description Object literal - SyntaxError for duplicate property name (get,set,get)
- */
-
-
-function testcase() {
- try
- {
- eval("({get foo(){}, set foo(arg){}, get foo(){}});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields +description: > + Object literal - SyntaxError for duplicate property name + (get,set,get) +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({get foo(){}, set foo(arg){}, get foo(){}});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-4.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-4.js index d43c0d18b..d9538edc2 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-4.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-4-d-4.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
- * d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-4-d-4.js
- * @description Object literal - SyntaxError for duplicate property name (set,get,set)
- */
-
-
-function testcase() {
- try
- {
- eval("({set foo(arg){}, get foo(){}, set foo(arg1){}});");
- return false;
- }
- catch(e)
- {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + d. IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true and either both previous and propId.descriptor have [[Get]] fields or both previous and propId.descriptor have [[Set]] fields +description: > + Object literal - SyntaxError for duplicate property name + (set,get,set) +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + eval("({set foo(arg){}, get foo(){}, set foo(arg1){}});"); + return false; + } + catch(e) + { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_4-5-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_4-5-1.js index ff06c134b..d0eaec986 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_4-5-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_4-5-1.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment
- * 5.Call the [[DefineOwnProperty]] internal method of obj with arguments propId.name, propId.descriptor, and false.
- *
- * @path ch11/11.1/11.1.5/11.1.5_4-5-1.js
- * @description Object initialization using PropertyNameAndValueList (PropertyNameAndValueList , PropertyAssignment) when property (read-only) exists in Object.prototype (Step 5)
- */
-
-
-function testcase() {
- try {
- Object.defineProperty(Object.prototype, "prop2", {
- value: 100,
- writable: false,
- configurable: true
- });
-
- var obj = { prop1: 101, prop2: 12 };
-
- return obj.hasOwnProperty("prop2");
- } finally {
- delete Object.prototype.prop2;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyNameAndValueList : PropertyNameAndValueList , PropertyAssignment + 5.Call the [[DefineOwnProperty]] internal method of obj with arguments propId.name, propId.descriptor, and false. +description: > + Object initialization using PropertyNameAndValueList + (PropertyNameAndValueList , PropertyAssignment) when property + (read-only) exists in Object.prototype (Step 5) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.defineProperty(Object.prototype, "prop2", { + value: 100, + writable: false, + configurable: true + }); + + var obj = { prop1: 101, prop2: 12 }; + + return obj.hasOwnProperty("prop2"); + } finally { + delete Object.prototype.prop2; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_5-4-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_5-4-1.js index 7af0a34ec..60a8a8aba 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_5-4-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_5-4-1.js @@ -1,27 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyAssignment : PropertyName : AssignmentExpression
- * 4.Let desc be the Property Descriptor{[[Value]]: propValue, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true}
- *
- * @path ch11/11.1/11.1.5/11.1.5_5-4-1.js
- * @description Object literal - property descriptor for assignment expression
- */
-
-
-function testcase() {
-
- var o = {foo : 1};
- var desc = Object.getOwnPropertyDescriptor(o,"foo");
- if(desc.value === 1 &&
- desc.writable === true &&
- desc.enumerable === true &&
- desc.configurable === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyAssignment : PropertyName : AssignmentExpression + 4.Let desc be the Property Descriptor{[[Value]]: propValue, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true} +description: Object literal - property descriptor for assignment expression +includes: [runTestCase.js] +---*/ + +function testcase() { + + var o = {foo : 1}; + var desc = Object.getOwnPropertyDescriptor(o,"foo"); + if(desc.value === 1 && + desc.writable === true && + desc.enumerable === true && + desc.configurable === true) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-1-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-1-s.js index 090d90944..6729a4024 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-1-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-1-s.js @@ -1,30 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5_6-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown when an assignment to a reserved word or a future reserved word is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var obj = {\
- get _11_1_5_6_2_1() {\
- public = 42;\
- return public;\
- }\
- };");
-
- var _11_1_5_6_2_1 = obj._11_1_5_6_2_1;
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when an assignment to a + reserved word or a future reserved word is contained in strict code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("var obj = {\ + get _11_1_5_6_2_1() {\ + public = 42;\ + return public;\ + }\ + };"); + + var _11_1_5_6_2_1 = obj._11_1_5_6_2_1; + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-2-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-2-s.js index 32afa56ed..f47262455 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-2-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_6-2-2-s.js @@ -1,29 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5_6-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown when an assignment to a reserved word or a future reserved word is made inside a strict mode FunctionBody of a PropertyAssignment
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var obj = {\
- get _11_1_5_6_2_2() {\
- \"use strict\";\
- public = 42;\
- return public;\
- }\
- };\
- var _11_1_5_6_2_2 = obj._11_1_5_6_2_2;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when an assignment to a + reserved word or a future reserved word is made inside a strict + mode FunctionBody of a PropertyAssignment +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + eval("var obj = {\ + get _11_1_5_6_2_2() {\ + \"use strict\";\ + public = 42;\ + return public;\ + }\ + };\ + var _11_1_5_6_2_2 = obj._11_1_5_6_2_2;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-1.js index 6514561d9..40083f93a 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-1.js @@ -1,25 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyAssignment : get PropertyName ( ) { FunctionBody }
- * 3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true}
- *
- * @path ch11/11.1/11.1.5/11.1.5_6-3-1.js
- * @description Object literal - property descriptor for get property assignment
- */
-
-
-function testcase() {
-
- eval("var o = {get foo(){return 1;}};");
- var desc = Object.getOwnPropertyDescriptor(o,"foo");
- if(desc.enumerable === true &&
- desc.configurable === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyAssignment : get PropertyName ( ) { FunctionBody } + 3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true} +description: Object literal - property descriptor for get property assignment +includes: [runTestCase.js] +---*/ + +function testcase() { + + eval("var o = {get foo(){return 1;}};"); + var desc = Object.getOwnPropertyDescriptor(o,"foo"); + if(desc.enumerable === true && + desc.configurable === true) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-2.js index dc0665d69..29e86d259 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_6-3-2.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyAssignment : get PropertyName ( ) { FunctionBody }
- * 3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true}
- *
- * @path ch11/11.1/11.1.5/11.1.5_6-3-2.js
- * @description Object literal - property descriptor for get property assignment should not create a set function
- */
-
-
-function testcase() {
-
- eval("var o = {get foo(){return 1;}};");
- var desc = Object.getOwnPropertyDescriptor(o,"foo");
- return desc.set === undefined
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyAssignment : get PropertyName ( ) { FunctionBody } + 3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true} +description: > + Object literal - property descriptor for get property assignment + should not create a set function +includes: [runTestCase.js] +---*/ + +function testcase() { + + eval("var o = {get foo(){return 1;}};"); + var desc = Object.getOwnPropertyDescriptor(o,"foo"); + return desc.set === undefined + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-1-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-1-s.js index 71aacfa2e..57661d820 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-1-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-1-s.js @@ -1,30 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5_7-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown when an assignment to a reserved word is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var data = \"data\";\
- var obj = {\
- set _11_1_5_7_2_1(value) {\
- public = 42;\
- data = value;\
- }\
- };\
- obj._11_1_5_7_2_1 = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when an assignment to a + reserved word is contained in strict code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("var data = \"data\";\ + var obj = {\ + set _11_1_5_7_2_1(value) {\ + public = 42;\ + data = value;\ + }\ + };\ + obj._11_1_5_7_2_1 = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-2-s.js b/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-2-s.js index b351a43f7..4e3543449 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-2-s.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_7-2-2-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.1/11.1.5/11.1.5_7-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown when an assignment to a reserved word is made in a strict FunctionBody of a PropertyAssignment
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var data = \"data\";\
- var obj = {\
- set _11_1_5_7_2_2(value) {\
- public = 42;\
- data = value;\
- }\
- };\
- obj._11_1_5_7_2_2 = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when an assignment to a + reserved word is made in a strict FunctionBody of a + PropertyAssignment +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("var data = \"data\";\ + var obj = {\ + set _11_1_5_7_2_2(value) {\ + public = 42;\ + data = value;\ + }\ + };\ + obj._11_1_5_7_2_2 = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-1.js b/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-1.js index ae453873d..9e5eb24ca 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-1.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-1.js @@ -1,25 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyAssignment : set PropertyName( PropertySetParameterList ) { FunctionBody }
- * 3.Let desc be the Property Descriptor{[[Set]]: closure, [[Enumerable]]: true, [[Configurable]]: true}
- *
- * @path ch11/11.1/11.1.5/11.1.5_7-3-1.js
- * @description Object literal - property descriptor for set property assignment
- */
-
-
-function testcase() {
-
- eval("var o = {set foo(arg){return 1;}};");
- var desc = Object.getOwnPropertyDescriptor(o,"foo");
- if(desc.enumerable === true &&
- desc.configurable === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyAssignment : set PropertyName( PropertySetParameterList ) { FunctionBody } + 3.Let desc be the Property Descriptor{[[Set]]: closure, [[Enumerable]]: true, [[Configurable]]: true} +description: Object literal - property descriptor for set property assignment +includes: [runTestCase.js] +---*/ + +function testcase() { + + eval("var o = {set foo(arg){return 1;}};"); + var desc = Object.getOwnPropertyDescriptor(o,"foo"); + if(desc.enumerable === true && + desc.configurable === true) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-2.js b/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-2.js index 216f80a2e..3eaf8aae6 100644 --- a/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-2.js +++ b/test/suite/ch11/11.1/11.1.5/11.1.5_7-3-2.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 11.1.5;
- * The production
- * PropertyAssignment : get PropertyName ( ) { FunctionBody }
- * 3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true}
- *
- * @path ch11/11.1/11.1.5/11.1.5_7-3-2.js
- * @description Object literal - property descriptor for set property assignment should not create a get function
- */
-
-
-function testcase() {
-
- eval("var o = {set foo(arg){}};");
- var desc = Object.getOwnPropertyDescriptor(o,"foo");
- return desc.get === undefined
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + Refer 11.1.5; + The production + PropertyAssignment : get PropertyName ( ) { FunctionBody } + 3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true} +description: > + Object literal - property descriptor for set property assignment + should not create a get function +includes: [runTestCase.js] +---*/ + +function testcase() { + + eval("var o = {set foo(arg){}};"); + var desc = Object.getOwnPropertyDescriptor(o,"foo"); + return desc.get === undefined + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.1.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.1.js index 0f4a1936e..d8779bb53 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.1.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.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. -/** - * Evaluate the production ObjectLiteral: { } - * - * @path ch11/11.1/11.1.5/S11.1.5_A1.1.js - * @description Checking various properteis of the object defined with "var object = {}" - */ +/*--- +info: "Evaluate the production ObjectLiteral: { }" +description: > + Checking various properteis of the object defined with "var object + = {}" +---*/ var object = {}; @@ -29,4 +29,3 @@ if (object.toString !== Object.prototype.toString) { if (object.toString() !== "[object Object]") { $ERROR('#4: var object = {}; object.toString === "[object Object]". Actual: ' + (object.toString)); } - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.2.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.2.js index 9eff82640..f1deb0df6 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.2.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.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. -/** - * Evaluate the production ObjectLiteral: { NumericLiteral : AssignmentExpression} - * - * @path ch11/11.1/11.1.5/S11.1.5_A1.2.js - * @description Checking various properteis and contents of the object defined with "var object = {1 : true}" - */ +/*--- +info: > + Evaluate the production ObjectLiteral: { NumericLiteral : + AssignmentExpression} +description: > + Checking various properteis and contents of the object defined + with "var object = {1 : true}" +---*/ var object = {1 : true}; @@ -34,5 +36,3 @@ if (object[1] !== true) { if (object["1"] !== true) { $ERROR('#5: var object = {1 : true}; object["1"] === true'); } - - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.3.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.3.js index dea77e509..58673449a 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.3.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.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. -/** - * Evaluate the production ObjectLiteral: { StringLiteral : AssignmentExpression} - * - * @path ch11/11.1/11.1.5/S11.1.5_A1.3.js - * @description Checking various properteis and contents of the object defined with "var object = {"x" : true}" - */ +/*--- +info: > + Evaluate the production ObjectLiteral: { StringLiteral : + AssignmentExpression} +description: > + Checking various properteis and contents of the object defined + with "var object = {"x" : true}" +---*/ var object = {"x" : true}; @@ -34,4 +36,3 @@ if (object["x"] !== true) { if (object.x !== true) { $ERROR('#5: var object = {"x" : true}; object.x === true'); } - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.4.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.4.js index 5919596dc..3b2fdfdf2 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.4.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A1.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. -/** - * Evaluate the production ObjectLiteral: { Identifier : AssignmentExpression} - * - * @path ch11/11.1/11.1.5/S11.1.5_A1.4.js - * @description Checking various properteis and contents of the object defined with "var object = {prop : true}" - */ +/*--- +info: > + Evaluate the production ObjectLiteral: { Identifier : + AssignmentExpression} +description: > + Checking various properteis and contents of the object defined + with "var object = {prop : true}" +---*/ var object = {prop : true}; @@ -34,4 +36,3 @@ if (object["prop"] !== true) { if (object.prop !== true) { $ERROR('#5: var object = {prop : true}; object.prop === true'); } - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A2.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A2.js index 808578392..9f69e5761 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A2.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A2.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. -/** - * Evaluate the production ObjectLiteral: { PropertyName : AssignmentExpression } - * - * @path ch11/11.1/11.1.5/S11.1.5_A2.js - * @description Creating property "prop" of various types(boolean, number and etc.) - */ +/*--- +info: > + Evaluate the production ObjectLiteral: { PropertyName : + AssignmentExpression } +description: Creating property "prop" of various types(boolean, number and etc.) +---*/ //CHECK#1 var x = true; @@ -91,4 +91,3 @@ var object = {prop : x}; if (object.prop !== x) { $ERROR('#12: var x = this; var object = {prop : x}; object.prop === x. Actual: ' + (object.prop)); } - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A3.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A3.js index 1d0024a9f..a8c1abe93 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A3.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A3.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. -/** - * Evaluate the production ObjectLiteral: { PropertyNameAndValueList } - * - * @path ch11/11.1/11.1.5/S11.1.5_A3.js - * @description Creating the object defined with "var object = {0 : 1, "1" : "x", o : {}}" - */ +/*--- +info: "Evaluate the production ObjectLiteral: { PropertyNameAndValueList }" +description: > + Creating the object defined with "var object = {0 : 1, "1" : "x", + o : {}}" +---*/ var object = {0 : 1, "1" : "x", o : {}}; @@ -24,4 +24,3 @@ if (object["1"] !== "x") { if (typeof object.o !== "object") { $ERROR('#1: var object = {0 : 1; "1" : "x"; o : {}}; typeof object.o === "object". Actual: ' + (typeof object.o)); } - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.1.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.1.js index b1d2a2f90..8a8ba26fa 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.1.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.1.js @@ -1,13 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The PropertyName is not really a BooleanLiteral - * - * @path ch11/11.1/11.1.5/S11.1.5_A4.1.js - * @description Checking if execution of "var object = {true : 1}" does not fail - */ +/*--- +info: The PropertyName is not really a BooleanLiteral +description: "Checking if execution of \"var object = {true : 1}\" does not fail" +---*/ //CHECK#1 var object = {true : 1}; - diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.2.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.2.js index ebeb5fbc6..f8309e0cd 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.2.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_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. -/** - * The PropertyName is not really a nullLiteral - * - * @path ch11/11.1/11.1.5/S11.1.5_A4.2.js - * @description Checking if execution of "var object = {null : true}" does not fail - */ +/*--- +info: The PropertyName is not really a nullLiteral +description: "Checking if execution of \"var object = {null : true}\" does not fail" +---*/ //CHECK#1 var object = {null : true}; diff --git a/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.3.js b/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.3.js index 03c89ee99..3731ff692 100644 --- a/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.3.js +++ b/test/suite/ch11/11.1/11.1.5/S11.1.5_A4.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. -/** - * The PropertyName is undefined, ToString(BooleanLiteral), ToString(nullLiteral) - * - * @path ch11/11.1/11.1.5/S11.1.5_A4.3.js - * @description Creating properties with following names: undefined, 'true', 'null' - */ +/*--- +info: > + The PropertyName is undefined, ToString(BooleanLiteral), + ToString(nullLiteral) +description: "Creating properties with following names: undefined, 'true', 'null'" +---*/ //CHECK#1 var object = {undefined : true}; @@ -31,4 +31,3 @@ var object = {"null" : true}; if (object["null"] !== true) { $ERROR('#4: var object = {"null" : true}; object["null"] === true'); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A1.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A1.js index d6b8323a8..085a51a4f 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A1.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_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 inside "grouping" operator are allowed - * - * @path ch11/11.1/11.1.6/S11.1.6_A1.js - * @description Inserting WhiteSpaces and LineTerminators into grouping operator. Eval is used - */ +/*--- +info: White Space and Line Terminator inside "grouping" operator are allowed +description: > + Inserting WhiteSpaces and LineTerminators into grouping operator. + Eval is used +---*/ //CHECK#1 if (eval("(\u00091\u0009)") !== 1) { @@ -57,4 +57,3 @@ if (eval("(\u20291\u2029)") !== 1) { if (eval("(\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029)") !== 1) { $ERROR('#10: (\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029) === 1'); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A2.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A2.js index 30d5c290c..11b2c87fe 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A2.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A2.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. -/** - * "This" operator doesn't use GetValue. The operators "delete" and "typeof" can be applied to parenthesised expressions - * - * @path ch11/11.1/11.1.6/S11.1.6_A2.js - * @description Applying "delete" and "typeof" operators to an undefined variable and a property of an object - */ +/*--- +info: > + "This" operator doesn't use GetValue. The operators "delete" and "typeof" + can be applied to parenthesised expressions +description: > + Applying "delete" and "typeof" operators to an undefined variable + and a property of an object +---*/ //CHECK#1 if (delete (x) !== true) { @@ -28,4 +30,3 @@ if (delete (object.prop) !== true) { if (typeof (object.prop) !== "undefined") { $ERROR('#4: var object = {}; typeof (object.prop) === "undefined". Actual: ' + (typeof (object.prop))); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T1.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T1.js index 26a030104..20d40f132 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T1.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_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. -/** - * "This" operator only evaluates Expression - * - * @path ch11/11.1/11.1.6/S11.1.6_A3_T1.js - * @description Applying grouping operator to Boolean - */ +/*--- +info: "\"This\" operator only evaluates Expression" +description: Applying grouping operator to Boolean +---*/ // Check for Boolean @@ -20,4 +18,3 @@ var x = new Boolean(true); if ((x) !== x) { $ERROR('#2: var x = new Boolean(true); (x) === x. Actual: ' + ((x))); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T2.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T2.js index e29e039f4..98d0d7139 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T2.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_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. -/** - * "This" operator only evaluates Expression - * - * @path ch11/11.1/11.1.6/S11.1.6_A3_T2.js - * @description Applying grouping operator to Number - */ +/*--- +info: "\"This\" operator only evaluates Expression" +description: Applying grouping operator to Number +---*/ //Check for Number @@ -20,4 +18,3 @@ var x = new Number(1); if ((x) !== x) { $ERROR('#2: var x = new Number(1); (x) === x. Actual: ' + ((x))); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T3.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T3.js index a673bd31d..4dbaa9457 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T3.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_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. -/** - * "This" operator only evaluates Expression - * - * @path ch11/11.1/11.1.6/S11.1.6_A3_T3.js - * @description Applying grouping operator to String - */ +/*--- +info: "\"This\" operator only evaluates Expression" +description: Applying grouping operator to String +---*/ //Check for String @@ -25,4 +23,3 @@ var x = new Number("1"); if ((x) !== x) { $ERROR('#3: var x = new Number("1"); (x) === x. Actual: ' + ((x))); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T4.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T4.js index 2c049ccc9..e31d85a02 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T4.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_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. -/** - * "This" operator only evaluates Expression - * - * @path ch11/11.1/11.1.6/S11.1.6_A3_T4.js - * @description Applying grouping operator to undefined - */ +/*--- +info: "\"This\" operator only evaluates Expression" +description: Applying grouping operator to undefined +---*/ //Check for undefined and null @@ -24,4 +22,3 @@ if ((void 0) !== void 0) { if ((null) !== null) { $ERROR('#2: (null) === null. Actual: ' + ((null))); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T5.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T5.js index 6fe51bbe9..ea661e44f 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T5.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T5.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. -/** - * "This" operator only evaluates Expression - * - * @path ch11/11.1/11.1.6/S11.1.6_A3_T5.js - * @description Using grouping operator in declaration of variables - */ +/*--- +info: "\"This\" operator only evaluates Expression" +description: Using grouping operator in declaration of variables +---*/ //CHECK#1 (x) = 1; @@ -19,4 +17,3 @@ var y = 1; (y)++; ++(y); (y)--; --(y); if (y !== 1) { $ERROR('#2: var y = 1; (y)++; ++(y); (y)--; --(y); y === 1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T6.js b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T6.js index e4398bfff..3e51c62f4 100644 --- a/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T6.js +++ b/test/suite/ch11/11.1/11.1.6/S11.1.6_A3_T6.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. -/** - * "This" operator only evaluates Expression - * - * @path ch11/11.1/11.1.6/S11.1.6_A3_T6.js - * @description Applying grouping operator to delete and typeof operators - */ +/*--- +info: "\"This\" operator only evaluates Expression" +description: Applying grouping operator to delete and typeof operators +---*/ //CHECK#1 if (delete (x) !== true) { @@ -17,4 +15,3 @@ if (delete (x) !== true) { if (typeof (x) !== "undefined") { $ERROR('#2: typeof (x) === "undefined". Actual: ' + (typeof (x))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js index 25416cdca..224969173 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * White Space and Line Terminator between BitwiseANDExpression and "&" or between "&" and EqualityExpression are allowed - * - * @path ch11/11.10/11.10.1/S11.10.1_A1.js - * @description Checking uses eval - */ +/*--- +info: > + White Space and Line Terminator between BitwiseANDExpression and "&" or + between "&" and EqualityExpression are allowed +description: Checking uses eval +---*/ //CHECK#1 if ((eval("1\u0009&\u00091")) !== 1) { @@ -58,4 +58,3 @@ if ((eval("1\u2029&\u20291")) !== 1) { if ((eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029&\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 1) { $ERROR('#10: (1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029&\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 1'); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js index 4acb431bc..1260bcdf3 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y uses GetValue - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x & y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1 & 1) !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 1; if ((objectx.prop & objecty.prop) !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop & objecty.prop) === 1. Actual: ' + ((objectx.prop & objecty.prop))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js index 91f0369a6..2a67311bf 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y uses GetValue - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x & y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x & 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js index eb308b1b8..fc3708d69 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y uses GetValue - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x & y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: 1 & y throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js index b5aafe3d8..9bb925385 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y uses [[Default Value]] - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x & y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if (({valueOf: function() {return 1}} & 1) !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 & {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js index 079e2ccb4..6849fcdc3 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * ToInt32(first expression) is called first, and then ToInt32(second expression) - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.3_T1.js - * @description Checking by using "throw" - */ +/*--- +info: > + ToInt32(first expression) is called first, and then ToInt32(second + expression) +description: Checking by using "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js index c77c23d5d..4c3fafd5e 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 0; @@ -19,5 +17,3 @@ var x = 0; if ((x & (x = 1)) !== 0) { $ERROR('#2: var x = 0; (x & (x = 1)) === 0. Actual: ' + ((x & (x = 1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js index 23b8d91cf..4923ef8a6 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js index 2aef6019b..c9ea03c51 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.1/S11.10.1_A2.4_T3.js - * @description Checking with undeclarated variables - * @noStrict - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +flags: [noStrict] +---*/ //CHECK#1 try { @@ -24,5 +22,3 @@ catch (e) { if (((y = 1) & y) !== 1) { $ERROR('#2: ((y = 1) & y) === 1. Actual: ' + (((y = 1) & y))); } - - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js index 3818831d2..ac4ba597e 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T1.1.js - * @description Type(x) and Type(y) are primitive boolean and Boolean object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are primitive boolean and Boolean object +---*/ //CHECK#1 if ((true & true) !== 1) { @@ -27,4 +25,3 @@ if ((true & new Boolean(true)) !== 1) { if ((new Boolean(true) & new Boolean(true)) !== 1) { $ERROR('#4: (new Boolean(true) & new Boolean(true)) === 1. Actual: ' + ((new Boolean(true) & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js index 96f0a7c52..b0a38ce71 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T1.2.js - * @description Type(x) and Type(y) are primitive number and Number object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are primitive number and Number object +---*/ //CHECK#1 if ((1 & 1) !== 1) { @@ -27,5 +25,3 @@ if ((1 & new Number(1)) !== 1) { if ((new Number(1) & new Number(1)) !== 1) { $ERROR('#4: (new Number(1) & new Number(1)) === 1. Actual: ' + ((new Number(1) & new Number(1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js index e94451b58..4a7519bc7 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T1.3.js - * @description Type(x) and Type(y) are primitive string and String object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are primitive string and String object +---*/ //CHECK#1 if (("1" & "1") !== 1) { @@ -37,4 +35,3 @@ if (("x" & "1") !== 0) { if (("1" & "x") !== 0) { $ERROR('#6: ("1" & "x") === 0. Actual: ' + (("1" & "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js index ba187bd35..d5923d39b 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T1.4.js - * @description Type(x) and Type(y) are null and undefined - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are null and undefined +---*/ //CHECK#1 if ((null & undefined) !== 0) { @@ -27,4 +25,3 @@ if ((undefined & undefined) !== 0) { if ((null & null) !== 0) { $ERROR('#4: (null & null) === 0. Actual: ' + ((null & null))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js index 437336a4b..89a8105ce 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T1.5.js - * @description Type(x) and Type(y) are Object object and Function object - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: Type(x) and Type(y) are Object object and Function object +---*/ //CHECK#1 if (({} & function(){return 1}) !== 0) { @@ -27,5 +25,3 @@ if ((function(){return 1} & function(){return 1}) !== 0) { if (({} & {}) !== 0) { $ERROR('#4: ({} & {}) === 0. Actual: ' + (({} & {}))); } - - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js index 7a70acf5f..5b6865825 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true & 1) !== 1) { @@ -47,4 +47,3 @@ if ((new Boolean(true) & new Number(1)) !== 1) { if ((new Number(1) & new Boolean(true)) !== 1) { $ERROR('#8: (new Number(1) & new Boolean(true)) === 1. Actual: ' + ((new Number(1) & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js index 72765faf2..1810facb8 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if (("1" & 1) !== 1) { @@ -57,4 +57,3 @@ if (("x" & 1) !== 0) { if ((1 & "x") !== 0) { $ERROR('#10: (1 & "x") === 0. Actual: ' + ((1 & "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js index a133e1f43..02355d9d4 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if ((1 & null) !== 0) { @@ -27,4 +27,3 @@ if ((new Number(1) & null) !== 0) { if ((null & new Number(1)) !== 0) { $ERROR('#4: (null & new Number(1)) === 0. Actual: ' + ((null & new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js index 1ceb71fa0..157d116d9 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if ((1 & undefined) !== 0) { @@ -27,4 +27,3 @@ if ((new Number(1) & undefined) !== 0) { if ((undefined & new Number(1)) !== 0) { $ERROR('#4: (undefined & new Number(1)) === 0. Actual: ' + ((undefined & new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js index 3983069f4..fe8fe2862 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.5.js - * @description Type(x) us different from Type(y) and both types are String (primitive or object) or Boolean (primitive and object) - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) us different from Type(y) and both types are String + (primitive or object) or Boolean (primitive and object) +---*/ //CHECK#1 if ((true & "1") !== 1) { @@ -47,4 +47,3 @@ if ((new Boolean(true) & new String("1")) !== 1) { if ((new String("1") & new Boolean(true)) !== 1) { $ERROR('#8: (new String("1") & new Boolean(true)) === 1. Actual: ' + ((new String("1") & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js index b9f66bb79..63d58ebea 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 if (("1" & undefined) !== 0) { @@ -27,4 +27,3 @@ if ((new String("1") & undefined) !== 0) { if ((undefined & new String("1")) !== 0) { $ERROR('#4: (undefined & new String("1")) === 0. Actual: ' + ((undefined & new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js index 0dbabe1f0..97475fad7 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if (("1" & null) !== 0) { @@ -27,4 +27,3 @@ if ((new String("1") & null) !== 0) { if ((null & new String("1")) !== 0) { $ERROR('#4: (null & new String("1")) === 0. Actual: ' + ((null & new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js index 33eec3241..bb53bd827 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if ((true & undefined) !== 0) { @@ -27,4 +27,3 @@ if ((new Boolean(true) & undefined) !== 0) { if ((undefined & new Boolean(true)) !== 0) { $ERROR('#4: (undefined & new Boolean(true)) === 0. Actual: ' + ((undefined & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js index 9c94ad0e7..d2eb8268e 100644 --- a/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js +++ b/test/suite/ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x & y returns ToNumber(x) & ToNumber(y) - * - * @path ch11/11.10/11.10.1/S11.10.1_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x & y returns ToNumber(x) & ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if ((true & null) !== 0) { @@ -27,4 +27,3 @@ if ((new Boolean(true) & null) !== 0) { if ((null & new Boolean(true)) !== 0) { $ERROR('#4: (null & new Boolean(true)) === 0. Actual: ' + ((null & new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js index 6798a9ea4..a00206a81 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * White Space and Line Terminator between BitwiseXORExpression and "^" or between "^" and BitwiseANDExpression are allowed - * - * @path ch11/11.10/11.10.2/S11.10.2_A1.js - * @description The check uses eval - */ +/*--- +info: > + White Space and Line Terminator between BitwiseXORExpression and "^" or + between "^" and BitwiseANDExpression are allowed +description: The check uses eval +---*/ //CHECK#1 if ((eval("1\u0009^\u00091")) !== 0) { @@ -58,4 +58,3 @@ if ((eval("1\u2029^\u20291")) !== 0) { if ((eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029^\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 0) { $ERROR('#10: (1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029^\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 0'); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js index f4aad4a19..b69ed2d8f 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y uses GetValue - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x ^ y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1 ^ 1) !== 0) { @@ -40,5 +38,3 @@ objecty.prop = 1; if ((objectx.prop ^ objecty.prop) !== 0) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop ^ objecty.prop) === 0. Actual: ' + ((objectx.prop ^ objecty.prop))); } - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js index 503ac9678..2c03e64c4 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y uses GetValue - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x ^ y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x ^ 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js index 6c5969614..3dffea843 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y uses GetValue - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x ^ y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 ^ y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js index 0a00ada6d..1e059ac4e 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y uses [[Default Value]] - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x ^ y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if (({valueOf: function() {return 1}} ^ 1) !== 0) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 ^ {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js index cbf3009a1..d98fd7981 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * ToInt32(first expression) is called first, and then ToInt32(second expression) - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToInt32(first expression) is called first, and then ToInt32(second + expression) +description: Checking with "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js index e1af1b864..96ed61ec5 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 1; @@ -19,6 +17,3 @@ var x = 0; if ((x ^ (x = 1)) !== 1) { $ERROR('#2: var x = 0; (x ^ (x = 1)) === 1. Actual: ' + ((x ^ (x = 1)))); } - - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js index 5cc5a1540..6844ceb90 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js index 5241ec557..b916259ee 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.2/S11.10.2_A2.4_T3.js - * @description Checking with undeclarated variables - * @noStrict - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +flags: [noStrict] +---*/ //CHECK#1 try { @@ -24,6 +22,3 @@ catch (e) { if (((y = 1) ^ y) !== 0) { $ERROR('#2: ((y = 1) ^ y) === 0. Actual: ' + (((y = 1) ^ y))); } - - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js index e6466e784..c0350e625 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T1.1.js - * @description Type(x) and Type(y) are primitive boolean and Boolean object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are primitive boolean and Boolean object +---*/ //CHECK#1 if ((true ^ true) !== 0) { @@ -27,4 +25,3 @@ if ((true ^ new Boolean(true)) !== 0) { if ((new Boolean(true) ^ new Boolean(true)) !== 0) { $ERROR('#4: (new Boolean(true) ^ new Boolean(true)) === 0. Actual: ' + ((new Boolean(true) ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js index 9b997e82f..043e61749 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T1.2.js - * @description Type(x) and Type(y) are primitive number and Number object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are primitive number and Number object +---*/ //CHECK#1 if ((1 ^ 1) !== 0) { @@ -27,5 +25,3 @@ if ((1 ^ new Number(1)) !== 0) { if ((new Number(1) ^ new Number(1)) !== 0) { $ERROR('#4: (new Number(1) ^ new Number(1)) === 0. Actual: ' + ((new Number(1) ^ new Number(1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js index acd61cf11..51a8ac49d 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T1.3.js - * @description Type(x) and Type(y) are primitive string and String object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are primitive string and String object +---*/ //CHECK#1 if (("1" ^ "1") !== 0) { @@ -37,4 +35,3 @@ if (("x" ^ "1") !== 1) { if (("1" ^ "x") !== 1) { $ERROR('#6: ("1" ^ "x") === 1. Actual: ' + (("1" ^ "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js index 72698a656..d259ee4c5 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T1.4.js - * @description Type(x) and Type(y) are null and undefined - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are null and undefined +---*/ //CHECK#1 if ((null ^ undefined) !== 0) { @@ -27,4 +25,3 @@ if ((undefined ^ undefined) !== 0) { if ((null ^ null) !== 0) { $ERROR('#4: (null ^ null) === 0. Actual: ' + ((null ^ null))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js index b415d1c75..b4fa4efe1 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T1.5.js - * @description Type(x) and Type(y) are Object object and Function object - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: Type(x) and Type(y) are Object object and Function object +---*/ //CHECK#1 if (({} ^ function(){return 1}) !== 0) { @@ -27,5 +25,3 @@ if ((function(){return 1} ^ function(){return 1}) !== 0) { if (({} ^ {}) !== 0) { $ERROR('#4: ({} ^ {}) === 0. Actual: ' + (({} ^ {}))); } - - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js index c32718b6e..e13655a4e 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true ^ 1) !== 0) { @@ -47,4 +47,3 @@ if ((new Boolean(true) ^ new Number(1)) !== 0) { if ((new Number(1) ^ new Boolean(true)) !== 0) { $ERROR('#8: (new Number(1) ^ new Boolean(true)) === 0. Actual: ' + ((new Number(1) ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js index 1503fbaf5..df55b7193 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if (("1" ^ 1) !== 0) { @@ -57,4 +57,3 @@ if (("x" ^ 1) !== 1) { if ((1 ^ "x") !== 1) { $ERROR('#10: (1 ^ "x") === 1. Actual: ' + ((1 ^ "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js index 7944312eb..cebb94e6d 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if ((1 ^ null) !== 1) { @@ -27,4 +27,3 @@ if ((new Number(1) ^ null) !== 1) { if ((null ^ new Number(1)) !== 1) { $ERROR('#4: (null ^ new Number(1)) === 1. Actual: ' + ((null ^ new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js index 6578ce84d..948a4265a 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if ((1 ^ undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new Number(1) ^ undefined) !== 1) { if ((undefined ^ new Number(1)) !== 1) { $ERROR('#4: (undefined ^ new Number(1)) === 1. Actual: ' + ((undefined ^ new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js index 2e80dfef2..7b37a130b 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true ^ "1") !== 0) { @@ -47,4 +47,3 @@ if ((new Boolean(true) ^ new String("1")) !== 0) { if ((new String("1") ^ new Boolean(true)) !== 0) { $ERROR('#8: (new String("1") ^ new Boolean(true)) === 0. Actual: ' + ((new String("1") ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js index b433b597e..7c1b463c5 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 if (("1" ^ undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new String("1") ^ undefined) !== 1) { if ((undefined ^ new String("1")) !== 1) { $ERROR('#4: (undefined ^ new String("1")) === 1. Actual: ' + ((undefined ^ new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js index 17996c7b8..1027484ee 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if (("1" ^ null) !== 1) { @@ -27,4 +27,3 @@ if ((new String("1") ^ null) !== 1) { if ((null ^ new String("1")) !== 1) { $ERROR('#4: (null ^ new String("1")) === 1. Actual: ' + ((null ^ new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js index 36c1c1d23..0d6c5e1ce 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if ((true ^ undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new Boolean(true) ^ undefined) !== 1) { if ((undefined ^ new Boolean(true)) !== 1) { $ERROR('#4: (undefined ^ new Boolean(true)) === 1. Actual: ' + ((undefined ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js index 6a9d6cb0d..9d7e4350c 100644 --- a/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js +++ b/test/suite/ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ^ y returns ToNumber(x) ^ ToNumber(y) - * - * @path ch11/11.10/11.10.2/S11.10.2_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if ((true ^ null) !== 1) { @@ -27,4 +27,3 @@ if ((new Boolean(true) ^ null) !== 1) { if ((null ^ new Boolean(true)) !== 1) { $ERROR('#4: (null ^ new Boolean(true)) === 1. Actual: ' + ((null ^ new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js index 193860824..146b4c1fd 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * White Space and Line Terminator between BitwiseORExpression and "|" or between "|" and BitwiseXORExpression are allowed - * - * @path ch11/11.10/11.10.3/S11.10.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between BitwiseORExpression and "|" or + between "|" and BitwiseXORExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if ((eval("0\u0009|\u00091")) !== 1) { @@ -58,4 +58,3 @@ if ((eval("0\u2029|\u20291")) !== 1) { if ((eval("0\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029|\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 1) { $ERROR('#10: (0\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029|\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 1'); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js index 4c39440fe..b4b26fb5a 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y uses GetValue - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x | y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1 | 0) !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 0; if ((objectx.prop | objecty.prop) !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 0; (objectx.prop | objecty.prop) === 1. Actual: ' + ((objectx.prop | objecty.prop))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js index 38886529f..3ebc8ed5b 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y uses GetValue - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x | y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x | 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js index 313ea9588..1514d4cb4 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y uses GetValue - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x | y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 | y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js index 1c7331411..2f67e3c9a 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y uses [[Default Value]] - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x | y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if (({valueOf: function() {return 1}} | 0) !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 0 | {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js index fe60b24d1..84e664cac 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * ToInt32(first expression) is called first, and then ToInt32(second expression) - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToInt32(first expression) is called first, and then ToInt32(second + expression) +description: Checking with "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js index 4c5705d00..f1f32f3d9 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 1; @@ -19,4 +17,3 @@ var x = 1; if ((x | (x = 0)) !== 1) { $ERROR('#2: var x = 1; (x | (x = 0)) === 1. Actual: ' + ((x | (x = 0)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js index 886ae2af5..a481f8399 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js index 975bba911..4beb31e79 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.10/11.10.3/S11.10.3_A2.4_T3.js - * @description Checking with undeclarated variables - * @noStrict - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +flags: [noStrict] +---*/ //CHECK#1 try { @@ -24,4 +22,3 @@ catch (e) { if (((y = 1) | y) !== 1) { $ERROR('#2: ((y = 1) | y) === 1. Actual: ' + (((y = 1) | y))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js index bdf1dddd2..5fc23ac90 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if ((true | true) !== 1) { @@ -27,4 +27,3 @@ if ((true | new Boolean(true)) !== 1) { if ((new Boolean(true) | new Boolean(true)) !== 1) { $ERROR('#4: (new Boolean(true) | new Boolean(true)) === 1. Actual: ' + ((new Boolean(true) | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js index 057a8fd55..0b8e19636 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if ((1 | 1) !== 1) { @@ -27,5 +25,3 @@ if ((1 | new Number(1)) !== 1) { if ((new Number(1) | new Number(1)) !== 1) { $ERROR('#4: (new Number(1) | new Number(1)) === 1. Actual: ' + ((new Number(1) | new Number(1)))); } - - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js index f62798951..ff08dc8fd 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if (("1" | "1") !== 1) { @@ -37,4 +35,3 @@ if (("x" | "1") !== 1) { if (("1" | "x") !== 1) { $ERROR('#6: ("1" | "x") === 1. Actual: ' + (("1" | "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js index 1fcf3aea4..17b6211f1 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 if ((null | undefined) !== 0) { @@ -27,4 +25,3 @@ if ((undefined | undefined) !== 0) { if ((null | null) !== 0) { $ERROR('#4: (null | null) === 0. Actual: ' + ((null | null))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js index c3df41a2c..ecca0c182 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T1.5.js - * @description Type(x) and Type(y) vary between Object object and Function object - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: Type(x) and Type(y) vary between Object object and Function object +---*/ //CHECK#1 if (({} | function(){return 1}) !== 0) { @@ -27,5 +25,3 @@ if ((function(){return 1} | function(){return 1}) !== 0) { if (({} | {}) !== 0) { $ERROR('#4: ({} | {}) === 0. Actual: ' + (({} | {}))); } - - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js index a54f2dbdf..dc336b1e1 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true | 1) !== 1) { @@ -47,4 +47,3 @@ if ((new Boolean(true) | new Number(1)) !== 1) { if ((new Number(1) | new Boolean(true)) !== 1) { $ERROR('#8: (new Number(1) | new Boolean(true)) === 1. Actual: ' + ((new Number(1) | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js index 78795a543..1dc3817d2 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if (("1" | 1) !== 1) { @@ -57,4 +57,3 @@ if (("x" | 1) !== 1) { if ((1 | "x") !== 1) { $ERROR('#10: (1 | "x") === 1. Actual: ' + ((1 | "x"))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js index c01d6e726..85aba2820 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if ((1 | null) !== 1) { @@ -27,4 +27,3 @@ if ((new Number(1) | null) !== 1) { if ((null | new Number(1)) !== 1) { $ERROR('#4: (null | new Number(1)) === 1. Actual: ' + ((null | new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js index eb7d1432a..576e07810 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if ((1 | undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new Number(1) | undefined) !== 1) { if ((undefined | new Number(1)) !== 1) { $ERROR('#4: (undefined | new Number(1)) === 1. Actual: ' + ((undefined | new Number(1)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js index 3195c149d..29a6dfded 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if ((true | "1") !== 1) { @@ -47,4 +47,3 @@ if ((new Boolean(true) | new String("1")) !== 1) { if ((new String("1") | new Boolean(true)) !== 1) { $ERROR('#8: (new String("1") | new Boolean(true)) === 1. Actual: ' + ((new String("1") | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js index c6aeffafd..59616b2cf 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 if (("1" | undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new String("1") | undefined) !== 1) { if ((undefined | new String("1")) !== 1) { $ERROR('#4: (undefined | new String("1")) === 1. Actual: ' + ((undefined | new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js index fc0e39bb9..4d0df0fef 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if (("1" | null) !== 1) { @@ -27,4 +27,3 @@ if ((new String("1") | null) !== 1) { if ((null | new String("1")) !== 1) { $ERROR('#4: (null | new String("1")) === 1. Actual: ' + ((null | new String("1")))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js index 4208476dd..406c71443 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if ((true | undefined) !== 1) { @@ -27,4 +27,3 @@ if ((new Boolean(true) | undefined) !== 1) { if ((undefined | new Boolean(true)) !== 1) { $ERROR('#4: (undefined | new Boolean(true)) === 1. Actual: ' + ((undefined | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js index 2c892773b..e1eb94be1 100644 --- a/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js +++ b/test/suite/ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x | y returns ToNumber(x) | ToNumber(y) - * - * @path ch11/11.10/11.10.3/S11.10.3_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x | y returns ToNumber(x) | ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if ((true | null) !== 1) { @@ -27,4 +27,3 @@ if ((new Boolean(true) | null) !== 1) { if ((null | new Boolean(true)) !== 1) { $ERROR('#4: (null | new Boolean(true)) === 1. Actual: ' + ((null | new Boolean(true)))); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A1.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A1.js index 71ff7400e..940b5ef80 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A1.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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 LogicalANDExpression and "&&" or between "&&" and BitwiseORExpression are allowed - * - * @path ch11/11.11/11.11.1/S11.11.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between LogicalANDExpression and "&&" or + between "&&" and BitwiseORExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if ((eval("true\u0009&&\u0009true")) !== true) { @@ -58,4 +58,3 @@ if ((eval("true\u2029&&\u2029true")) !== true) { if ((eval("true\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029&&\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) { $ERROR('#10: (true\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029&&\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T1.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T1.js index f637f4d73..a127a777e 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T1.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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.11/11.11.1/S11.11.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 ((false && true) !== false) { @@ -61,4 +59,3 @@ objecty.prop = true; if ((objectx.prop && objecty.prop) !== objectx.prop) { $ERROR('#8: var objectx = new Object(); var objecty = new Object(); objectx.prop = 0; objecty.prop = true; (objectx.prop && objecty.prop) === objectx.prop'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T2.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T2.js index 3c3585d1e..e90d9572b 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T2.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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.11/11.11.1/S11.11.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 && true throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T3.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T3.js index 65eb292aa..1763d951f 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T3.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T3.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 uses GetValue - * - * @path ch11/11.11/11.11.1/S11.11.1_A2.1_T3.js - * @description If ToBoolean(x) is true and GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x && y uses GetValue +description: > + If ToBoolean(x) is true and GetBase(y) is null, throw + ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: true && y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T4.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T4.js index e58d74ed2..7feb80665 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T4.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.1_T4.js @@ -1,15 +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 uses GetValue - * - * @path ch11/11.11/11.11.1/S11.11.1_A2.1_T4.js - * @description If ToBoolean(x) is false and GetBase(y) is null, return false - */ +/*--- +info: Operator x && y uses GetValue +description: If ToBoolean(x) is false and GetBase(y) is null, return false +---*/ //CHECK#1 if ((false && x) !== false) { $ERROR('#1: (false && x) === false'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T1.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T1.js index 44fad0ce8..c66468b7c 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T1.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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.11/11.11.1/S11.11.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 = false; @@ -19,5 +17,3 @@ var x = false; if ((x && (x = true)) !== false) { $ERROR('#2: var x = false; (x && (x = true)) === false'); } - - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T2.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T2.js index b5efeee14..1adaddbc3 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T2.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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.11/11.11.1/S11.11.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.11/11.11.1/S11.11.1_A2.4_T3.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T3.js index cf973f0ff..632995001 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T3.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A2.4_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.11/11.11.1/S11.11.1_A2.4_T3.js - * @description Checking with undeclarated variables - * @noStrict - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +flags: [noStrict] +---*/ //CHECK#1 try { @@ -24,5 +22,3 @@ catch (e) { if (((y = true) && y) !== true) { $ERROR('#2: ((y = true) && y) === true'); } - - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T1.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T1.js index 8274f3c61..b0472ed6f 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T1.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_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. -/** - * If ToBoolean(x) is false, return x - * - * @path ch11/11.11/11.11.1/S11.11.1_A3_T1.js - * @description Type(x) is primitive boolean and Type(y) is changed between primitive boolean and Boolean object - */ +/*--- +info: If ToBoolean(x) is false, return x +description: > + Type(x) is primitive boolean and Type(y) is changed between + primitive boolean and Boolean object +---*/ //CHECK#1 if ((false && true) !== false) { @@ -27,4 +27,3 @@ if ((false && new Boolean(true)) !== false) { if ((false && new Boolean(false)) !== false) { $ERROR('#4: (false && new Boolean(false)) === false'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T2.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T2.js index 01d206b5e..a1ba9083c 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T2.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_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. -/** - * If ToBoolean(x) is false, return x - * - * @path ch11/11.11/11.11.1/S11.11.1_A3_T2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: If ToBoolean(x) is false, return x +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if ((-0 && -1) !== 0) { @@ -30,4 +28,3 @@ if ((0 && new Number(-1)) !== 0) { if ((isNaN(NaN && 1)) !== true) { $ERROR('#3: (NaN && 1) === Not-a-Number'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T3.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T3.js index 034f9e2d8..2c96f8685 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T3.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_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. -/** - * If ToBoolean(x) is false, return x - * - * @path ch11/11.11/11.11.1/S11.11.1_A3_T3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: If ToBoolean(x) is false, return x +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if (("" && "1") !== "") { @@ -17,4 +15,3 @@ if (("" && "1") !== "") { if (("" && new String("1")) !== "") { $ERROR('#2: ("" && new String("1")) === ""'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T4.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T4.js index 1a10a4ce4..176a3b2b2 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_T4.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A3_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. -/** - * If ToBoolean(x) is false, return x - * - * @path ch11/11.11/11.11.1/S11.11.1_A3_T4.js - * @description Type(x) or Type(y) is changed between null and undefined - */ +/*--- +info: If ToBoolean(x) is false, return x +description: Type(x) or Type(y) is changed between null and undefined +---*/ //CHECK#1 if ((undefined && true) !== undefined) { @@ -17,4 +15,3 @@ if ((undefined && true) !== undefined) { if ((null && false) !== null) { $ERROR('#2: (null && false) === null'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T1.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T1.js index 82f45be1f..0c2c3e5d4 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T1.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.11/11.11.1/S11.11.1_A4_T1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: If ToBoolean(x) is true, return y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if ((true && true) !== true) { @@ -41,4 +41,3 @@ var y = new Boolean(false); if ((new Boolean(false) && y) !== y) { $ERROR('#6: (var y = new Boolean(false); (new Boolean(false) && y) === y'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T2.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T2.js index 5aaea6dce..aa4d63931 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T2.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.11/11.11.1/S11.11.1_A4_T2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if ((-1 && -0) !== 0) { @@ -48,4 +46,3 @@ var y = new Number(-1); if ((new Number(NaN) && y) !== y) { $ERROR('#6: (var y = new Number(-1); (new Number(NaN) && y) === y'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T3.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T3.js index 1ae1808d1..e7ad653cb 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T3.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.11/11.11.1/S11.11.1_A4_T3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if (("0" && "-1") !== "-1") { @@ -41,4 +39,3 @@ var y = new String(-1); if ((new String(NaN) && y) !== y) { $ERROR('#6: (var y = new String(-1); (new String(NaN) && y) === y'); } - diff --git a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T4.js b/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T4.js index 109744386..a377db3bd 100644 --- a/test/suite/ch11/11.11/11.11.1/S11.11.1_A4_T4.js +++ b/test/suite/ch11/11.11/11.11.1/S11.11.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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.11/11.11.1/S11.11.1_A4_T4.js - * @description Type(x) or Type(y) is changed between null and undefined - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(x) or Type(y) is changed between null and undefined +---*/ //CHECK#1 if ((true && undefined) !== undefined) { @@ -17,4 +15,3 @@ if ((true && undefined) !== undefined) { if ((true && null) !== null) { $ERROR('#2: (true && null) === null'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A1.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A1.js index 904d903e8..71f835dae 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A1.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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 LogicalORExpression and "||" or between "||" and LogicalANDExpression are allowed - * - * @path ch11/11.11/11.11.2/S11.11.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between LogicalORExpression and "||" or + between "||" and LogicalANDExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if ((eval("false\u0009||\u0009true")) !== true) { @@ -58,4 +58,3 @@ if ((eval("false\u2029||\u2029true")) !== true) { if ((eval("false\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029||\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) { $ERROR('#10: (false\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029||\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T1.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T1.js index 2c79c2a5c..c8207792c 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T1.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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.11/11.11.2/S11.11.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 ((true || false) !== true) { @@ -61,4 +59,3 @@ objecty.prop = false; if ((objectx.prop || objecty.prop) !== objectx.prop) { $ERROR('#8: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1.1; objecty.prop = false; (objectx.prop || objecty.prop) === objectx.prop'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T2.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T2.js index 7c3e74364..0bc31f834 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T2.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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.11/11.11.2/S11.11.2_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x || y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x || true throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T3.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T3.js index 1535d1ca6..88e558538 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T3.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.11/11.11.2/S11.11.2_A2.1_T3.js - * @description If ToBoolean(x) is false and GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x || y uses GetValue +description: > + If ToBoolean(x) is false and GetBase(y) is null, throw + ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: false || y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T4.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T4.js index 47101ac90..1497dadb2 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T4.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.1_T4.js @@ -1,15 +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 uses GetValue - * - * @path ch11/11.11/11.11.2/S11.11.2_A2.1_T4.js - * @description If ToBoolean(x) is true and GetBase(y) is null, return true - */ +/*--- +info: Operator x || y uses GetValue +description: If ToBoolean(x) is true and GetBase(y) is null, return true +---*/ //CHECK#1 if ((true || x) !== true) { $ERROR('#1: (true || x) === true'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T1.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T1.js index fd60270da..ab4a92ec3 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T1.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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.11/11.11.2/S11.11.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 = true; @@ -19,4 +17,3 @@ var x = true; if ((x || (x = false)) !== true) { $ERROR('#2: var x = true; (x || (x = false)) === true'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T2.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T2.js index 5d2ca6568..a0cf377c3 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T2.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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.11/11.11.2/S11.11.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.11/11.11.2/S11.11.2_A2.4_T3.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T3.js index c818312c8..0d34dafc7 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T3.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A2.4_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.11/11.11.2/S11.11.2_A2.4_T3.js - * @description Checking with undeclarated variables - * @noStrict - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +flags: [noStrict] +---*/ //CHECK#1 try { @@ -24,5 +22,3 @@ catch (e) { if (((y = true) || y) !== true) { $ERROR('#2: ((y = true) || y) === true'); } - - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T1.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T1.js index d03958565..f4e328c57 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T1.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_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. -/** - * If ToBoolean(x) is false, return y - * - * @path ch11/11.11/11.11.2/S11.11.2_A3_T1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: If ToBoolean(x) is false, return y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if ((false || true) !== true) { @@ -29,4 +29,3 @@ var y = new Boolean(false); if ((false || y) !== y) { $ERROR('#4: (var y = new Boolean(false); false || y) === y'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T2.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T2.js index dccc098d2..171d564b8 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T2.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_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. -/** - * If ToBoolean(x) is false, return y - * - * @path ch11/11.11/11.11.2/S11.11.2_A3_T2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: If ToBoolean(x) is false, return y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if ((0 || -0) !== 0) { @@ -37,4 +35,3 @@ var y = new Number(0); if ((NaN || y) !== y) { $ERROR('#4: (var y = new Number(0); NaN || y) === y'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T3.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T3.js index 6e500ede8..38adfd081 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T3.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_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. -/** - * If ToBoolean(x) is false, return y - * - * @path ch11/11.11/11.11.2/S11.11.2_A3_T3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: If ToBoolean(x) is false, return y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if (("" || "1") !== "1") { @@ -18,4 +16,3 @@ var y = new String("1"); if (("" || y) !== y) { $ERROR('#2: (var y = new String("1"); "" || y) === y'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T4.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T4.js index 15b5579af..4b655ef97 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_T4.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A3_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. -/** - * If ToBoolean(x) is false, return y - * - * @path ch11/11.11/11.11.2/S11.11.2_A3_T4.js - * @description Type(x) or Type(y) is changed between null and undefined - */ +/*--- +info: If ToBoolean(x) is false, return y +description: Type(x) or Type(y) is changed between null and undefined +---*/ //CHECK#1 if ((false || undefined) !== undefined) { @@ -17,4 +15,3 @@ if ((false || undefined) !== undefined) { if ((false || null) !== null) { $ERROR('#2: (false || null) === null'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T1.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T1.js index 567fbf522..e313797a6 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T1.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_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. -/** - * If ToBoolean(x) is true, return x - * - * @path ch11/11.11/11.11.2/S11.11.2_A4_T1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: If ToBoolean(x) is true, return x +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if (((true || true)) !== true) { @@ -41,4 +41,3 @@ var x = new Boolean(false); if ((x || new Boolean(false)) !== x) { $ERROR('#6: (var x = new Boolean(false); (x || new Boolean(false)) === x'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T2.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T2.js index ff3c67a64..f3b928b64 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T2.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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. -/** - * If ToBoolean(x) is true, return x - * - * @path ch11/11.11/11.11.2/S11.11.2_A4_T2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: If ToBoolean(x) is true, return x +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if ((-1 || 1) !== -1) { @@ -40,4 +38,3 @@ var x = new Number(0); if ((x || new Number(NaN)) !== x) { $ERROR('#6: (var x = new Number(0); (x || new Number(NaN)) === x'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T3.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T3.js index ad71dfed7..d01735e82 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T3.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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. -/** - * If ToBoolean(x) is true, return x - * - * @path ch11/11.11/11.11.2/S11.11.2_A4_T3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: If ToBoolean(x) is true, return x +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if (("-1" || "1") !== "-1") { @@ -41,4 +39,3 @@ var x = new String(0); if ((x || new String(NaN)) !== x) { $ERROR('#6: (var x = new String(0); (x || new String(NaN)) === x'); } - diff --git a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T4.js b/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T4.js index d37b2ea59..3ee659e91 100644 --- a/test/suite/ch11/11.11/11.11.2/S11.11.2_A4_T4.js +++ b/test/suite/ch11/11.11/11.11.2/S11.11.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. -/** - * If ToBoolean(x) is true, return x - * - * @path ch11/11.11/11.11.2/S11.11.2_A4_T4.js - * @description Type(x) or Type(y) vary between Null and Undefined - */ +/*--- +info: If ToBoolean(x) is true, return x +description: Type(x) or Type(y) vary between Null and Undefined +---*/ //CHECK#1 if ((true || undefined) !== true) { @@ -17,4 +15,3 @@ if ((true || undefined) !== true) { if ((true || null) !== true) { $ERROR('#2: (true || null) === true'); } - diff --git a/test/suite/ch11/11.12/S11.12_A1.js b/test/suite/ch11/11.12/S11.12_A1.js index b813aeb7f..0b2bd56df 100644 --- a/test/suite/ch11/11.12/S11.12_A1.js +++ b/test/suite/ch11/11.12/S11.12_A1.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. -/** - * White Space and Line Terminator between LogicalORExpression and "?" or between "?" and AssignmentExpression or between AssignmentExpression and ":" or between ":" and AssignmentExpression are allowed - * - * @path ch11/11.12/S11.12_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between LogicalORExpression and "?" or + between "?" and AssignmentExpression or between AssignmentExpression and + ":" or between ":" and AssignmentExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if ((eval("false\u0009?\u0009true\u0009:\u0009true")) !== true) { @@ -57,4 +58,3 @@ if ((eval("false\u2029?\u2029true\u2029:\u2029true")) !== true) { if ((eval("false\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029?\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029:\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) { $ERROR('#10: (false\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029?\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029:\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true'); } - diff --git a/test/suite/ch11/11.12/S11.12_A2.1_T1.js b/test/suite/ch11/11.12/S11.12_A2.1_T1.js index 2a9e568a9..ec04fd146 100644 --- a/test/suite/ch11/11.12/S11.12_A2.1_T1.js +++ b/test/suite/ch11/11.12/S11.12_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 : z uses GetValue - * - * @path ch11/11.12/S11.12_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: "Operator x ? y : z uses GetValue" +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((true ? false : true) !== false) { @@ -46,4 +44,3 @@ var z = new Boolean(true); if ((x ? y : z) !== z) { $ERROR('#6: var x = false; var y = new Boolean(false); var z = new Boolean(true); (x ? y : z) === z'); } - diff --git a/test/suite/ch11/11.12/S11.12_A2.1_T2.js b/test/suite/ch11/11.12/S11.12_A2.1_T2.js index 465976c49..75733cb43 100644 --- a/test/suite/ch11/11.12/S11.12_A2.1_T2.js +++ b/test/suite/ch11/11.12/S11.12_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 : z uses GetValue - * - * @path ch11/11.12/S11.12_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: "Operator x ? y : z uses GetValue" +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x ? true : false throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.12/S11.12_A2.1_T3.js b/test/suite/ch11/11.12/S11.12_A2.1_T3.js index 1e59cd63a..341fc7359 100644 --- a/test/suite/ch11/11.12/S11.12_A2.1_T3.js +++ b/test/suite/ch11/11.12/S11.12_A2.1_T3.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 : z uses GetValue - * - * @path ch11/11.12/S11.12_A2.1_T3.js - * @description If ToBoolean(x) is true and GetBase(y) is null, throw ReferenceError - */ +/*--- +info: "Operator x ? y : z uses GetValue" +description: > + If ToBoolean(x) is true and GetBase(y) is null, throw + ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: true ? y : false throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.12/S11.12_A2.1_T4.js b/test/suite/ch11/11.12/S11.12_A2.1_T4.js index 0d3c01b29..88e659f76 100644 --- a/test/suite/ch11/11.12/S11.12_A2.1_T4.js +++ b/test/suite/ch11/11.12/S11.12_A2.1_T4.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 : z uses GetValue - * - * @path ch11/11.12/S11.12_A2.1_T4.js - * @description If ToBoolean(x) is false and GetBase(z) is null, throw ReferenceError - */ +/*--- +info: "Operator x ? y : z uses GetValue" +description: > + If ToBoolean(x) is false and GetBase(z) is null, throw + ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: false ? true : z throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.12/S11.12_A2.1_T5.js b/test/suite/ch11/11.12/S11.12_A2.1_T5.js index 05df26fa5..11fb1c901 100644 --- a/test/suite/ch11/11.12/S11.12_A2.1_T5.js +++ b/test/suite/ch11/11.12/S11.12_A2.1_T5.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ? y : z uses GetValue - * - * @path ch11/11.12/S11.12_A2.1_T5.js - * @description If ToBoolean(x) is true and GetBase(z) is null, return y - */ +/*--- +info: "Operator x ? y : z uses GetValue" +description: If ToBoolean(x) is true and GetBase(z) is null, return y +---*/ //CHECK#1 var y = new Object(); if ((true ? y : z) !== y) { $ERROR('#1: var y = new Object(); (true ? y : z) === y'); } - diff --git a/test/suite/ch11/11.12/S11.12_A2.1_T6.js b/test/suite/ch11/11.12/S11.12_A2.1_T6.js index f25c22a52..5fa6dec4a 100644 --- a/test/suite/ch11/11.12/S11.12_A2.1_T6.js +++ b/test/suite/ch11/11.12/S11.12_A2.1_T6.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x ? y : z uses GetValue - * - * @path ch11/11.12/S11.12_A2.1_T6.js - * @description If ToBoolean(x) is false and GetBase(y) is null, return z - */ +/*--- +info: "Operator x ? y : z uses GetValue" +description: If ToBoolean(x) is false and GetBase(y) is null, return z +---*/ //CHECK#1 var z = new Object(); if ((false ? y : z) !== z) { $ERROR('#1: var z = new Object(); (false ? y : z) === z'); } - diff --git a/test/suite/ch11/11.12/S11.12_A3_T1.js b/test/suite/ch11/11.12/S11.12_A3_T1.js index 6614bb7f2..661a440af 100644 --- a/test/suite/ch11/11.12/S11.12_A3_T1.js +++ b/test/suite/ch11/11.12/S11.12_A3_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. -/** - * If ToBoolean(x) is false, return z - * - * @path ch11/11.12/S11.12_A3_T1.js - * @description Type(y) and Type(z) are boolean primitives - */ +/*--- +info: If ToBoolean(x) is false, return z +description: Type(y) and Type(z) are boolean primitives +---*/ //CHECK#1 if ((false ? false : true) !== true) { @@ -18,4 +16,3 @@ var z = new Boolean(true); if ((false ? true : z) !== z) { $ERROR('#2: (var y = new Boolean(true); (false ? true : z) === z'); } - diff --git a/test/suite/ch11/11.12/S11.12_A3_T2.js b/test/suite/ch11/11.12/S11.12_A3_T2.js index 311cce7d1..aa31654b3 100644 --- a/test/suite/ch11/11.12/S11.12_A3_T2.js +++ b/test/suite/ch11/11.12/S11.12_A3_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. -/** - * If ToBoolean(x) is false, return z - * - * @path ch11/11.12/S11.12_A3_T2.js - * @description Type(y) and Type(z) are number primitives - */ +/*--- +info: If ToBoolean(x) is false, return z +description: Type(y) and Type(z) are number primitives +---*/ //CHECK#1 if ((0 ? 0 : 1) !== 1) { @@ -18,4 +16,3 @@ var z = new Number(1); if ((0 ? 1 : z) !== z) { $ERROR('#2: (var y = new Number(1); (0 ? 1 : z) === z'); } - diff --git a/test/suite/ch11/11.12/S11.12_A3_T3.js b/test/suite/ch11/11.12/S11.12_A3_T3.js index 644a58fd0..96f5a8efb 100644 --- a/test/suite/ch11/11.12/S11.12_A3_T3.js +++ b/test/suite/ch11/11.12/S11.12_A3_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. -/** - * If ToBoolean(x) is false, return z - * - * @path ch11/11.12/S11.12_A3_T3.js - * @description Type(y) and Type(z) are string primitives - */ +/*--- +info: If ToBoolean(x) is false, return z +description: Type(y) and Type(z) are string primitives +---*/ //CHECK#1 if (("" ? "" : "1") !== "1") { @@ -18,4 +16,3 @@ var z = new String("1"); if (("" ? "1" : z) !== z) { $ERROR('#2: (var y = new String("1"); ("" ? "1" : z) === z'); } - diff --git a/test/suite/ch11/11.12/S11.12_A3_T4.js b/test/suite/ch11/11.12/S11.12_A3_T4.js index 296ae94eb..8006dbb44 100644 --- a/test/suite/ch11/11.12/S11.12_A3_T4.js +++ b/test/suite/ch11/11.12/S11.12_A3_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. -/** - * If ToBoolean(x) is false, return z - * - * @path ch11/11.12/S11.12_A3_T4.js - * @description Type(x) or Type(y) is changed between null and undefined - */ +/*--- +info: If ToBoolean(x) is false, return z +description: Type(x) or Type(y) is changed between null and undefined +---*/ //CHECK#1 if ((false ? true : undefined) !== undefined) { @@ -17,4 +15,3 @@ if ((false ? true : undefined) !== undefined) { if ((false ? true : null) !== null) { $ERROR('#2: (false ? true : null) === null'); } - diff --git a/test/suite/ch11/11.12/S11.12_A4_T1.js b/test/suite/ch11/11.12/S11.12_A4_T1.js index 588d90141..30ceb8245 100644 --- a/test/suite/ch11/11.12/S11.12_A4_T1.js +++ b/test/suite/ch11/11.12/S11.12_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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.12/S11.12_A4_T1.js - * @description Type(y) and Type(z) are boolean primitives - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(y) and Type(z) are boolean primitives +---*/ //CHECK#1 if ((true ? false : true) !== false) { @@ -24,4 +22,3 @@ var y = new Boolean(false); if ((y ? y : true) !== y) { $ERROR('#3: (var y = new Boolean(false); (y ? y : true) === y'); } - diff --git a/test/suite/ch11/11.12/S11.12_A4_T2.js b/test/suite/ch11/11.12/S11.12_A4_T2.js index eda208159..5aef54959 100644 --- a/test/suite/ch11/11.12/S11.12_A4_T2.js +++ b/test/suite/ch11/11.12/S11.12_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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.12/S11.12_A4_T2.js - * @description Type(y) and Type(z) are number primitives - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(y) and Type(z) are number primitives +---*/ //CHECK#1 if ((1 ? 0 : 1) !== 0) { @@ -24,4 +22,3 @@ var y = new Number(NaN); if ((y ? y : 1) !== y) { $ERROR('#3: (var y = new Number(NaN); (y ? y : 1) === y'); } - diff --git a/test/suite/ch11/11.12/S11.12_A4_T3.js b/test/suite/ch11/11.12/S11.12_A4_T3.js index 168902e13..84cbc734a 100644 --- a/test/suite/ch11/11.12/S11.12_A4_T3.js +++ b/test/suite/ch11/11.12/S11.12_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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.12/S11.12_A4_T3.js - * @description Type(y) and Type(z) are string primitives - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(y) and Type(z) are string primitives +---*/ //CHECK#1 if (("1" ? "" : "1") !== "") { @@ -24,4 +22,3 @@ var y = new String("y"); if ((y ? y : "1") !== y) { $ERROR('#3: (var y = new String("y"); (y ? y : "1") === y'); } - diff --git a/test/suite/ch11/11.12/S11.12_A4_T4.js b/test/suite/ch11/11.12/S11.12_A4_T4.js index c3b5f4771..6222978d3 100644 --- a/test/suite/ch11/11.12/S11.12_A4_T4.js +++ b/test/suite/ch11/11.12/S11.12_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. -/** - * If ToBoolean(x) is true, return y - * - * @path ch11/11.12/S11.12_A4_T4.js - * @description Type(x) or Type(y) is changed between null and undefined - */ +/*--- +info: If ToBoolean(x) is true, return y +description: Type(x) or Type(y) is changed between null and undefined +---*/ //CHECK#1 if ((true ? undefined : true) !== undefined) { @@ -17,4 +15,3 @@ if ((true ? undefined : true) !== undefined) { if ((true ? null : true) !== null) { $ERROR('#2: (true ? null : true) === null'); } - diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-1-1.js b/test/suite/ch11/11.13/11.13.1/11.13.1-1-1.js index 551c80478..6377bd282 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-1-1.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-1-1.js @@ -1,24 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * PutValue operates only on references (see step 1)
- *
- * @path ch11/11.13/11.13.1/11.13.1-1-1.js
- * @description simple assignment throws ReferenceError if LeftHandSide is not a reference (number)
- */
-
-
-function testcase() {
- try {
- eval("42 = 42");
- }
- catch (e) {
- if (e instanceof ReferenceError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: PutValue operates only on references (see step 1) +description: > + simple assignment throws ReferenceError if LeftHandSide is not a + reference (number) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + eval("42 = 42"); + } + catch (e) { + if (e instanceof ReferenceError) { + return true; + } + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-1-2.js b/test/suite/ch11/11.13/11.13.1/11.13.1-1-2.js index 5abde0d6d..b941c2e59 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-1-2.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-1-2.js @@ -1,24 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * PutValue operates only on references (see step 1).
- *
- * @path ch11/11.13/11.13.1/11.13.1-1-2.js
- * @description simple assignment throws ReferenceError if LeftHandSide is not a reference (string)
- */
-
-
-function testcase() {
- try {
- eval("'x' = 42");
- }
- catch (e) {
- if (e instanceof ReferenceError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: PutValue operates only on references (see step 1). +description: > + simple assignment throws ReferenceError if LeftHandSide is not a + reference (string) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + eval("'x' = 42"); + } + catch (e) { + if (e instanceof ReferenceError) { + return true; + } + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-1-3.js b/test/suite/ch11/11.13/11.13.1/11.13.1-1-3.js index 1dbeb18c3..cba984d3e 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-1-3.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-1-3.js @@ -1,24 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * PutValue operates only on references (see step 1).
- *
- * @path ch11/11.13/11.13.1/11.13.1-1-3.js
- * @description simple assignment throws ReferenceError if LeftHandSide is not a reference (boolean)
- */
-
-
-function testcase() {
- try {
- eval("true = 42");
- }
- catch (e) {
- if (e instanceof ReferenceError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: PutValue operates only on references (see step 1). +description: > + simple assignment throws ReferenceError if LeftHandSide is not a + reference (boolean) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + eval("true = 42"); + } + catch (e) { + if (e instanceof ReferenceError) { + return true; + } + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-1-4.js b/test/suite/ch11/11.13/11.13.1/11.13.1-1-4.js index dbbfb619b..7b926609c 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-1-4.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-1-4.js @@ -1,24 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * PutValue operates only on references (see step 1).
- *
- * @path ch11/11.13/11.13.1/11.13.1-1-4.js
- * @description simple assignment throws ReferenceError if LeftHandSide is not a reference (null)
- */
-
-
-function testcase() {
- try {
- eval("null = 42");
- }
- catch (e) {
- if (e instanceof ReferenceError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: PutValue operates only on references (see step 1). +description: > + simple assignment throws ReferenceError if LeftHandSide is not a + reference (null) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + eval("null = 42"); + } + catch (e) { + if (e instanceof ReferenceError) { + return true; + } + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-1-6-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-1-6-s.js index 915caf590..11e3c23e8 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-1-6-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-1-6-s.js @@ -1,26 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * PutValue operates only on references (see step 3.a).
- *
- * @path ch11/11.13/11.13.1/11.13.1-1-6-s.js
- * @description simple assignment throws ReferenceError if LeftHandSide is an unresolvable reference in strict mode (base obj undefined)
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- try {
- __ES3_1_test_suite_test_11_13_1_unique_id_0__.x = 42;
- return false;
- }
- catch (e) {
- return (e instanceof ReferenceError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: PutValue operates only on references (see step 3.a). +description: > + simple assignment throws ReferenceError if LeftHandSide is an + unresolvable reference in strict mode (base obj undefined) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + try { + __ES3_1_test_suite_test_11_13_1_unique_id_0__.x = 42; + return false; + } + catch (e) { + return (e instanceof ReferenceError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-1-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-1-s.js index 5330f5411..f2646c484 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-1-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-1-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-1-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide is a reference to a data property with the attribute value {[[Writable]]:false} under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop = 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide is a + reference to a data property with the attribute value + {[[Writable]]:false} under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop = 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-2-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-2-s.js index f16e19d18..6b8ab54f2 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-2-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-2-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-2-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide is a reference to an accessor property with the attribute value {[[Set]]:undefined} under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop = 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide is a + reference to an accessor property with the attribute value + {[[Set]]:undefined} under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop = 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-3-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-3-s.js index 79d23670e..5457909cc 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-3-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-3-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-3-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide is a reference to a non-existent property of an object whose [[Extensible]] internal property has the value false under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len = 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide is a + reference to a non-existent property of an object whose + [[Extensible]] internal property has the value false under strict + mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len = 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-1.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-1.js index 04e93c38d..319c1f2b4 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-1.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-1.js @@ -1,29 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * PutValue operates only on references (see step 3.b).
- *
- * @path ch11/11.13/11.13.1/11.13.1-4-1.js
- * @description simple assignment creates property on the global object if LeftHandSide is an unresolvable reference
- */
-
-
-function testcase() {
- function foo() {
- __ES3_1_test_suite_test_11_13_1_unique_id_3__ = 42;
- }
- foo();
-
- var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), '__ES3_1_test_suite_test_11_13_1_unique_id_3__');
- if (desc.value === 42 &&
- desc.writable === true &&
- desc.enumerable === true &&
- desc.configurable === true) {
- delete __ES3_1_test_suite_test_11_13_1_unique_id_3__;
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: PutValue operates only on references (see step 3.b). +description: > + simple assignment creates property on the global object if + LeftHandSide is an unresolvable reference +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + function foo() { + __ES3_1_test_suite_test_11_13_1_unique_id_3__ = 42; + } + foo(); + + var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), '__ES3_1_test_suite_test_11_13_1_unique_id_3__'); + if (desc.value === 42 && + desc.writable === true && + desc.enumerable === true && + desc.configurable === true) { + delete __ES3_1_test_suite_test_11_13_1_unique_id_3__; + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-14-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-14-s.js index e82720d70..96dd765f7 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-14-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-14-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-14-s.js
- * @description simple assignment throws TypeError if LeftHandSide is a readonly property in strict mode (Number.MAX_VALUE)
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- try {
- Number.MAX_VALUE = 42;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + simple assignment throws TypeError if LeftHandSide is a readonly + property in strict mode (Number.MAX_VALUE) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + try { + Number.MAX_VALUE = 42; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-27-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-27-s.js index 00da46eda..026676ae3 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-27-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-27-s.js @@ -1,23 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-27-s.js
- * @description simple assignment throws TypeError if LeftHandSide is a readonly property in strict mode (Global.undefined)
- */
-
-
-function testcase() {
- 'use strict';
-
- try {
- fnGlobalObject().undefined = 42;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + simple assignment throws TypeError if LeftHandSide is a readonly + property in strict mode (Global.undefined) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + 'use strict'; + + try { + fnGlobalObject().undefined = 42; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-28-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-28-s.js index 039991a37..f6b3f96b2 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-28-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-28-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-28-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appears as the LeftHandSideExpression of simple assignment(=) under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("var eval = 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'eval' + appears as the LeftHandSideExpression of simple assignment(=) + under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("var eval = 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js index 86867f1ba..651554799 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-28gs.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'Math.PI' appears as the LeftHandSideExpression of simple assignment(=)
- * @onlyStrict
- * @negative NotEarlyError
- */
-"use strict";
-throw NotEarlyError;
-Math.PI = 20;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'Math.PI' + appears as the LeftHandSideExpression of simple assignment(=) +negative: NotEarlyError +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +Math.PI = 20; diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-29-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-29-s.js index c9a5a404c..f7c667ab7 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-29-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-29-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-29-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appears as the LeftHandSideExpression of simple assignment(=) under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("var arguments = 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'arguments' + appears as the LeftHandSideExpression of simple assignment(=) + under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("var arguments = 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-29gs.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-29gs.js index 86e4f59ce..5e2ef6e4b 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-29gs.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-29gs.js @@ -1,13 +1,16 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-29gs.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'Math.PI' appears as the LeftHandSideExpression of simple assignment(=)
- * @onlyStrict
- * @negative .
- */
-"use strict";
-Math.PI = 20;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'Math.PI' + appears as the LeftHandSideExpression of simple assignment(=) +negative: . +flags: [onlyStrict] +---*/ + +"use strict"; +Math.PI = 20; diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-3-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-3-s.js index ff4d1710d..087fb92eb 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-3-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-3-s.js @@ -1,24 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-3-s.js
- * @description simple assignment throws TypeError if LeftHandSide is a readonly property in strict mode (Global.Infinity)
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- try {
- fnGlobalObject().Infinity = 42;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + simple assignment throws TypeError if LeftHandSide is a readonly + property in strict mode (Global.Infinity) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + 'use strict'; + + try { + fnGlobalObject().Infinity = 42; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-30-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-30-s.js index e494fab1b..03e6ef314 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-30-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-30-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-30-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appears as the LeftHandSideExpression (PrimaryExpression) of simple assignment(=) under strict mode
- * @onlyStrict
- */
-
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("(eval) = 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
-}
-runTestCase(testcase);
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'eval' + appears as the LeftHandSideExpression (PrimaryExpression) of + simple assignment(=) under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("(eval) = 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-31-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-31-s.js index 1d70a7723..e647e7ab7 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-31-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-31-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-31-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appears as the LeftHandSideExpression (PrimaryExpression) of simple assignment(=) under strict mode
- * @onlyStrict
- */
-
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("(arguments) = 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
-}
-runTestCase(testcase);
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'arguments' + appears as the LeftHandSideExpression (PrimaryExpression) of + simple assignment(=) under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("(arguments) = 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-6-s.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-6-s.js index 158152924..08675b340 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-6-s.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-6-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.1/11.13.1-4-6-s.js
- * @description simple assignment throws TypeError if LeftHandSide is a readonly property in strict mode (Function.length)
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- try {
- Function.length = 42;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + simple assignment throws TypeError if LeftHandSide is a readonly + property in strict mode (Function.length) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + try { + Function.length = 42; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A1.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A1.js index 533091b57..3699daae3 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A1.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.1_A1.js @@ -1,13 +1,13 @@ // 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 LeftHandSideExpression and "=" or between "=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.1/S11.13.1_A1.js - * @description Checking by using eval - * @noStrict - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "=" or + between "=" and AssignmentExpression are allowed +description: Checking by using eval +flags: [noStrict] +---*/ //CHECK#1 if ((eval("x\u0009=\u0009true")) !== true) { @@ -59,4 +59,3 @@ if ((eval("x\u2029=\u2029true")) !== true) { if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) { $ERROR('#10: (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true'); } - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T1.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T1.js index 3c3a793ed..83129e9cd 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T1.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.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 and PutValue - * - * @path ch11/11.13/11.13.1/S11.13.1_A2.1_T1.js - * @description Either AssigmentExpression is not Reference or GetBase is not null - */ +/*--- +info: Operator x = y uses GetValue and PutValue +description: Either AssigmentExpression is not Reference or GetBase is not null +---*/ //CHECK#1 x = 1; @@ -46,5 +44,3 @@ if (objectx.prop !== objecty.prop) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objecty.prop = 1; objectx.prop = objecty.prop; objectx !== objecty'); } } - - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T2.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T2.js index 7f48afc64..85444a225 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T2.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.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 and PutValue - * - * @path ch11/11.13/11.13.1/S11.13.1_A2.1_T2.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError - */ +/*--- +info: Operator x = y uses GetValue and PutValue +description: If GetBase(AssigmentExpression) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x = y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js index 3e153946f..b4114b6ef 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js @@ -1,13 +1,13 @@ // 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 and PutValue - * - * @path ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError) - * @negative - */ +/*--- +info: Operator x = y uses GetValue and PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError) +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { 1 = 1; } } - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.1.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.1.js index d02876814..b800de890 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.1.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x = y PutValue(x, y) - * - * @path ch11/11.13/11.13.1/S11.13.1_A3.1.js - * @description Checking Expression and Variable statements - */ +/*--- +info: Operator x = y PutValue(x, y) +description: Checking Expression and Variable statements +---*/ //CHECK#1 var x = 1; @@ -19,4 +17,3 @@ y = 1; if (y !== 1) { $ERROR('#2: y = 1; y === 1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.2.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.2.js index f369e21c3..6174e75a1 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.2.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.1_A3.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 GetValue(y) - * - * @path ch11/11.13/11.13.1/S11.13.1_A3.2.js - * @description Checking Expression and Variable statements - */ +/*--- +info: Operator x = y returns GetValue(y) +description: Checking Expression and Variable statements +---*/ //CHECK#1 var x = 0; @@ -19,4 +17,3 @@ x = 0; if ((x = 1) !== 1) { $ERROR('#2: x = 0; (x = 1) === 1. Actual: ' + ((x = 1))); } - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T1.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T1.js index 5781fbdfc..4f1381df6 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T1.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T1.js @@ -1,18 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * AssignmentExpression : LeftHandSideExpression = AssignmentExpression - * - * @path ch11/11.13/11.13.1/S11.13.1_A4_T1.js - * @description Syntax check - */ +/*--- +info: "AssignmentExpression : LeftHandSideExpression = AssignmentExpression" +description: Syntax check +---*/ //CHECK#1 x = x = 1; if (x !== 1) { $ERROR('#1: The expression x = x = 1 is the same x = (x = 1), not (x = x) = 1. Actual: ' + (x)); } - - - diff --git a/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T2.js b/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T2.js index d1d4ea456..34743b56b 100644 --- a/test/suite/ch11/11.13/11.13.1/S11.13.1_A4_T2.js +++ b/test/suite/ch11/11.13/11.13.1/S11.13.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. -/** - * AssignmentExpression : LeftHandSideExpression = AssignmentExpression - * - * @path ch11/11.13/11.13.1/S11.13.1_A4_T2.js - * @description Syntax check if "x = x" throws ReferenceError - */ +/*--- +info: "AssignmentExpression : LeftHandSideExpression = AssignmentExpression" +description: Syntax check if "x = x" throws ReferenceError +---*/ //CHECK#1 try { @@ -17,6 +15,3 @@ try { $ERROR('#1.2: x = x throw ReferenceError. Actual: ' + (e)); } } - - - diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-1-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-1-s.js index 3a8522a32..948f0fac2 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-1-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-1-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-1-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(*=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_1 *= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(*=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_1 *= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-10-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-10-s.js index e0c7dddb4..ec0ff54ad 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-10-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-10-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-10-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(^=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_10 ^= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(^=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_10 ^= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-11-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-11-s.js index 60d2e8a63..c08614a85 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-11-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-11-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-11-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(|=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_11 |= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(|=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_11 |= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-12-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-12-s.js index ae0eff54b..c7606c22d 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-12-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-12-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-12-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(*=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_12 = 5
- _11_13_2_12 *= 2;
- return _11_13_2_12 === 10;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(*=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_12 = 5 + _11_13_2_12 *= 2; + return _11_13_2_12 === 10; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-13-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-13-s.js index 3dc5a0f34..2b53032f4 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-13-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-13-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-13-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(/=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_13 = 6
- _11_13_2_13 /= 2;
- return _11_13_2_13 === 3;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(/=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_13 = 6 + _11_13_2_13 /= 2; + return _11_13_2_13 === 3; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-14-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-14-s.js index 578fae60e..2856f391e 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-14-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-14-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-14-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(%=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_14 = 5
- _11_13_2_14 %= 2;
- return _11_13_2_14 === 1;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(%=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_14 = 5 + _11_13_2_14 %= 2; + return _11_13_2_14 === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-15-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-15-s.js index 832e1f98d..3991a7b50 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-15-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-15-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-15-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(>>>=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_15 = 8
- _11_13_2_15 >>>= 2;
- return _11_13_2_15 === 2;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(>>>=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_15 = 8 + _11_13_2_15 >>>= 2; + return _11_13_2_15 === 2; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-16-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-16-s.js index ae83bb032..b11856252 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-16-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-16-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-16-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(-=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_16 = 5
- _11_13_2_16 -= 2;
- return _11_13_2_16 === 3;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(-=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_16 = 5 + _11_13_2_16 -= 2; + return _11_13_2_16 === 3; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-17-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-17-s.js index f78dd1b8b..12810cac3 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-17-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-17-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-17-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(<<=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_17 = 1;
- _11_13_2_17 <<= 2;
- return _11_13_2_17 === 4;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(<<=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_17 = 1; + _11_13_2_17 <<= 2; + return _11_13_2_17 === 4; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-18-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-18-s.js index cb2af550d..7f301aaeb 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-18-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-18-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-18-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(>>=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_18 = 4
- _11_13_2_18 >>= 2;
- return _11_13_2_18 === 1;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(>>=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_18 = 4 + _11_13_2_18 >>= 2; + return _11_13_2_18 === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-19-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-19-s.js index 187d7c78a..9804f4a95 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-19-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-19-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-19-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(+=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_19 = -1
- _11_13_2_19 += 10;
- return _11_13_2_19 === 9;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(+=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_19 = -1 + _11_13_2_19 += 10; + return _11_13_2_19 === 9; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-2-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-2-s.js index 395bed37d..56434ebef 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-2-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-2-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-2-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(/=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_2 /= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(/=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_2 /= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-20-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-20-s.js index 8f1547ca7..a63ecbd3d 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-20-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-20-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-20-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(&=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_20 = 5
- _11_13_2_20 &= 3;
- return _11_13_2_20 === 1;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(&=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_20 = 5 + _11_13_2_20 &= 3; + return _11_13_2_20 === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-21-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-21-s.js index 3cf11ab55..48e045a99 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-21-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-21-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-21-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(^=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_21 = 5
- _11_13_2_21 ^= 3;
- return _11_13_2_21 === 6;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(^=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_21 = 5 + _11_13_2_21 ^= 3; + return _11_13_2_21 === 6; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-22-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-22-s.js index b525c1621..2487d4266 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-22-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-22-s.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-22-s.js
- * @description Strict Mode - ReferenceError isn't thrown if the LeftHandSideExpression of a Compound Assignment operator(|=) evaluates to a resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_13_2_22 = 5
- _11_13_2_22 |= 2;
- return _11_13_2_22 === 7;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if the + LeftHandSideExpression of a Compound Assignment operator(|=) + evaluates to a resolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_13_2_22 = 5 + _11_13_2_22 |= 2; + return _11_13_2_22 === 7; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-23-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-23-s.js index f6b492dc3..6bbec00e7 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-23-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-23-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-23-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(*=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop *= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(*=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop *= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-24-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-24-s.js index 7c0886277..d99ccbf8c 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-24-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-24-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-24-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(/=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop /= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(/=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop /= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-25-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-25-s.js index 3f52583c3..b7334f4d4 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-25-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-25-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-25-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(%=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop %= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(%=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop %= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-26-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-26-s.js index a13b710d8..b77d93f1f 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-26-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-26-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-26-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(+=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop += 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(+=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop += 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-27-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-27-s.js index c8b649257..7c4903275 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-27-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-27-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-27-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(-=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop -= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(-=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop -= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-28-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-28-s.js index 326c710e1..66ddd58c1 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-28-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-28-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-28-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(<<=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop <<= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(<<=) is a reference to a data + property with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop <<= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-29-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-29-s.js index dac5aff74..0fb10a854 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-29-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-29-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-29-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(>>=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop >>= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(>>=) is a reference to a data + property with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop >>= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-3-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-3-s.js index efbbe64ab..72498aefd 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-3-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-3-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-3-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(%=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_3 %= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(%=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_3 %= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-30-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-30-s.js index 77b4a3f99..b02de02ba 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-30-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-30-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-30-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(>>>=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop >>>= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(>>>=) is a reference to a data + property with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop >>>= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-31-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-31-s.js index 1a42e5ac1..8345e02b3 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-31-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-31-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-31-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(&=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop &= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(&=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop &= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-32-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-32-s.js index 63ed6d804..82aa35c27 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-32-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-32-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-32-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(^=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop ^= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(^=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop ^= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-33-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-33-s.js index a0b27a8f3..36ddf2461 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-33-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-33-s.js @@ -1,30 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-33-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(|=) is a reference to a data property with the attribute value {[[Writable]]:false}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop |= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 10;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(|=) is a reference to a data property + with the attribute value {[[Writable]]:false} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: 10, + writable: false, + enumerable: true, + configurable: true + }); + + try { + obj.prop |= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 10; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-34-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-34-s.js index 196038b2b..eb7827033 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-34-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-34-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-34-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(*=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop *= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(*=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop *= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-35-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-35-s.js index 2a7dba157..bf51db141 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-35-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-35-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-35-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(/=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop /= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(/=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop /= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-36-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-36-s.js index 2e1204180..b8a40359e 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-36-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-36-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-36-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(%=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop %= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(%=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop %= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-37-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-37-s.js index e426178ab..cb4aec71a 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-37-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-37-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-37-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(+=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop += 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(+=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop += 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-38-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-38-s.js index a522f871e..86cf4c80d 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-38-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-38-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-38-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(-=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop -= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(-=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop -= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-39-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-39-s.js index a682e1466..22470c074 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-39-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-39-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-39-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(<<=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop <<= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(<<=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop <<= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-4-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-4-s.js index e565ceccc..cabfa2016 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-4-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-4-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-4-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(+=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_4 += 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(+=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_4 += 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-40-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-40-s.js index 2f31f32bb..e26280649 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-40-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-40-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-40-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(>>=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop >>= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(>>=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop >>= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-41-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-41-s.js index acc1d54ff..08e687fd3 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-41-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-41-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-41-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(>>>=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop >>>= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(>>>=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop >>>= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-42-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-42-s.js index 6b2f4642a..3d58dc7e3 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-42-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-42-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-42-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(&=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop &= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(&=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop &= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-43-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-43-s.js index 72aafec6e..af497f57a 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-43-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-43-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-43-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(^=) is a reference to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop ^= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(^=) is a reference to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop ^= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-44-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-44-s.js index 33a47ddb9..2da8b8674 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-44-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-44-s.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-44-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(|=) is a reference of to an accessor property with the attribute value {[[Set]]:undefined}
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 11;
- },
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- try {
- obj.prop |= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(|=) is a reference of to an accessor + property with the attribute value {[[Set]]:undefined} +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return 11; + }, + set: undefined, + enumerable: true, + configurable: true + }); + + try { + obj.prop |= 20; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === 11; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-45-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-45-s.js index 5122b4bdf..9775dbc7f 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-45-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-45-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-45-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(*=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len *= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(*=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len *= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-46-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-46-s.js index 382f41c25..c61e228aa 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-46-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-46-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-46-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(/=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len /= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(/=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len /= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-47-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-47-s.js index 4e3761c20..d1bd31555 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-47-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-47-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-47-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(%=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len %= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(%=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len %= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-48-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-48-s.js index fa14cbf86..d616b0e54 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-48-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-48-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-48-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(+=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len += 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(+=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len += 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-49-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-49-s.js index b9105eca8..2ec3f598c 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-49-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-49-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-49-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(-=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len -= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(-=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len -= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-5-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-5-s.js index 09fdb5fa9..6da39a975 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-5-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-5-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-5-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(-=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_5 -= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(-=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_5 -= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-50-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-50-s.js index 7ae50545b..119604184 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-50-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-50-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-50-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(<<=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len <<= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(<<=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len <<= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-51-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-51-s.js index 7818d3d81..7646c32fc 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-51-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-51-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-51-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(>>=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len >>= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(>>=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len >>= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-52-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-52-s.js index 0668c86e6..15a43fb6e 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-52-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-52-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-52-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(>>>=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len >>>= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(>>>=) is a reference to a + non-existent property of an object whose [[Extensible]] internal + property if false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len >>>= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-53-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-53-s.js index 64bdafb9b..85f37c854 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-53-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-53-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-53-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(&=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len &= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(&=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len &= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-54-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-54-s.js index f5439a483..786c5d8ca 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-54-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-54-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-54-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(^=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len ^= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(^=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len ^= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-55-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-55-s.js index e44a53038..e22d39af9 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-55-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-55-s.js @@ -1,25 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-55-s.js
- * @description Strict Mode - TypeError is thrown if The LeftHandSide of a Compound Assignment operator(|=) is a reference to a non-existent property of an object whose [[Extensible]] internal property if false
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.preventExtensions(obj);
-
- try {
- obj.len |= 10;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if The LeftHandSide of a + Compound Assignment operator(|=) is a reference to a non-existent + property of an object whose [[Extensible]] internal property if + false +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.preventExtensions(obj); + + try { + obj.len |= 10; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-1-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-1-s.js index 6bbe5ceb7..09f608cb4 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-1-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-1-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-1-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(*=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval *= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(*=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval *= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-10-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-10-s.js index acf0fc522..6db7be17a 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-10-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-10-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-10-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(^=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval ^= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(^=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval ^= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-11-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-11-s.js index 7273172df..d5223bbe7 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-11-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-11-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-11-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(|=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval |= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(|=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval |= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-12-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-12-s.js index b3eaf8e76..bc3ca7009 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-12-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-12-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-12-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(*=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments *= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(*=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments *= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-13-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-13-s.js index f553885ba..b20d3c265 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-13-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-13-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-13-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(/=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments /= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(/=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments /= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-14-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-14-s.js index f039ab988..7f0e12220 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-14-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-14-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-14-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(%=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments %= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(%=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments %= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-15-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-15-s.js index cd473315c..06a353c21 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-15-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-15-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-15-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(+=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments += 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(+=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments += 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-16-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-16-s.js index 4c7038b79..db71def81 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-16-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-16-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-16-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(-=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments -= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(-=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments -= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-17-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-17-s.js index 1b0efaf36..1905ea5aa 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-17-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-17-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-17-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(<<=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments <<= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(<<=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments <<= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-18-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-18-s.js index 0413ebfeb..efe0bffb1 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-18-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-18-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-18-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(>>=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments >>= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(>>=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments >>= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-19-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-19-s.js index 8af9d1b37..83195e6ba 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-19-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-19-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-19-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(>>>=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments >>>= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(>>>=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments >>>= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-1gs.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-1gs.js index a3f33416c..c5fa34ca8 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-1gs.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-1gs.js @@ -1,16 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-1gs.js
- * @description Strict Mode - SyntaxError is throw if the identifier eval appears as the LeftHandSideExpression of a Compound Assignment operator(*=)
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-eval *= 20;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is throw if the identifier eval appears + as the LeftHandSideExpression of a Compound Assignment operator(*=) +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +eval *= 20; diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-2-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-2-s.js index f342f29ef..182ca9b0f 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-2-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-2-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-2-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(/=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval /= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(/=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval /= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-20-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-20-s.js index 468a01dab..f22334987 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-20-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-20-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-20-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(&=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments &= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(&=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments &= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-21-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-21-s.js index 6ce81e359..bdd2bd209 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-21-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-21-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-21-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(^=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments ^= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(^=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments ^= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-22-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-22-s.js index 48a6651c2..d1633e2fe 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-22-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-22-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-22-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier arguments appear as the LeftHandSideExpression of a Compound Assignment operator(|=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments |= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier arguments + appear as the LeftHandSideExpression of a Compound Assignment + operator(|=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments |= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-3-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-3-s.js index 133e41d16..85316beb2 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-3-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-3-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-3-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(%=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval %= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(%=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval %= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-4-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-4-s.js index c5314930e..082cbbeb6 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-4-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-4-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-4-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(+=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval += 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(+=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval += 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-5-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-5-s.js index 394632041..88ba2b61a 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-5-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-5-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-5-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(-=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval -= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(-=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval -= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-6-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-6-s.js index e3e709b76..f7692019b 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-6-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-6-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-6-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(<<=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval <<= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment + operator(<<=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval <<= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-7-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-7-s.js index f07505be0..ccb503a08 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-7-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-7-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-7-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(>>=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval >>= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment + operator(>>=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval >>= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-8-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-8-s.js index 8a2226ae1..bf6e27882 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-8-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-8-s.js @@ -1,23 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-8-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(>>>=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval >>>= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment + operator(>>>=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval >>>= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-9-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-9-s.js index 4f5817fdb..7af2e8494 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-9-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-9-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-9-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier eval appear as the LeftHandSideExpression of a Compound Assignment operator(&=)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval &= 20;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier eval appear + as the LeftHandSideExpression of a Compound Assignment operator(&=) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval &= 20;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-6-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-6-s.js index 832d3afd0..a3d3325e5 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-6-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-6-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-6-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(<<=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_6 <<= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(<<=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_6 <<= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-7-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-7-s.js index 8a290330a..3e8130aa4 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-7-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-7-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-7-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(>>=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_7 >>= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(>>=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_7 >>= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-8-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-8-s.js index 4f4167f87..6520ffffd 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-8-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-8-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-8-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(>>>=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_8 >>>= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(>>>=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_8 >>>= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/11.13.2-9-s.js b/test/suite/ch11/11.13/11.13.2/11.13.2-9-s.js index 3393d5c27..e66ed96ba 100644 --- a/test/suite/ch11/11.13/11.13.2/11.13.2-9-s.js +++ b/test/suite/ch11/11.13/11.13.2/11.13.2-9-s.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.13/11.13.2/11.13.2-9-s.js
- * @description Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a Compound Assignment operator(&=) evaluates to an unresolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_11_13_2_9 &= 1;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if the + LeftHandSideExpression of a Compound Assignment operator(&=) + evaluates to an unresolvable reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_11_13_2_9 &= 1;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T1.js index db0495c5c..5c1bd3ee7 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_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. -/** - * White Space and Line Terminator between LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T1.js - * @description Checking by using eval, check operator is x *= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x *= y +---*/ //CHECK#1 x = -1; @@ -68,4 +68,3 @@ x = -1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029*=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029-1")) !== 1) { $ERROR('#10: x = -1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029*=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029-1) === 1'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T10.js index 3487b3dd0..de1e78367 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T10.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T10.js - * @description Checking by using eval, check operator is x ^= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x ^= y +---*/ //CHECK#1 x = 1; @@ -68,4 +68,3 @@ x = 1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029^=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 0) { $ERROR('#10: x = 1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029^=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 0'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T11.js index fc81632c0..595f38afa 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T11.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T11.js - * @description Checking by using eval, check operator is x |= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x |= y +---*/ //CHECK#1 x = 0; @@ -68,4 +68,3 @@ x = 0; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029|=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 1) { $ERROR('#10: x = 0; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029|=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 1'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T2.js index 1e15c0115..d3ddbedc4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T2.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T2.js - * @description Checking by using eval, check operator is x /= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x /= y +---*/ //CHECK#1 x = -1; @@ -68,4 +68,3 @@ x = -1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029/=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029-1")) !== 1) { $ERROR('#10: x = -1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029/=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029-1) === 1'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T3.js index 1e2a6760a..3f8219565 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T3.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T3.js - * @description Checking by using eval, check operator is x %= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x %= y +---*/ //CHECK#1 x = -1; @@ -68,4 +68,3 @@ x = -1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029%=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029-1")) !== 0) { $ERROR('#10: x = -1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029%=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029-1) === 0'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T4.js index fa97eb77f..4df569efd 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T4.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T4.js - * @description Checking by using eval, check operator is x += y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x += y +---*/ //CHECK#1 x = -1; @@ -68,4 +68,3 @@ x = -1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029+=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029-1")) !== -2) { $ERROR('#10: x = -1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029+=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029-1) === -2'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T5.js index d4fc5a620..ac552ff80 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T5.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T5.js - * @description Checking by using eval, check operator is x -= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x -= y +---*/ //CHECK#1 x = -1; @@ -68,4 +68,3 @@ x = -1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029-=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== -2) { $ERROR('#10: x = -1; (x\\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.13/11.13.2/S11.13.2_A1_T6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T6.js index 65370cf1b..ac24ffca1 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T6.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T6.js - * @description Checking by using eval, check operator is x <<= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x <<= y +---*/ //CHECK#1 x = 1; @@ -68,4 +68,3 @@ x = 1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029<<=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 2) { $ERROR('#10: x = 1; (x\\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.13/11.13.2/S11.13.2_A1_T7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T7.js index 5093eaeca..c89c8614a 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T7.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T7.js - * @description Checking by using eval, check operator is x >>= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x >>= y +---*/ //CHECK#1 x = 1; @@ -68,4 +68,3 @@ x = 1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029>>=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 0) { $ERROR('#10: x = 1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029>>=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 0'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T8.js index 8469f353d..07e5cd4db 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T8.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T8.js - * @description Checking by using eval, check operator is x >>>= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x >>>= y +---*/ //CHECK#1 x = 1; @@ -68,4 +68,3 @@ x = 1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029>>>=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 0) { $ERROR('#10: x = 1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029>>>=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 0'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T9.js index c73eac5e1..731edd4c5 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A1_T9.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 LeftHandSideExpression and "@=" or between "@=" and AssignmentExpression are allowed - * - * @path ch11/11.13/11.13.2/S11.13.2_A1_T9.js - * @description Checking by using eval, check operator is x &= y - */ +/*--- +info: > + White Space and Line Terminator between LeftHandSideExpression and "@=" + or between "@=" and AssignmentExpression are allowed +description: Checking by using eval, check operator is x &= y +---*/ //CHECK#1 x = 1; @@ -68,4 +68,3 @@ x = 1; if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029&=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) !== 1) { $ERROR('#10: x = 1; (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029&=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === 1'); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.1.js index e6a01dd52..599ec7d09 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.1.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x *= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x *= y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x *= y); if (z !== -1) { $ERROR('#2: var x = 1; var y = -1; var z = (x *= y); z === -1. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.10.js index a85d13eb0..04afdf293 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.10.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.10.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x ^= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x ^= y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x ^= y); if (z !== 0) { $ERROR('#2: var x = 1; var y = 1; var z = (x ^= y); z === 0. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.11.js index 925ed41d6..35b11c0b6 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.11.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.11.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x |= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x |= y" +---*/ //CHECK#1 var x = 0; @@ -22,5 +22,3 @@ var z = (x |= y); if (z !== 1) { $ERROR('#2: var x = 0; var y = 1; var z = (x |= y); z === 1. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.2.js index d9ee6bd59..7b624f6a6 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.2.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x /= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x /= y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x /= y); if (z !== -1) { $ERROR('#2: var x = 1; var y = -1; var z = (x /= y); z === -1. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.3.js index 70586cfbb..a7aaf2649 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.3.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x %= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x %= y" +---*/ //CHECK#1 var x = -1; @@ -22,5 +22,3 @@ var z = (x %= y); if (z !== -1) { $ERROR('#2: var x = -1; var y = 2; var z = (x %= y); z === -1. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.4.js index 7fcda2fec..e2adb317c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.4.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x += y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x += y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x += y); if (z !== 2) { $ERROR('#2: var x = 1; var y = 1; var z = (x += y); z === 2. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.5.js index db68d5585..f8e3f3a92 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.5.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x -= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x -= y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x -= y); if (z !== 0) { $ERROR('#2: var x = 1; var y = 1; var z = (x -= y); z === 0. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.6.js index f6f5ac7ca..7938614a4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.6.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x <<= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x <<= y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x <<= y); if (z !== 2) { $ERROR('#2: var x = 1; var y = 1; var z = (x <<= y); z === 2. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.7.js index cdc37d9ba..5784680f9 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.7.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x >>= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x >>= y" +---*/ //CHECK#1 var x = 4; @@ -22,5 +22,3 @@ var z = (x >>= y); if (z !== 2) { $ERROR('#2: var x = 4; var y = 1; var z = (x >>= y); z === 2. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.8.js index e53d41a51..cd873eedb 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.8.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x >>>= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x >>>= y" +---*/ //CHECK#1 var x = 4; @@ -22,5 +22,3 @@ var z = (x >>>= y); if (z !== 2) { $ERROR('#2: var x = 4; var y = 1; var z = (x >>>= y); z === 2. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.9.js index a74dee97d..800c6efeb 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T1.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T1.9.js - * @description Either Type is not Reference or GetBase is not null, check opeartor is "x &= y" - */ +/*--- +info: Operator uses GetValue +description: > + Either Type is not Reference or GetBase is not null, check + opeartor is "x &= y" +---*/ //CHECK#1 var x = 1; @@ -22,5 +22,3 @@ var z = (x &= y); if (z !== 1) { $ERROR('#2: var x = 1; var y = 1; var z = (x &= y); z === 1. Actual: ' + (z)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.1.js index eede73f3d..ff6557035 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.1.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x *= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x *= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x *= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.10.js index 27c243325..c1d795e9c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.10.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.10.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x ^= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x ^= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x ^= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.11.js index 22cd6c1b8..07afa4377 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.11.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.11.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x |= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x |= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x |= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.2.js index 02a39f6c4..c75682a26 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.2.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x /= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x /= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x /= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.3.js index 1d11d3bce..054369ffe 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.3.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x %= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x %= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x %= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.4.js index 771302777..d9139d84b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.4.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x += y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x += y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x += y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.5.js index 500e5e6a9..56c246b7c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.5.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x -= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x -= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x -= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.6.js index 9042f94bb..f2260748b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.6.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x <<= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x <<= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x <<= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.7.js index 8c391557e..3dcec40e4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.7.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x >>= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x >>= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x >>= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.8.js index 8db8963a9..6adf947a6 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.8.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x >>>= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x >>>= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x >>>= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.9.js index a9155a34e..7dcda0106 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T2.9.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError. Check operator is "x &= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(AssigmentExpression) is null, throw ReferenceError. + Check operator is "x &= y" +---*/ //CHECK#1 try { @@ -19,4 +19,3 @@ catch (e) { $ERROR('#1.2: var x = 1; x &= y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.1.js index 247f69ebc..2ef6edd88 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.1.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x *= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x *= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x *= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.10.js index 2c8495ca8..7cc960a15 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.10.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.10.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x ^= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x ^= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x ^= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.11.js index 9901b9db1..573da267b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.11.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.11.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x |= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x |= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x |= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.2.js index 6832765ef..671e38ae9 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.2.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x /= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x /= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x /= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.3.js index dc0df0e52..7dbf0a96c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.3.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x %= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x %= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x %= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.4.js index a32957d99..d7a68a7f1 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.4.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x += y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x += y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x += 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.5.js index 7e8f4601d..054410cd8 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.5.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x -= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x -= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x -= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.6.js index 0c1d107bd..e10bd36ab 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.6.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x <<= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x <<= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x <<= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.7.js index 0fd60d869..74f33f429 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.7.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x >>= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x >>= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x >>= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.8.js index 57259d1da..c0580ca7c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.8.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x >>>= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x >>>= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x >>>= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.9.js index eac242da4..edb73381c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.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 uses GetValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.9.js - * @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x &= y" - */ +/*--- +info: Operator uses GetValue +description: > + If GetBase(LeftHandSideExpression) is null, throw ReferenceError. + Check operator is "x &= y" +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: x &= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js index d9ce71a56..edbb3228c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x *= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x *= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 *= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js index 38c494279..af244d98d 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x ^= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x ^= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 ^= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js index 45c162f86..c59e6a78e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x |= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x |= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 |= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js index 7ba092e88..bc77afb9e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x /= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x /= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 /= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js index c26da6dd4..cbee7e4d4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x %= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x %= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 %= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js index bbfbd0f41..2fbf8fe77 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x += y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x += y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 += 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js index d9a53ecaf..d0a200f10 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x -= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x -= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 -= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js index 34154341d..ce4a06fce 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x <<= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x <<= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 <<= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js index 6f0e3fd4d..c3f6f94cb 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x >>= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x >>= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 >>= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js index d82235391..5f37bdab3 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x >>>= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x >>>= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 >>>= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js index f85aa27dd..484383659 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator uses PutValue - * - * @path ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js - * @description If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is "x &= y" - * @negative - */ +/*--- +info: Operator uses PutValue +description: > + If Type(LeftHandSideExpression) is not Reference, throw + ReferenceError (or SyntaxError). Check operator is "x &= y" +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +21,3 @@ catch (e) { var z = (1 &= 1); } } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T1.js index a50a1cba5..29c40cec2 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T1.js - * @description Checking Expression and Variable statements for x *= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x *= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y *= -1; if (y !== -1) { $ERROR('#2: y = 1; y *= -1; y === -1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T10.js index a552f7d08..8920f0cbe 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T10.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T10.js - * @description Checking Expression and Variable statements for x ^= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x ^= y +---*/ //CHECK#1 var x = 0; @@ -21,4 +19,3 @@ y ^= 0; if (y !== 1) { $ERROR('#2: y = 1; y ^= 0; y === 1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T11.js index 6bacd0744..a628437d3 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T11.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T11.js - * @description Checking Expression and Variable statements for x |= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x |= y +---*/ //CHECK#1 var x = 0; @@ -21,4 +19,3 @@ y |= 0; if (y !== 1) { $ERROR('#2: y = 1; y |= 0; y === 1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T2.js index 2b07ad143..03913ee5d 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T2.js - * @description Checking Expression and Variable statements for x /= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x /= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y /= -1; if (y !== -1) { $ERROR('#2: y = 1; y /= -1; y === -1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T3.js index 74ca601ac..9eb56bc3e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T3.js - * @description Checking Expression and Variable statements for x %= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x %= y +---*/ //CHECK#1 var x = -1; @@ -21,4 +19,3 @@ y %= 2; if (y !== -1) { $ERROR('#2: y = -1; y %= 2; y === -1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T4.js index b97dce0b0..c34072524 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_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. -/** - * Operator x @= y uses PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T4.js - * @description Checking Expression and Variable statements for x += y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x += y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y += 1; if (y !== 2) { $ERROR('#2: y = 1; y += 1; y === 2. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T5.js index 266953269..e0ac8c55c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T5.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T5.js - * @description Checking Expression and Variable statements for x -= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x -= y +---*/ //CHECK#1 var x = -1; @@ -21,4 +19,3 @@ y -= 1; if (y !== -2) { $ERROR('#2: y = -1; y -= 1; y === -2. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T6.js index 08aac7981..4217f7407 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T6.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T6.js - * @description Checking Expression and Variable statements for x <<= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x <<= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y <<= 1; if (y !== 2) { $ERROR('#2: y = 1; y <<= 1; y === 2. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T7.js index b2102b2b8..08560a409 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T7.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T7.js - * @description Checking Expression and Variable statements for x >>= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x >>= y +---*/ //CHECK#1 var x = 4; @@ -21,4 +19,3 @@ y >>= 1; if (y !== 2) { $ERROR('#2: y = 4; y >>= 1; y === 2. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T8.js index 7a7dbc7f6..1f0302c22 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T8.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T8.js - * @description Checking Expression and Variable statements for x >>>= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x >>>= y +---*/ //CHECK#1 var x = 4; @@ -21,4 +19,3 @@ y >>>= 1; if (y !== 2) { $ERROR('#2: y = 4; y >>>= 1; y === 2. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T9.js index 8e1408df5..684bf6113 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.1_T9.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 PutValue(x, x @ y) - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.1_T9.js - * @description Checking Expression and Variable statements for x &= y - */ +/*--- +info: Operator x @= y uses PutValue(x, x @ y) +description: Checking Expression and Variable statements for x &= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y &= 1; if (y !== 1) { $ERROR('#2: y = 1; y &= 1; y === 1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T1.js index 8a092bea6..071576647 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.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 returns x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T1.js - * @description Checking Expression and Variable statements for x *= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x *= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y1 = (y *= -1); if (y1 !== -1) { $ERROR('#2: y = 1; y1 = (y *= -1); y1 === -1. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T10.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T10.js index 26de3f6ed..d347163c3 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T10.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T10.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T10.js - * @description Checking Expression and Variable statements for x ^= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x ^= y +---*/ //CHECK#1 var x = 0; @@ -21,4 +19,3 @@ y1 = (y ^= 0); if (y1 !== 1) { $ERROR('#2: y = 1; y1 = (y ^= 0); y1 === 1. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T11.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T11.js index e9c1ed403..53ad0bc7a 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T11.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T11.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T11.js - * @description Checking Expression and Variable statements for x |= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x |= y +---*/ //CHECK#1 var x = 0; @@ -21,4 +19,3 @@ y1 = (y |= 0); if (y1 !== 1) { $ERROR('#2: y = 1; y1 = (y |= 0); y1 === 1. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T2.js index 8de215e0f..e999a2f5c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_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 returns x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T2.js - * @description Checking Expression and Variable statements for x /= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x /= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y1 = (y /= -1); if (y1 !== -1) { $ERROR('#2: y = 1; y1 = (y /= -1); y1 === -1. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T3.js index 2e4853ae2..f958aa4fe 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_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 returns x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T3.js - * @description Checking Expression and Variable statements for x %= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x %= y +---*/ //CHECK#1 var x = -1; @@ -21,4 +19,3 @@ y1 = (y %= 2); if (y1 !== -1) { $ERROR('#2: y = -1; y1 = (y %= 2); y1 === -1. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T4.js index 8aa84317f..b8406a251 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_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. -/** - * Operator x @= y returns x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T4.js - * @description Checking Expression and Variable statements for x += y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x += y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y1 = (y += 1); if (y1 !== 2) { $ERROR('#2: y = 1; y1 = (y += 1); y1 === 2. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T5.js index 50ca35e71..25bd6ce17 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T5.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T5.js - * @description Checking Expression and Variable statements for x -= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x -= y +---*/ //CHECK#1 var x = -1; @@ -21,4 +19,3 @@ y1 = (y -= 1); if (y1 !== -2) { $ERROR('#2: y = -1; y1 = (y -= 1); y1 === -2. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T6.js index 250be77af..2eb1d983e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T6.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T6.js - * @description Checking Expression and Variable statements for x <<= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x <<= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y1 = (y <<= 1); if (y1 !== 2) { $ERROR('#2: y = 1; y1 = (y <<= 1); y1 === 2. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T7.js index d37cce498..009165025 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T7.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T7.js - * @description Checking Expression and Variable statements for x >>= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x >>= y +---*/ //CHECK#1 var x = 4; @@ -21,4 +19,3 @@ y1 = (y >>= 1); if (y1 !== 2) { $ERROR('#2: y = 4; y1 = (y >>= 1); y1 === 2. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T8.js index f636cbfe5..9bc1f737f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T8.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T8.js - * @description Checking Expression and Variable statements for x >>>= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x >>>= y +---*/ //CHECK#1 var x = 4; @@ -21,4 +19,3 @@ y1 = (y >>>= 1); if (y1 !== 2) { $ERROR('#2: y = 4; y1 = (y >>>= 1); y1 === 2. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T9.js index de09e1fd5..05ff154a0 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A3.2_T9.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 x @ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A3.2_T9.js - * @description Checking Expression and Variable statements for x &= y - */ +/*--- +info: Operator x @= y returns x @ y +description: Checking Expression and Variable statements for x &= y +---*/ //CHECK#1 var x = 1; @@ -21,4 +19,3 @@ y1 = (y &= 1); if (y1 !== 1) { $ERROR('#2: y = 1; y1 = (y &= 1); y1 === 1. Actual: ' + (y1)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.1.js index e9b0ee0c4..0ca2364a9 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x ^= new Boolean(true); if (x !== 0) { $ERROR('#4: x = new Boolean(true); x ^= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.2.js index 28a622e5b..c8c2d5cc4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x ^= new Number(1); if (x !== 0) { $ERROR('#4: x = new Number(1); x ^= new Number(1); x === 0. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.3.js index bfaec704b..f787e1751 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x ^= "x"; if (x !== 1) { $ERROR('#6: x = "1"; x ^= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.4.js index 03b9f63e5..f398c8562 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x ^= null; if (x !== 0) { $ERROR('#4: x = null; x ^= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.1.js index 82f176291..3ca0b9a58 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_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: The production x ^= y is the same as x = x ^ 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 x = true; @@ -63,4 +63,3 @@ x ^= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new Number(1); x ^= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.2.js index 5b877f27a..4614c6ec9 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_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: The production x ^= y is the same as x = x ^ 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 x = "1"; @@ -77,4 +77,3 @@ x ^= "x"; if (x !== 1) { $ERROR('#10: x = 1; x ^= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.3.js index a41eb8d6c..93a435030 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x ^= new Number(1); if (x !== 1) { $ERROR('#4: x = null; x ^= new Number(1); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.4.js index 666f20604..e04cbb615 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x ^= new Number(1); if (x !== 1) { $ERROR('#4: x = undefined; x ^= new Number(1); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.5.js index aff6b25da..313ce3474 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_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: The production x ^= y is the same as x = x ^ 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 x = true; @@ -63,4 +63,3 @@ x ^= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new String("1"); x ^= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.6.js index 4b30cef36..40235e363 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x ^= new String("1"); if (x !== 1) { $ERROR('#4: x = undefined; x ^= new String("1"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.7.js index 880fb66ec..60cbbc047 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x ^= new String("1"); if (x !== 1) { $ERROR('#4: x = null; x ^= new String("1"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.8.js index 4e0e83855..5989a6428 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x ^= new Boolean(true); if (x !== 1) { $ERROR('#4: x = undefined; x ^= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.9.js index 59a622d54..e8cfa53b5 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_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. -/** - * The production x ^= y is the same as x = x ^ y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x ^= y is the same as x = x ^ y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x ^= new Boolean(true); if (x !== 1) { $ERROR('#4: x = null; x ^= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.1.js index afc6d63cf..a4507dd65 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x |= new Boolean(true); if (x !== 1) { $ERROR('#4: x = new Boolean(true); x |= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.2.js index 24a4a8fa5..73e077bda 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x |= y is the same as x = x | y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x |= new Number(1); if (x !== 1) { $ERROR('#4: x = new Number(1); x |= new Number(1); x === 1. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.3.js index 5e6ae229a..6ebc493f1 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x |= y is the same as x = x | y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x |= "x"; if (x !== 1) { $ERROR('#6: x = "1"; x |= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.4.js index 2c16de058..8a6005ecc 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x |= y is the same as x = x | y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x |= null; if (x !== 0) { $ERROR('#4: x = null; x |= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.1.js index f764964f0..021355784 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_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: The production x |= y is the same as x = x | 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 x = true; @@ -63,4 +63,3 @@ x |= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new Number(1); x |= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.2.js index 46e183eb9..874deb13f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_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: The production x |= y is the same as x = x | 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 x = "1"; @@ -77,4 +77,3 @@ x |= "x"; if (x !== 1) { $ERROR('#10: x = 1; x |= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.3.js index 070f1ecfe..f55fe1098 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x |= new Number(1); if (x !== 1) { $ERROR('#4: x = null; x |= new Number(1); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.4.js index e83610f36..06b1bf634 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x |= new Number(1); if (x !== 1) { $ERROR('#4: x = undefined; x |= new Number(1); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.5.js index 0511f6674..79f1cd6db 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_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: The production x |= y is the same as x = x | 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 x = true; @@ -63,4 +63,3 @@ x |= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new String("1"); x |= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.6.js index b3aa7445c..2e062488c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x |= new String("1"); if (x !== 1) { $ERROR('#4: x = undefined; x |= new String("1"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.7.js index b1539ad74..52e34532e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x |= new String("1"); if (x !== 1) { $ERROR('#4: x = null; x |= new String("1"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.8.js index dbe3e0a1f..6fb51cbd7 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x |= new Boolean(true); if (x !== 1) { $ERROR('#4: x = undefined; x |= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.9.js index aaf7e4a87..edcedbe71 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.11_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. -/** - * The production x |= y is the same as x = x | y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.11_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x |= y is the same as x = x | y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x |= new Boolean(true); if (x !== 1) { $ERROR('#4: x = null; x |= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.1.js index bfc284bbc..f98db886c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x *= new Boolean(true); if (x !== 1) { $ERROR('#4: x = new Boolean(true); x *= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.2.js index f13415b28..951874cf7 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x *= new Number(1); if (x !== 1) { $ERROR('#4: x = new Number(1); x *= new Number(1); x === 1. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.3.js index 67aca8fc1..cd5263c64 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x *= "x"; if (isNaN(x) !== true) { $ERROR('#6: x = "1"; x *= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.4.js index fbb268105..c83676a67 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x *= null; if (x !== 0) { $ERROR('#4: x = null; x *= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.1.js index 29db0f5cb..58fc54822 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Number (primitive and object) - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Number (primitive and object) +---*/ //CHECK#1 x = true; @@ -63,4 +63,3 @@ x *= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new Number(1); x *= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.2.js index 7d3046127..273dac1d7 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_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: The production x *= y is the same as the production x = x * 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 x = "1"; @@ -77,4 +77,3 @@ x *= "x"; if (isNaN(x) !== true) { $ERROR('#10: x = 1; x *= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.3.js index b796dc5cb..5f7304462 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x *= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x *= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.4.js index 925d73634..3bd5a1b90 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x *= new Number(1); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x *= new Number(1); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.5.js index 7799377cd..eb12ce46e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) amd Boolean (primitive and object) - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) amd Boolean (primitive and object) +---*/ //CHECK#1 x = true; @@ -63,4 +63,3 @@ x *= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new String("1"); x *= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.6.js index 07be01351..5c7dba468 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between primitive String (primitive or object) and Undefined - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + primitive String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x *= new String("1"); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x *= new String("1"); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.7.js index b0e8eddc4..d08f9b96f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x *= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x *= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.8.js index dc0adc04c..5401a4be0 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x *= new Boolean(true); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x *= new Boolean(true); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.9.js index 0a7443afe..1ba29c2b9 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.1_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. -/** - * The production x *= y is the same as the production x = x * y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.1_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x *= y is the same as the production x = x * y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x *= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x *= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.1.js index da1ab4cdf..5449cd63e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x /= new Boolean(true); if (x !== 1) { $ERROR('#4: x = new Boolean(true); x /= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.2.js index 3287c7c78..5a0549700 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x /= y is the same as x = x / y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x /= new Number(1); if (x !== 1) { $ERROR('#4: x = new Number(1); x /= new Number(1); x === 1. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.3.js index d327257ff..5f144c297 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x /= y is the same as x = x / y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x /= "x"; if (isNaN(x) !== true) { $ERROR('#6: x = "1"; x /= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.4.js index e97535c94..35144ff42 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x /= y is the same as x = x / y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x /= null; if (isNaN(x) !== true) { $ERROR('#4: x = null; x /= null; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.1.js index 46eae946e..98d6c8282 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_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: The production x /= y is the same as x = x / 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 x = true; @@ -63,4 +63,3 @@ x /= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new Number(1); x /= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.2.js index 8a607b515..8b48626a5 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_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: The production x /= y is the same as x = x / 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 x = "1"; @@ -77,4 +77,3 @@ x /= "x"; if (isNaN(x) !== true) { $ERROR('#10: x = 1; x /= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.3.js index dae7a092a..64204d832 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x /= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x /= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.4.js index 28c6d611d..c41089674 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x /= new Number(1); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x /= new Number(1); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.5.js index f4ea9ad5f..9867a2d38 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_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: The production x /= y is the same as x = x / 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 x = true; @@ -63,4 +63,3 @@ x /= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new String("1"); x /= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.6.js index 91ce4dd2b..f3ddfed93 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x /= new String("1"); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x /= new String("1"); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.7.js index 99905f4d9..8b3a44e42 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x /= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x /= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.8.js index c5c373b76..013fadff0 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x /= new Boolean(true); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x /= new Boolean(true); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.9.js index 466f9ce87..b286f4836 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.2_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. -/** - * The production x /= y is the same as x = x / y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.2_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x /= y is the same as x = x / y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x /= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x /= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.1.js index bb8d9cccd..29580e333 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x %= new Boolean(true); if (x !== 0) { $ERROR('#4: x = new Boolean(true); x %= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.2.js index 97093ecdb..070717a0e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x %= y is the same as x = x % y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x %= new Number(1); if (x !== 0) { $ERROR('#4: x = new Number(1); x %= new Number(1); x === 0. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.3.js index e95df69bb..96f22cf88 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x %= y is the same as x = x % y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x %= "x"; if (isNaN(x) !== true) { $ERROR('#6: x = "1"; x %= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.4.js index 51e763cac..eee1dbb32 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x %= y is the same as x = x % y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x %= null; if (isNaN(x) !== true) { $ERROR('#4: x = null; x %= null; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.1.js index a45476433..acb979ef2 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_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: The production x %= y is the same as x = x % 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 x = true; @@ -63,4 +63,3 @@ x %= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new Number(1); x %= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.2.js index e2027c6b3..a719ec779 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_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: The production x %= y is the same as x = x % 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 x = "1"; @@ -77,4 +77,3 @@ x %= "x"; if (isNaN(x) !== true) { $ERROR('#10: x = 1; x %= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.3.js index 8566f8702..f2967ae43 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x %= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x %= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.4.js index 259c937b4..6f77a7940 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x %= new Number(1); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x %= new Number(1); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.5.js index 69bff3cb4..754889079 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_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: The production x %= y is the same as x = x % 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 x = true; @@ -63,4 +63,3 @@ x %= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new String("1"); x %= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.6.js index 51f30a6d0..d4c0871ef 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x %= new String("1"); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x %= new String("1"); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.7.js index e451b5bfe..d28cd687d 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x %= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x %= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.8.js index 59a57095d..2e1816f7e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x %= new Boolean(true); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x %= new Boolean(true); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.9.js index ebb9b209f..8f15eaf36 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.3_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. -/** - * The production x %= y is the same as x = x % y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x %= y is the same as x = x % y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x %= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x %= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.1.js index 11313aac6..cc0848389 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x += new Boolean(true); if (x !== 2) { $ERROR('#4: x = new Boolean(true); x += new Boolean(true); x === 2. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.2.js index 141d56b4d..b059eea6f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x += y is the same as x = x + y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x += new Number(1); if (x !== 2) { $ERROR('#4: x = new Number(1); x += new Number(1); x === 2. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.3.js index da89e3789..c455ecb70 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T1.3.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x += y is the same as x = x + y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x += null; if (x !== 0) { $ERROR('#4: x = null; x += null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.4.js index 3ae788c91..1d477b3b9 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T1.4.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x += y is the same as x = x + y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -47,4 +45,3 @@ x += "x"; if (x !== "1x") { $ERROR('#6: x = "1"; x += "x"; x === "1x". Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.1.js index b26a00f80..1e2c73840 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_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: The production x += y is the same as x = x + 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 x = true; @@ -63,4 +63,3 @@ x += new Boolean(true); if (x !== 2) { $ERROR('#8: x = new Number(1); x += new Boolean(true); x === 2. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.2.js index 73b6923bf..807713a28 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x += new Number(1); if (x !== 1) { $ERROR('#4: x = null; x += new Number(1); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.3.js index 158d2aa24..4bcf4a44e 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x += new Number(1); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x += new Number(1); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.4.js index f54e30a45..1a7dca100 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x += new Boolean(true); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x += new Boolean(true); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.5.js index b020ca563..3b87630d0 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x += new Boolean(true); if (x !== 1) { $ERROR('#4: x = null; x += new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.6.js index 7833c0ce9..8eaaa2602 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: The production x += y is the same as x = x + 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 x = "1"; @@ -75,4 +75,3 @@ x += "x"; if (x !== "1x") { $ERROR('#10: x = 1; x += "x"; x === "1x". Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.7.js index 2d80cf750..1921fa7fa 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: The production x += y is the same as x = x + 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 x = true; @@ -63,4 +63,3 @@ x += new Boolean(true); if (x !== "1true") { $ERROR('#8: x = new String("1"); x += new Boolean(true); x === "1true". Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.8.js index c5f364c15..4bf5430ae 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x += new String("1"); if (x !== "undefined1") { $ERROR('#4: x = undefined; x += new String("1"); x === "undefined1". Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.9.js index f2a986ab8..6323fdc72 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.4_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. -/** - * The production x += y is the same as x = x + y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.4_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x += y is the same as x = x + y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x += new String("1"); if (x !== "null1") { $ERROR('#4: x = null; x += new String("1"); x === "null1". Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.1.js index 1a155d3da..6b90e002a 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x -= new Boolean(true); if (x !== 0) { $ERROR('#4: x = new Boolean(true); x -= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.2.js index 42d5abdb7..c77d753af 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x -= y is the same as x = x - y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x -= new Number(1); if (x !== 0) { $ERROR('#4: x = new Number(1); x -= new Number(1); x === 0. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.3.js index 298948f61..eeaf80d45 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x -= y is the same as x = x - y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x -= "x"; if (isNaN(x) !== true) { $ERROR('#6: x = "1"; x -= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.4.js index 28a9d2d76..09f626fc8 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x -= y is the same as x = x - y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x -= null; if (x !== 0) { $ERROR('#4: x = null; x -= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.1.js index 94b810cbc..de4f893b8 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_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: The production x -= y is the same as x = x - 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 x = true; @@ -63,4 +63,3 @@ x -= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new Number(1); x -= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.2.js index e71788b75..abd74bde4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_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: The production x -= y is the same as x = x - 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 x = "1"; @@ -77,4 +77,3 @@ x -= "x"; if (isNaN(x) !== true) { $ERROR('#10: x = 1; x -= "x"; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.3.js index f7385f53f..1e6ee6420 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x -= new Number(1); if (x !== -1) { $ERROR('#4: x = null; x -= new Number(1); x === -1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.4.js index 0c1c5375f..5761f574b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x -= new Number(1); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x -= new Number(1); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.5.js index c6c26409c..51d0988f4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_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: The production x -= y is the same as x = x - 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 x = true; @@ -63,4 +63,3 @@ x -= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new String("1"); x -= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.6.js index 39b17aeeb..4457252b3 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x -= new String("1"); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x -= new String("1"); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.7.js index b6d0cc0a8..7687c4ccc 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x -= new String("1"); if (x !== -1) { $ERROR('#4: x = null; x -= new String("1"); x === -1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.8.js index 61c68cfa3..1cdb28c60 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x -= new Boolean(true); if (isNaN(x) !== true) { $ERROR('#4: x = undefined; x -= new Boolean(true); x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.9.js index 4881e2d8b..9ba149f46 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.5_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. -/** - * The production x -= y is the same as x = x - y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.5_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x -= y is the same as x = x - y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x -= new Boolean(true); if (x !== -1) { $ERROR('#4: x = null; x -= new Boolean(true); x === -1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.1.js index d4b6680cf..c3ba20488 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x <<= new Boolean(true); if (x !== 2) { $ERROR('#4: x = new Boolean(true); x <<= new Boolean(true); x === 2. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.2.js index 63493abb6..2c1f3ae4f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x <<= new Number(1); if (x !== 2) { $ERROR('#4: x = new Number(1); x <<= new Number(1); x === 2. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.3.js index 8a31b37ed..125abc139 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x <<= "x"; if (x !== 1) { $ERROR('#6: x = "1"; x <<= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.4.js index 1c1a81781..a25ecf8c6 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x <<= null; if (x !== 0) { $ERROR('#4: x = null; x <<= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.1.js index 9348c745e..8447f6433 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_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: The production x <<= y is the same as x = x << 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 x = true; @@ -63,4 +63,3 @@ x <<= new Boolean(true); if (x !== 2) { $ERROR('#8: x = new Number(1); x <<= new Boolean(true); x === 2. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.2.js index 2cd913d8e..d8a3d5334 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_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: The production x <<= y is the same as x = x << 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 x = "1"; @@ -77,4 +77,3 @@ x <<= "x"; if (x !== 1) { $ERROR('#10: x = 1; x <<= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.3.js index 6040e1de8..9a0b3a98a 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x <<= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x <<= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.4.js index 1eee51320..8a6804d09 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x <<= new Number(1); if (x !== 0) { $ERROR('#4: x = undefined; x <<= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.5.js index 7616e4e7c..8755cef47 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_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: The production x <<= y is the same as x = x << 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 x = true; @@ -63,4 +63,3 @@ x <<= new Boolean(true); if (x !== 2) { $ERROR('#8: x = new String("1"); x <<= new Boolean(true); x === 2. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.6.js index 6fbf4f4f2..b2a50e9b5 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x <<= new String("1"); if (x !== 0) { $ERROR('#4: x = undefined; x <<= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.7.js index ce324f83a..683f505cf 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x <<= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x <<= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.8.js index 606ae17bc..68c35bfd1 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x <<= new Boolean(true); if (x !== 0) { $ERROR('#4: x = undefined; x <<= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.9.js index 2b0820a85..a02c398e1 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.6_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. -/** - * The production x <<= y is the same as x = x << y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.6_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x <<= y is the same as x = x << y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x <<= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x <<= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.1.js index aeb328d7c..9e2b59a6f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x >>= new Boolean(true); if (x !== 0) { $ERROR('#4: x = new Boolean(true); x >>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.2.js index dc83e1ad0..b6829d4ee 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x >>= new Number(1); if (x !== 0) { $ERROR('#4: x = new Number(1); x >>= new Number(1); x === 0. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.3.js index 9513cf37d..ff582ad9b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x >>= "x"; if (x !== 1) { $ERROR('#6: x = "1"; x >>= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.4.js index 7195a5e44..1d4c0ef21 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x >>= null; if (x !== 0) { $ERROR('#4: x = null; x >>= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.1.js index 8fa6a383c..1a22125eb 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_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: The production x >>= y is the same as x = x >> 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 x = true; @@ -63,4 +63,3 @@ x >>= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new Number(1); x >>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.2.js index 87e69c0aa..0b02d1d57 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_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: The production x >>= y is the same as x = x >> 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 x = "1"; @@ -77,4 +77,3 @@ x >>= "x"; if (x !== 1) { $ERROR('#10: x = 1; x >>= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.3.js index 0cf56fb53..3f0c5402d 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x >>= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x >>= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.4.js index f9ad58a30..2752be1dd 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x >>= new Number(1); if (x !== 0) { $ERROR('#4: x = undefined; x >>= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.5.js index bdc8b729f..8952636ec 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_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: The production x >>= y is the same as x = x >> 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 x = true; @@ -63,4 +63,3 @@ x >>= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new String("1"); x >>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.6.js index 970a3540b..4680fce63 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x >>= new String("1"); if (x !== 0) { $ERROR('#4: x = undefined; x >>= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.7.js index 7720b5512..8a6fcc0c2 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x >>= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x >>= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.8.js index 05a4415a1..1f60d6f76 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x >>= new Boolean(true); if (x !== 0) { $ERROR('#4: x = undefined; x >>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.9.js index ddfdbfc64..a91b79aab 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.7_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. -/** - * The production x >>= y is the same as x = x >> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.7_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x >>= y is the same as x = x >> y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x >>= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x >>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.1.js index 0b2e033dc..ccf5cf058 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x >>>= new Boolean(true); if (x !== 0) { $ERROR('#4: x = new Boolean(true); x >>>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.2.js index 64cb86684..4bba5a802 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x >>>= new Number(1); if (x !== 0) { $ERROR('#4: x = new Number(1); x >>>= new Number(1); x === 0. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.3.js index 47f197886..d3ca0904c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x >>>= "x"; if (x !== 1) { $ERROR('#6: x = "1"; x >>>= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.4.js index 6464ffa82..e3ef1eaec 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x >>>= null; if (x !== 0) { $ERROR('#4: x = null; x >>>= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.1.js index f610d8278..2f76e3eb1 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_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: The production x >>>= y is the same as x = x >>> 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 x = true; @@ -63,4 +63,3 @@ x >>>= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new Number(1); x >>>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.2.js index 9a1d719fe..7b7c1922a 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_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: The production x >>>= y is the same as x = x >>> 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 x = "1"; @@ -77,4 +77,3 @@ x >>>= "x"; if (x !== 1) { $ERROR('#10: x = 1; x >>>= "x"; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.3.js index bf809a272..c763832c2 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x >>>= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x >>>= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.4.js index 4e034735f..a7fce7701 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x >>>= new Number(1); if (x !== 0) { $ERROR('#4: x = undefined; x >>>= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.5.js index cf319f71d..c684f7049 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_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: The production x >>>= y is the same as x = x >>> 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 x = true; @@ -63,4 +63,3 @@ x >>>= new Boolean(true); if (x !== 0) { $ERROR('#8: x = new String("1"); x >>>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.6.js index d73b02dd2..4eb07870f 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x >>>= new String("1"); if (x !== 0) { $ERROR('#4: x = undefined; x >>>= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.7.js index b62931e6b..ca3027b48 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x >>>= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x >>>= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.8.js index a463cca10..f58c7487d 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x >>>= new Boolean(true); if (x !== 0) { $ERROR('#4: x = undefined; x >>>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.9.js index e055c7d2d..bf951d6c2 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.8_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. -/** - * The production x >>>= y is the same as x = x >>> y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.8_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x >>>= y is the same as x = x >>> y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x >>>= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x >>>= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.1.js index 13be4e002..35753c6a5 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x &= new Boolean(true); if (x !== 1) { $ERROR('#4: x = new Boolean(true); x &= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.2.js index cc1eb514b..16457384b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: The production x &= y is the same as x = x & y +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 x = 1; @@ -35,5 +33,3 @@ x &= new Number(1); if (x !== 1) { $ERROR('#4: x = new Number(1); x &= new Number(1); x === 1. Actual: ' + (x)); } - - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.3.js index e845b3c9d..06cce8dfb 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: The production x &= y is the same as x = x & y +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 x = "1"; @@ -49,4 +47,3 @@ x &= "x"; if (x !== 0) { $ERROR('#6: x = "1"; x &= "x"; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.4.js index dd93cbb91..f18d0e37c 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T1.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: The production x &= y is the same as x = x & y +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 x = null; @@ -35,4 +33,3 @@ x &= null; if (x !== 0) { $ERROR('#4: x = null; x &= null; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.1.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.1.js index 05cd8f837..2deba9d56 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.1.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_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: The production x &= y is the same as x = x & 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 x = true; @@ -63,4 +63,3 @@ x &= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new Number(1); x &= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.2.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.2.js index b394dd6e7..5716a67cf 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.2.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_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: The production x &= y is the same as x = x & 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 x = "1"; @@ -77,4 +77,3 @@ x &= "x"; if (x !== 0) { $ERROR('#10: x = 1; x &= "x"; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.3.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.3.js index b4150a583..421a29eec 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.3.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x &= new Number(1); if (x !== 0) { $ERROR('#4: x = null; x &= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.4.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.4.js index f7bb4d4d8..c4ecf1a59 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.4.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 x = 1; @@ -35,4 +35,3 @@ x &= new Number(1); if (x !== 0) { $ERROR('#4: x = undefined; x &= new Number(1); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.5.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.5.js index a9ce33f78..d0417a07b 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.5.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_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: The production x &= y is the same as x = x & 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 x = true; @@ -63,4 +63,3 @@ x &= new Boolean(true); if (x !== 1) { $ERROR('#8: x = new String("1"); x &= new Boolean(true); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.6.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.6.js index 2a62b9723..db81c7fb4 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.6.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x &= new String("1"); if (x !== 0) { $ERROR('#4: x = undefined; x &= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.7.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.7.js index b9303bf5f..7c298399d 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.7.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 x = "1"; @@ -35,4 +35,3 @@ x &= new String("1"); if (x !== 0) { $ERROR('#4: x = null; x &= new String("1"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.8.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.8.js index 0e4db1ffe..cad2f04cd 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.8.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x &= new Boolean(true); if (x !== 0) { $ERROR('#4: x = undefined; x &= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.9.js b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.9.js index 3e5a05304..2a8c7ed65 100644 --- a/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_T2.9.js +++ b/test/suite/ch11/11.13/11.13.2/S11.13.2_A4.9_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. -/** - * The production x &= y is the same as x = x & y - * - * @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: The production x &= y is the same as x = x & y +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 x = true; @@ -35,4 +35,3 @@ x &= new Boolean(true); if (x !== 0) { $ERROR('#4: x = null; x &= new Boolean(true); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.14/S11.14_A1.js b/test/suite/ch11/11.14/S11.14_A1.js index 2e3528db4..62cb2f5ee 100644 --- a/test/suite/ch11/11.14/S11.14_A1.js +++ b/test/suite/ch11/11.14/S11.14_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 Expression and , or between , and AssignmentExpression are allowed - * - * @path ch11/11.14/S11.14_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between Expression and , or between , and + AssignmentExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if ((eval("false\u0009,\u0009true")) !== true) { @@ -58,4 +58,3 @@ if ((eval("false\u2029,\u2029true")) !== true) { if ((eval("false\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029,\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) { $ERROR('#10: (false\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029,\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true'); } - diff --git a/test/suite/ch11/11.14/S11.14_A2.1_T1.js b/test/suite/ch11/11.14/S11.14_A2.1_T1.js index e53336886..f20024b85 100644 --- a/test/suite/ch11/11.14/S11.14_A2.1_T1.js +++ b/test/suite/ch11/11.14/S11.14_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 uses GetValue - * - * @path ch11/11.14/S11.14_A2.1_T1.js - * @description Either Expression is not Reference or GetBase is not null - */ +/*--- +info: Operator uses GetValue +description: Either Expression is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1,2) !== 2) { @@ -50,5 +48,3 @@ if ((objectx.prop = false, objecty.prop) !== objecty.prop) { $ERROR('#6: var objectx = new Object(); var objecty = new Object(); objectx.prop = true; objecty.prop = 1; objectx.prop = false, objecty.prop; objectx.prop === false'); } } - - diff --git a/test/suite/ch11/11.14/S11.14_A2.1_T2.js b/test/suite/ch11/11.14/S11.14_A2.1_T2.js index 3a6106edd..1c4116a0d 100644 --- a/test/suite/ch11/11.14/S11.14_A2.1_T2.js +++ b/test/suite/ch11/11.14/S11.14_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 uses GetValue - * - * @path ch11/11.14/S11.14_A2.1_T2.js - * @description If GetBase(Expression) is null, throw ReferenceError - */ +/*--- +info: Operator uses GetValue +description: If GetBase(Expression) 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.14/S11.14_A2.1_T3.js b/test/suite/ch11/11.14/S11.14_A2.1_T3.js index ad654eeb0..01fe84b0c 100644 --- a/test/suite/ch11/11.14/S11.14_A2.1_T3.js +++ b/test/suite/ch11/11.14/S11.14_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 uses GetValue - * - * @path ch11/11.14/S11.14_A2.1_T3.js - * @description If GetBase(AssigmentExpression) is null, throw ReferenceError - */ +/*--- +info: Operator uses GetValue +description: If GetBase(AssigmentExpression) 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.14/S11.14_A3.js b/test/suite/ch11/11.14/S11.14_A3.js index d8858aa3d..83eb1b630 100644 --- a/test/suite/ch11/11.14/S11.14_A3.js +++ b/test/suite/ch11/11.14/S11.14_A3.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. -/** - * Comma Operator evaluates all Expressions and returns the last of them - * - * @path ch11/11.14/S11.14_A3.js - * @description Checking with "=" - */ +/*--- +info: Comma Operator evaluates all Expressions and returns the last of them +description: Checking with "=" +---*/ //CHECK#1 var x = 0; @@ -35,4 +33,3 @@ if (y !== 2) { if (z !== 3) { $ERROR('#4: var x = 0; var y = 0; var z = 0; x = 1, y = 2, z = 3; z === 3. Actual: ' + (z)); } - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.1.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.1.js index d8b3561b8..e9ebb9997 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.1.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.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. -/** - * White Space and Line Terminator between MemberExpression or CallExpression and "." and between "." and Identifier are allowed - * - * @path ch11/11.2/11.2.1/S11.2.1_A1.1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MemberExpression or + CallExpression and "." and between "." and Identifier are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("Number\u0009.\u0009POSITIVE_INFINITY") !== Number.POSITIVE_INFINITY) { @@ -57,4 +57,3 @@ if (eval("Number\u2029.\u2029POSITIVE_INFINITY") !== Number.POSITIVE_INFINITY) { if (eval("Number\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029.\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029POSITIVE_INFINITY") !== Number.POSITIVE_INFINITY) { $ERROR('#10: Number\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029.\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029POSITIVE_INFINITY === Number.POSITIVE_INFINITY'); } - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.2.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.2.js index a820dbd5d..8821a67ed 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.2.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A1.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. -/** - * White Space and Line Terminator between "[" and MemberExpression or CallExpression and between Identifier and "]" are allowed - * - * @path ch11/11.2/11.2.1/S11.2.1_A1.2.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "[" and MemberExpression or + CallExpression and between Identifier and "]" are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval('Number[\u0009"POSITIVE_INFINITY"\u0009]') !== Number.POSITIVE_INFINITY) { @@ -57,4 +57,3 @@ if (eval('Number[\u2029"POSITIVE_INFINITY"\u2029]') !== Number.POSITIVE_INFINITY if (eval('Number[\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029"POSITIVE_INFINITY"\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029]') !== Number.POSITIVE_INFINITY) { $ERROR('#10: Number[\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029"POSITIVE_INFINITY"\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029] === Number.POSITIVE_INFINITY'); } - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A2.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A2.js index 1237eae5e..a206dc5f9 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A2.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A2.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. -/** - * MemberExpression and CallExpression uses GetValue - * - * @path ch11/11.2/11.2.1/S11.2.1_A2.js - * @description If GetBase(MemberExpression or CallExpression) is null, throw ReferenceError - */ +/*--- +info: MemberExpression and CallExpression uses GetValue +description: > + If GetBase(MemberExpression or CallExpression) is null, throw + ReferenceError +---*/ //CHECK#1 try { @@ -29,4 +29,3 @@ catch (e) { $ERROR('#2.2: object.prop throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T1.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T1.js index a13f25e7b..ecd342e6b 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T1.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_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. -/** - * MemberExpression calls ToObject(MemberExpression) and ToString(Expression). CallExpression calls ToObject(CallExpression) and ToString(Expression) - * - * @path ch11/11.2/11.2.1/S11.2.1_A3_T1.js - * @description Checking Boolean case - */ +/*--- +info: > + MemberExpression calls ToObject(MemberExpression) and + ToString(Expression). CallExpression calls ToObject(CallExpression) and + ToString(Expression) +description: Checking Boolean case +---*/ //CHECK#1 if (true.toString() !== "true") { @@ -26,5 +27,4 @@ if (new Boolean(true).toString() !== "true") { //CHECK#4 if (new Boolean(false)["toString"]() !== "false") { $ERROR('#4: new Boolean(false)["toString"]() === "false". Actual: ' + (new Boolean(false)["toString"]())); -} - +} diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T2.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T2.js index defe6a8c8..d4b06ebb6 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T2.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_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. -/** - * MemberExpression calls ToObject(MemberExpression) and ToString(Expression). CallExpression calls ToObject(CallExpression) and ToString(Expression) - * - * @path ch11/11.2/11.2.1/S11.2.1_A3_T2.js - * @description Checking Number case - */ +/*--- +info: > + MemberExpression calls ToObject(MemberExpression) and + ToString(Expression). CallExpression calls ToObject(CallExpression) and + ToString(Expression) +description: Checking Number case +---*/ //CHECK#1 if (1..toString() !== "1") { @@ -36,5 +37,4 @@ if (new Number(1).toString() !== "1") { //CHECK#6 if (new Number(1)["toFixed"](5) !== "1.00000") { $ERROR('#6: new Number(1)["toFixed"](5) === "1.00000". Actual: ' + (new Number(1)["toFixed"](5))); -} - +} diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T3.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T3.js index 14a0e85e3..9f50c7ad7 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T3.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T3.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. -/** - * MemberExpression calls ToObject(MemberExpression) and ToString(Expression). CallExpression calls ToObject(CallExpression) and ToString(Expression) - * - * @path ch11/11.2/11.2.1/S11.2.1_A3_T3.js - * @description Checking String case; - */ +/*--- +info: > + MemberExpression calls ToObject(MemberExpression) and + ToString(Expression). CallExpression calls ToObject(CallExpression) and + ToString(Expression) +description: Checking String case; +---*/ //CHECK#1 if ("abc123".charAt(5) !== "3") { @@ -36,5 +37,4 @@ if (new String("abc123").length !== 6) { //CHECK#6 if (new String("abc123")["charAt"](2) !== "c") { $ERROR('#6: new String("abc123")["charAt"](2) === "c". Actual: ' + (new String("abc123")["charAt"](2))); -} - +} diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T4.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T4.js index 2c360c65d..247870dc6 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T4.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T4.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. -/** - * MemberExpression calls ToObject(MemberExpression) and ToString(Expression). CallExpression calls ToObject(CallExpression) and ToString(Expression) - * - * @path ch11/11.2/11.2.1/S11.2.1_A3_T4.js - * @description Checking "undefined" case - */ +/*--- +info: > + MemberExpression calls ToObject(MemberExpression) and + ToString(Expression). CallExpression calls ToObject(CallExpression) and + ToString(Expression) +description: Checking "undefined" case +---*/ //CHECK#1 try { @@ -29,4 +30,3 @@ catch (e) { $ERROR('#2.2: undefined["toString"]() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T5.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T5.js index 405415f72..11955473a 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T5.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A3_T5.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. -/** - * MemberExpression calls ToObject(MemberExpression) and ToString(Expression). CallExpression calls ToObject(CallExpression) and ToString(Expression) - * - * @path ch11/11.2/11.2.1/S11.2.1_A3_T5.js - * @description Checking "null" case - */ +/*--- +info: > + MemberExpression calls ToObject(MemberExpression) and + ToString(Expression). CallExpression calls ToObject(CallExpression) and + ToString(Expression) +description: Checking "null" case +---*/ //CHECK#1 try { @@ -29,4 +30,3 @@ catch (e) { $ERROR('#2.2: null["toString"]() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js index 8f9212243..415833061 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T1.js - * @description Checking properties of this object - */ +/*--- +info: Check type of various properties +description: Checking properties of this object +---*/ //CHECK#1-32 if (typeof (this.NaN) === "undefined") $ERROR('#1: typeof (this.NaN) !== "undefined"'); @@ -37,4 +35,3 @@ if (typeof this.Date === "undefined") $ERROR('#29: typeof this.Date !== "undefi if (typeof this['Date'] === "undefined") $ERROR('#30: typeof this["Date"] !== "undefined"'); if (typeof this.Math === "undefined") $ERROR('#31: typeof this.Math !== "undefined"'); if (typeof this['Math'] === "undefined") $ERROR('#32: typeof this["Math"] !== "undefined"'); - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T2.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T2.js index ed27f8534..1bdb7c397 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T2.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T2.js - * @description Checking properties and methods of Object objects - */ +/*--- +info: Check type of various properties +description: Checking properties and methods of Object objects +---*/ //CHECK#1-8 if (typeof Object.prototype !== "object") $ERROR('#1: typeof Object.prototype === "object". Actual: ' + (typeof Object.prototype )); @@ -17,4 +15,3 @@ if (typeof Object.valueOf !== "function") $ERROR('#5: typeof Object.valueOf === if (typeof Object['valueOf'] !== "function") $ERROR('#6: typeof Object["valueOf"] === "function". Actual: ' + (typeof Object["valueOf"] )); if (typeof Object.constructor !== "function") $ERROR('#7: typeof Object.constructor === "function". Actual: ' + (typeof Object.constructor )); if (typeof Object['constructor'] !== "function") $ERROR('#8: typeof Object["constructor"] === "function". Actual: ' + (typeof Object["constructor"] )); - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T3.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T3.js index dfa72b139..cbdf53deb 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T3.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T3.js - * @description Checking properties of the Function object - */ +/*--- +info: Check type of various properties +description: Checking properties of the Function object +---*/ //CHECK#1-8 if (typeof Function.prototype !== "function") $ERROR('#1: typeof Function.prototype === "function". Actual: ' + (typeof Function.prototype )); @@ -17,4 +15,3 @@ if (typeof Function.prototype.length !== "number") $ERROR('#5: typeof Function. if (typeof Function.prototype['length'] !== "number") $ERROR('#6: typeof Function.prototype["length"] === "number". Actual: ' + (typeof Function.prototype["length"] )); if (typeof Function.prototype.valueOf !== "function") $ERROR('#7: typeof Function.prototype.valueOf === "function". Actual: ' + (typeof Function.prototype.valueOf )); if (typeof Function.prototype['valueOf'] !== "function") $ERROR('#8: typeof Function.prototype["valueOf"] === "function". Actual: ' + (typeof Function.prototype["valueOf"] )); - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T4.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T4.js index da4633fe2..7ad76349d 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T4.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T4.js - * @description Checking properties of the Array object - */ +/*--- +info: Check type of various properties +description: Checking properties of the Array object +---*/ //CHECK#1-8 if (typeof Array.prototype !== "object") $ERROR('#1: typeof Array.prototype === "object". Actual: ' + (typeof Array.prototype )); @@ -23,5 +21,3 @@ if (typeof Array.prototype.reverse !== "function") $ERROR('#11: typeof Array.p if (typeof Array.prototype['reverse'] !== "function") $ERROR('#12: typeof Array.prototype["reverse"] === "function". Actual: ' + (typeof Array.prototype["reverse"] )); if (typeof Array.prototype.sort !== "function") $ERROR('#13: typeof Array.prototype.sort === "function". Actual: ' + (typeof Array.prototype.sort )); if (typeof Array.prototype['sort'] !== "function") $ERROR('#14: typeof Array.prototype["sort"] === "function". Actual: ' + (typeof Array.prototype["sort"] )); - - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T5.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T5.js index 02904c0b4..8833112b3 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T5.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T5.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T5.js - * @description Checking properties of the String object - */ +/*--- +info: Check type of various properties +description: Checking properties of the String object +---*/ //CHECK#1-28 if (typeof String.prototype !== "object") $ERROR('#1: typeof String.prototype === "object". Actual: ' + (typeof String.prototype )); @@ -37,5 +35,3 @@ if (typeof String.prototype.toUpperCase !== "function") $ERROR('#25: typeof Str if (typeof String.prototype['toUpperCase'] !== "function") $ERROR('#26: typeof Array.prototype === "object". Actual: ' + (typeof Array.prototype )); if (typeof String.prototype.length !== "number") $ERROR('#27: typeof String.prototype.length === "number". Actual: ' + (typeof String.prototype.length )); if (typeof String.prototype['length'] !== "number") $ERROR('#28: typeof String.prototype["length"] === "number". Actual: ' + (typeof String.prototype["length"] )); - - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T6.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T6.js index 0d8668846..50e67700b 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T6.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T6.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T6.js - * @description Checking properties of the Boolean object - */ +/*--- +info: Check type of various properties +description: Checking properties of the Boolean object +---*/ //CHECK#1-8 if (typeof Boolean.prototype !== "object") $ERROR('#1: typeof Boolean.prototype === "object". Actual: ' + (typeof Boolean.prototype )); @@ -17,5 +15,3 @@ if (typeof Boolean.prototype.valueOf !== "function") $ERROR('#5: typeof Boolea if (typeof Boolean.prototype['valueOf'] !== "function") $ERROR('#6: typeof Boolean.prototype["valueOf"] === "function". Actual: ' + (typeof Boolean.prototype["valueOf"] )); if (typeof Boolean.prototype.toString !== "function") $ERROR('#7: typeof Boolean.prototype.toString === "function". Actual: ' + (typeof Boolean.prototype.toString )); if (typeof Boolean.prototype['toString'] !== "function") $ERROR('#8: typeof Boolean.prototype["toString"] === "function". Actual: ' + (typeof Boolean.prototype["toString"] )); - - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T7.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T7.js index 7d8826d80..d2fcb3d77 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T7.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T7.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T7.js - * @description Checking properties of the Number object - */ +/*--- +info: Check type of various properties +description: Checking properties of the Number object +---*/ //CHECK#1-16 if (typeof Number.MAX_VALUE !== "number") $ERROR('#1: typeof Number.MAX_VALUE === "number". Actual: ' + (typeof Number.MAX_VALUE )); @@ -25,6 +23,3 @@ if (typeof Number.prototype.constructor !== "function") $ERROR('#13: typeof Num if (typeof Number.prototype['constructor'] !== "function") $ERROR('#14: typeof Number.prototype["constructor"] === "function". Actual: ' + (typeof Number.prototype["constructor"] )); if (typeof Number.prototype.valueOf !== "function") $ERROR('#15: typeof Number.prototype.valueOf === "function". Actual: ' + (typeof Number.prototype.valueOf )); if (typeof Number.prototype['valueOf'] !== "function") $ERROR('#16: typeof Number.prototype["valueOf"] === "function". Actual: ' + (typeof Number.prototype["valueOf"] )); - - - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T8.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T8.js index fd3846e9c..a956de663 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T8.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T8.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T8.js - * @description Checking properties of the Math Object - */ +/*--- +info: Check type of various properties +description: Checking properties of the Math Object +---*/ //CHECK#1-52 if (typeof Math.E !== "number") $ERROR('#1: typeof Math.E === "number". Actual: ' + (typeof Math.E )); @@ -61,5 +59,3 @@ if (typeof Math.sqrt !== "function") $ERROR('#49: typeof Math.sqrt === "functio if (typeof Math['sqrt'] !== "function") $ERROR('#50: typeof Math["sqrt"] === "function". Actual: ' + (typeof Math["sqrt"] )); if (typeof Math.tan !== "function") $ERROR('#51: typeof Math.tan === "function". Actual: ' + (typeof Math.tan )); if (typeof Math['tan'] !== "function") $ERROR('#52: typeof Math["tan"] === "function". Actual: ' + (typeof Math["tan"] )); - - diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js index 409d49e58..de3e06a12 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.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 type of various properties - * - * @path ch11/11.2/11.2.1/S11.2.1_A4_T9.js - * @description Checking properties of the Date object - */ +/*--- +info: Check type of various properties +description: Checking properties of the Date object +---*/ //CHECK#1-86 if (typeof Date.parse !== "function") $ERROR('#1: typeof Date.parse === "function". Actual: ' + (typeof Date.parse )); @@ -89,6 +87,3 @@ if (typeof Date.prototype.toLocaleString !== "function") $ERROR('#81: typeof Da if (typeof Date.prototype['toLocaleString'] !== "function") $ERROR('#82: typeof Date.prototype["toLocaleString"] === "function". Actual: ' + (typeof Date.prototype["toLocaleString"] )); if (typeof Date.prototype.toUTCString !== "function") $ERROR('#83: typeof Date.prototype.toUTCString === "function". Actual: ' + (typeof Date.prototype.toUTCString )); if (typeof Date.prototype['toUTCString'] !== "function") $ERROR('#84: typeof Date.prototype["toUTCString"] === "function". Actual: ' + (typeof Date.prototype["toUTCString"] )); - - - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.1.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.1.js index 10811b4b0..54a2909fb 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.1.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.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. -/** - * White Space and Line Terminator between "new" and NewExpression are allowed - * - * @path ch11/11.2/11.2.2/S11.2.2_A1.1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "new" and NewExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("new\u0009Number") != 0) { @@ -57,4 +57,3 @@ if (eval("new\u2029Number") != 0) { if (eval("new\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Number") != 0) { $ERROR('#10: new\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Number == 0'); } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.2.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.2.js index d47eb10bf..2c4bece9a 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.2.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A1.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. -/** - * White Space and Line Terminator between "new" and MemberExpression are allowed - * - * @path ch11/11.2/11.2.2/S11.2.2_A1.2.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "new" and MemberExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("new\u0009Number()") != 0) { @@ -57,4 +57,3 @@ if (eval("new\u2029Number()") != 0) { if (eval("new\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Number()") != 0) { $ERROR('#10: new\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Number == 0'); } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A2.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A2.js index e879390fc..9109147c2 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A2.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A2.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 "new" uses GetValue - * - * @path ch11/11.2/11.2.2/S11.2.2_A2.js - * @description If GetBase(NewExpression) or GetBase(MemberExpression) is null, throw ReferenceError - */ +/*--- +info: Operator "new" uses GetValue +description: > + If GetBase(NewExpression) or GetBase(MemberExpression) is null, + throw ReferenceError +---*/ //CHECK#1 try { @@ -29,4 +29,3 @@ catch (e) { $ERROR('#2: new x() throw ReferenceError'); } } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T1.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T1.js index 3f52d9527..c87525dee 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T1.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_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. -/** - * If Type(NewExpression) or Type(MemberExpression) is not Object, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A3_T1.js - * @description Checking boolean primitive case - */ +/*--- +info: > + If Type(NewExpression) or Type(MemberExpression) is not Object, throw + TypeError +description: Checking boolean primitive case +---*/ //CHECK#1 try { @@ -42,5 +42,3 @@ catch (e) { $ERROR('#3: var x = true; new x() throw TypeError'); } } - - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T2.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T2.js index 1ad67c548..628d206ef 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T2.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T2.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 Type(NewExpression) or Type(MemberExpression) is not Object, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A3_T2.js - * @description Checking "number primitive" case - */ +/*--- +info: > + If Type(NewExpression) or Type(MemberExpression) is not Object, throw + TypeError +description: Checking "number primitive" case +---*/ //CHECK#1 try { @@ -42,4 +42,3 @@ catch (e) { $ERROR('#3: var x = 1; new x() throw TypeError'); } } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T3.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T3.js index c93406012..11c224f33 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T3.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T3.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 Type(NewExpression) or Type(MemberExpression) is not Object, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A3_T3.js - * @description Checking "string primitive" case - */ +/*--- +info: > + If Type(NewExpression) or Type(MemberExpression) is not Object, throw + TypeError +description: Checking "string primitive" case +---*/ //CHECK#1 try { @@ -42,4 +42,3 @@ catch (e) { $ERROR('#3: var x = "1"; new x() throw TypeError'); } } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T4.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T4.js index adbd1356c..bfef5ee1b 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T4.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T4.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 Type(NewExpression) or Type(MemberExpression) is not Object, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A3_T4.js - * @description Checking "undefined" case - */ +/*--- +info: > + If Type(NewExpression) or Type(MemberExpression) is not Object, throw + TypeError +description: Checking "undefined" case +---*/ //CHECK#1 try { @@ -42,4 +42,3 @@ catch (e) { $ERROR('#3: var x = undefined; new x() throw TypeError'); } } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T5.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T5.js index abf71da19..0fdf7f54a 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T5.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A3_T5.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 Type(NewExpression) or Type(MemberExpression) is not Object, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A3_T5.js - * @description Checking "null primitive" case - */ +/*--- +info: > + If Type(NewExpression) or Type(MemberExpression) is not Object, throw + TypeError +description: Checking "null primitive" case +---*/ //CHECK#1 try { @@ -42,4 +42,3 @@ catch (e) { $ERROR('#3: var x = null; new x() throw TypeError'); } } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T1.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T1.js index cd6517cbf..29d28e174 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T1.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_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. -/** - * If NewExpression or MemberExpression does not implement internal [[Construct]] method, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A4_T1.js - * @description Checking Boolean object case - */ +/*--- +info: > + If NewExpression or MemberExpression does not implement internal + [[Construct]] method, throw TypeError +description: Checking Boolean object case +---*/ //CHECK#1 try { @@ -42,5 +42,3 @@ catch (e) { $ERROR('#3: var x = new Boolean(true); new x() throw TypeError'); } } - - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T2.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T2.js index bc776ec65..9106c1503 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T2.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T2.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 NewExpression or MemberExpression does not implement internal [[Construct]] method, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A4_T2.js - * @description Checking Number object case - */ +/*--- +info: > + If NewExpression or MemberExpression does not implement internal + [[Construct]] method, throw TypeError +description: Checking Number object case +---*/ //CHECK#1 try { @@ -42,5 +42,3 @@ catch (e) { $ERROR('#3: var x = new Number(1); new x() throw TypeError'); } } - - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T3.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T3.js index 9027cf051..c207d1064 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T3.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T3.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 NewExpression or MemberExpression does not implement internal [[Construct]] method, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A4_T3.js - * @description Checking String object case - */ +/*--- +info: > + If NewExpression or MemberExpression does not implement internal + [[Construct]] method, throw TypeError +description: Checking String object case +---*/ //CHECK#1 try { @@ -42,5 +42,3 @@ catch (e) { $ERROR('#3: var x = new String("1"); new x() throw TypeError'); } } - - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T4.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T4.js index e240ba827..e780a7290 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T4.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T4.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 NewExpression or MemberExpression does not implement internal [[Construct]] method, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A4_T4.js - * @description Checking Global object case - */ +/*--- +info: > + If NewExpression or MemberExpression does not implement internal + [[Construct]] method, throw TypeError +description: Checking Global object case +---*/ //CHECK#1 try { @@ -29,4 +29,3 @@ catch (e) { $ERROR('#2: new this() throw TypeError'); } } - diff --git a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T5.js b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T5.js index 72fdae876..2854aa685 100644 --- a/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T5.js +++ b/test/suite/ch11/11.2/11.2.2/S11.2.2_A4_T5.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 NewExpression or MemberExpression does not implement internal [[Construct]] method, throw TypeError - * - * @path ch11/11.2/11.2.2/S11.2.2_A4_T5.js - * @description Checking Math object case - */ +/*--- +info: > + If NewExpression or MemberExpression does not implement internal + [[Construct]] method, throw TypeError +description: Checking Math object case +---*/ //CHECK#1 try { @@ -41,5 +41,3 @@ catch (e) { $ERROR('#3: var x = new Math(); new x() throw TypeError'); } } - - diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_1.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_1.js index 8ae5b5e84..6eb06c1d7 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_1.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_1.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_1.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (FunctionDeclaration)
- */
-
-
-function testcase() {
- var fooCalled = false;
- function foo(){ fooCalled = true; }
-
- var o = { };
- try {
- o.bar( foo() );
- throw new Exception("o.bar does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (fooCalled===true);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (FunctionDeclaration) +includes: [runTestCase.js] +---*/ + +function testcase() { + var fooCalled = false; + function foo(){ fooCalled = true; } + + var o = { }; + try { + o.bar( foo() ); + throw new Exception("o.bar does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (fooCalled===true); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_2.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_2.js index 5e7496d51..0d4495fc7 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_2.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_2.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_2.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (FunctionExpression)
- */
-
-
-function testcase() {
- var fooCalled = false;
- var foo = function (){ fooCalled = true; }
-
- var o = { };
- try {
- o.bar( foo() );
- throw new Exception("o.bar does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (fooCalled===true);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (FunctionExpression) +includes: [runTestCase.js] +---*/ + +function testcase() { + var fooCalled = false; + var foo = function (){ fooCalled = true; } + + var o = { }; + try { + o.bar( foo() ); + throw new Exception("o.bar does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (fooCalled===true); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_3.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_3.js index 04616e5a0..ce9b694ea 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_3.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_3.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_3.js
- * @description Call arguments are not evaluated before the check is made to see if the object is actually callable (undefined member)
- */
-
-
-function testcase() {
- var fooCalled = false;
- function foo(){ fooCalled = true; }
-
- var o = { };
- try {
- o.bar.gar( foo() );
- throw new Exception("o.bar does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (fooCalled===false);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are not evaluated before the check is made to see + if the object is actually callable (undefined member) +includes: [runTestCase.js] +---*/ + +function testcase() { + var fooCalled = false; + function foo(){ fooCalled = true; } + + var o = { }; + try { + o.bar.gar( foo() ); + throw new Exception("o.bar does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (fooCalled===false); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_4.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_4.js index f6970fa79..d629fd8f7 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_4.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_4.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_4.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (property)
- */
-
-
-function testcase() {
- var fooCalled = false;
- function foo(){ fooCalled = true; }
-
- var o = { };
- Object.defineProperty(o, "bar", {get: function() {this.barGetter = true; return 42;},
- set: function(x) {this.barSetter = true; }});
- try {
- o.bar( foo() );
- throw new Exception("o.bar does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (fooCalled===true) && (o.barGetter===true) && (o.barSetter===undefined);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (property) +includes: [runTestCase.js] +---*/ + +function testcase() { + var fooCalled = false; + function foo(){ fooCalled = true; } + + var o = { }; + Object.defineProperty(o, "bar", {get: function() {this.barGetter = true; return 42;}, + set: function(x) {this.barSetter = true; }}); + try { + o.bar( foo() ); + throw new Exception("o.bar does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (fooCalled===true) && (o.barGetter===true) && (o.barSetter===undefined); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_5.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_5.js index 3e2315f03..fbc0783cd 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_5.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_5.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_5.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (eval'ed)
- */
-
-
-function testcase() {
- var fooCalled = false;
- function foo(){ fooCalled = true; }
-
- var o = { };
- try {
- eval("o.bar( foo() );");
- throw new Exception("o.bar does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (fooCalled===true);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (eval'ed) +includes: [runTestCase.js] +---*/ + +function testcase() { + var fooCalled = false; + function foo(){ fooCalled = true; } + + var o = { }; + try { + eval("o.bar( foo() );"); + throw new Exception("o.bar does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (fooCalled===true); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_6.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_6.js index c2bfcc45a..b8ba459d2 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_6.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_6.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_6.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (getter called)
- */
-
-
-function testcase() {
- var o = { };
- Object.defineProperty(o, "bar", {get: function() {this.barGetter = true; return 42;},
- set: function(x) {this.barSetter = true; }});
- try {
- o.foo( o.bar );
- throw new Exception("o.foo does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (o.barGetter===true) && (o.barSetter===undefined);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (getter called) +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = { }; + Object.defineProperty(o, "bar", {get: function() {this.barGetter = true; return 42;}, + set: function(x) {this.barSetter = true; }}); + try { + o.foo( o.bar ); + throw new Exception("o.foo does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (o.barGetter===true) && (o.barSetter===undefined); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_7.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_7.js index 2c320e778..50c65bfb6 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_7.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_7.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_7.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (getter called as indexed property)
- */
-
-
-function testcase() {
- var o = { };
- Object.defineProperty(o, "bar", {get: function() {this.barGetter = true; return 42;},
- set: function(x) {this.barSetter = true; }});
- try {
- o.foo( o["bar"] );
- throw new Exception("o.foo does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (o.barGetter===true) && (o.barSetter===undefined);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (getter called as indexed property) +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = { }; + Object.defineProperty(o, "bar", {get: function() {this.barGetter = true; return 42;}, + set: function(x) {this.barSetter = true; }}); + try { + o.foo( o["bar"] ); + throw new Exception("o.foo does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (o.barGetter===true) && (o.barSetter===undefined); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/11.2.3-3_8.js b/test/suite/ch11/11.2/11.2.3/11.2.3-3_8.js index 67e5b9b80..4068fa0db 100644 --- a/test/suite/ch11/11.2/11.2.3/11.2.3-3_8.js +++ b/test/suite/ch11/11.2/11.2.3/11.2.3-3_8.js @@ -1,27 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.2/11.2.3/11.2.3-3_8.js
- * @description Call arguments are evaluated before the check is made to see if the object is actually callable (global object)
- */
-
-
-function testcase() {
- if (this!==fnGlobalObject()) {
- return;
- }
-
- var fooCalled = false;
- function foo(){ fooCalled = true; }
-
- try {
- this.bar( foo() );
- throw new Exception("this.bar does not exist!");
- } catch(e) {
- return (e instanceof TypeError) && (fooCalled===true);
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Call arguments are evaluated before the check is made to see if + the object is actually callable (global object) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + if (this!==fnGlobalObject()) { + return; + } + + var fooCalled = false; + function foo(){ fooCalled = true; } + + try { + this.bar( foo() ); + throw new Exception("this.bar does not exist!"); + } catch(e) { + return (e instanceof TypeError) && (fooCalled===true); + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A1.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A1.js index 19dfdce73..fe2b01c91 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A1.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.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 MemberExpression and Arguments are allowed - * - * @path ch11/11.2/11.2.3/S11.2.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MemberExpression and Arguments + are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("Number\u0009()") !== 0) { @@ -57,4 +57,3 @@ if (eval("Number\u2029()") !== 0) { if (eval("Number\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029()") !== 0) { $ERROR('#10: Number\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029() === 0'); } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A2.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A2.js index 29ae4a55a..b51b0e29b 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A2.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A2.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. -/** - * CallExpression : MemberExpression Arguments uses GetValue - * - * @path ch11/11.2/11.2.3/S11.2.3_A2.js - * @description If GetBase(MemberExpression) is null, throw ReferenceError - */ +/*--- +info: "CallExpression : MemberExpression Arguments uses GetValue" +description: If GetBase(MemberExpression) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -29,4 +27,3 @@ catch (e) { $ERROR('#2.2: x(1,2,3) throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T1.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T1.js index 5fbf7b68d..a66b84ca7 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T1.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_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. -/** - * If MemberExpression is not Object, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A3_T1.js - * @description Checking "boolean primitive" case - */ +/*--- +info: If MemberExpression is not Object, throw TypeError +description: Checking "boolean primitive" case +---*/ //CHECK#1 try { @@ -30,4 +28,3 @@ catch (e) { $ERROR('#2.2: var x = true; x() throw TypeError. Actual: ' + (e)) } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T2.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T2.js index 253f1b0e6..6fe12eb6e 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T2.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_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. -/** - * If MemberExpression is not Object, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A3_T2.js - * @description Checking "number primitive" case - */ +/*--- +info: If MemberExpression is not Object, throw TypeError +description: Checking "number primitive" case +---*/ //CHECK#1 try { @@ -30,4 +28,3 @@ catch (e) { $ERROR('#2.2: var x = 1; x() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T3.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T3.js index 388510f21..b6b7eee0d 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T3.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_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. -/** - * If MemberExpression is not Object, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A3_T3.js - * @description Checking "string primitive" case - */ +/*--- +info: If MemberExpression is not Object, throw TypeError +description: Checking "string primitive" case +---*/ //CHECK#1 try { @@ -30,4 +28,3 @@ catch (e) { $ERROR('#2.2: var x = "1"; x() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T4.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T4.js index a167260ed..7ab909b55 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T4.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_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. -/** - * If MemberExpression is not Object, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A3_T4.js - * @description Checking "undefined" case - */ +/*--- +info: If MemberExpression is not Object, throw TypeError +description: Checking "undefined" case +---*/ //CHECK#1 try { @@ -30,4 +28,3 @@ catch (e) { $ERROR('#2.2: var x = undefined; x() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T5.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T5.js index 77cd76fa4..263e0ee86 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T5.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T5.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 MemberExpression is not Object, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A3_T5.js - * @description Checking "null" case - */ +/*--- +info: If MemberExpression is not Object, throw TypeError +description: Checking "null" case +---*/ //CHECK#1 try { @@ -30,4 +28,3 @@ catch (e) { $ERROR('#2.2: var x = null; x() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T1.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T1.js index ca028fa5a..886e83894 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T1.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_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. -/** - * If MemberExpression does not implement the internal [[Call]] method, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A4_T1.js - * @description Checking Boolean object case - */ +/*--- +info: > + If MemberExpression does not implement the internal [[Call]] method, + throw TypeError +description: Checking Boolean object case +---*/ //CHECK#1 try { @@ -30,5 +30,3 @@ catch (e) { $ERROR('#2.2: var x = new Boolean(true); x() throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T2.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T2.js index 41f898305..c8e6b956b 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T2.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T2.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 MemberExpression does not implement the internal [[Call]] method, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A4_T2.js - * @description Checking Number object case - */ +/*--- +info: > + If MemberExpression does not implement the internal [[Call]] method, + throw TypeError +description: Checking Number object case +---*/ //CHECK#1 try { @@ -30,5 +30,3 @@ catch (e) { $ERROR('#2.2: var x = new Number(1); x() throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T3.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T3.js index 108085425..46bb9b1fb 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T3.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T3.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 MemberExpression does not implement the internal [[Call]] method, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A4_T3.js - * @description Checking String object case - */ +/*--- +info: > + If MemberExpression does not implement the internal [[Call]] method, + throw TypeError +description: Checking String object case +---*/ //CHECK#1 try { @@ -30,4 +30,3 @@ catch (e) { $ERROR('#2.2: var x = new String("1"); x() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T4.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T4.js index a19cc05e6..f77ef16c9 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T4.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T4.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 MemberExpression does not implement the internal [[Call]] method, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A4_T4.js - * @description Checking Global object case - */ +/*--- +info: > + If MemberExpression does not implement the internal [[Call]] method, + throw TypeError +description: Checking Global object case +---*/ //CHECK#1 try { @@ -18,4 +18,3 @@ catch (e) { $ERROR('#1.2: this() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T5.js b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T5.js index ddaf40c8d..6cfa04bcf 100644 --- a/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T5.js +++ b/test/suite/ch11/11.2/11.2.3/S11.2.3_A4_T5.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 MemberExpression does not implement the internal [[Call]] method, throw TypeError - * - * @path ch11/11.2/11.2.3/S11.2.3_A4_T5.js - * @description Checking Math object case - */ +/*--- +info: > + If MemberExpression does not implement the internal [[Call]] method, + throw TypeError +description: Checking Math object case +---*/ //CHECK#1 try { @@ -18,5 +18,3 @@ catch (e) { $ERROR('#1.2: Math() throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js index 0d31a6c22..1a06be561 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.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. -/** - * Arguments : () - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js - * @description Function is declared with no FormalParameterList - */ +/*--- +info: "Arguments : ()" +description: Function is declared with no FormalParameterList +---*/ function f_arg() { return arguments; @@ -21,4 +19,3 @@ if (f_arg().length !== 0) { if (f_arg()[0] !== undefined) { $ERROR('#2: function f_arg() {return arguments;} f_arg()[0] === undefined. Actual: ' + (f_arg()[0])); } - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.1_T2.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.1_T2.js index 6be2a9937..6466013b2 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.1_T2.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.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. -/** - * Arguments : () - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.1_T2.js - * @description Function is declared with FormalParameterList - */ +/*--- +info: "Arguments : ()" +description: Function is declared with FormalParameterList +---*/ function f_arg(x,y) { return arguments; @@ -26,4 +24,3 @@ if (f_arg()[0] !== undefined) { if (f_arg.length !== 2) { $ERROR('#3: function f_arg(x,y) {return arguments;} f_arg.length === 2. Actual: ' + (f_arg.length)); } - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_T1.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_T1.js index aa419e295..860214150 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_T1.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.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. -/** - * Arguments : (ArgumentList) - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.2_T1.js - * @description Function is declared with no FormalParameterList - */ +/*--- +info: "Arguments : (ArgumentList)" +description: Function is declared with no FormalParameterList +---*/ f_arg = function() { return arguments; @@ -36,4 +34,3 @@ if (f_arg(1,2,3)[2] !== 3) { if (f_arg(1,2,3)[3] !== undefined) { $ERROR('#5: f_arg = function()() {return arguments;} f_arg(1,2,3)[3] === undefined. Actual: ' + (f_arg(1,2,3)[3])); } - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_T2.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_T2.js index 2541df3d1..b0208f7c6 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_T2.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.2_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. -/** - * Arguments : (ArgumentList) - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.2_T2.js - * @description Function is declared with FormalParameterList - */ +/*--- +info: "Arguments : (ArgumentList)" +description: Function is declared with FormalParameterList +---*/ f_arg = function(x,y) { return arguments; @@ -41,4 +39,3 @@ if (f_arg(1,2,3)[3] !== undefined) { if (f_arg.length !== 2) { $ERROR('#6: f_arg = function(x,y) {return arguments;} f_arg.length === 2. Actual: ' + (f_arg.length)); } - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.3_T1.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.3_T1.js index e54238ea1..3613f2895 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.3_T1.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.3_T1.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Arguments : (ArgumentList : ArgumentList,, AssignmentExpression) is a bad syntax - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.3_T1.js - * @description incorrect syntax - * @negative - */ +/*--- +info: > + Arguments : (ArgumentList : ArgumentList,, AssignmentExpression) is a bad + syntax +description: incorrect syntax +flags: [negative] +---*/ function f_arg() { } f_arg(1,,2); - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T1.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T1.js index a2eb7989b..94db97698 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T1.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T1.js @@ -1,19 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Arguments : (ArgumentList : ArgumentList, AssignmentExpression) - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T1.js - * @description Return an internal list whose length is one greater than the - * length of ArgumentList and whose items are the items of ArgumentList, in order, - * followed at the end by GetValue(AssignmentExpression), which is the last item of - * the new list - */ +/*--- +info: "Arguments : (ArgumentList : ArgumentList, AssignmentExpression)" +description: > + Return an internal list whose length is one greater than the + length of ArgumentList and whose items are the items of + ArgumentList, in order, followed at the end by + GetValue(AssignmentExpression), which is the last item of the new + list +---*/ function f_arg() { } //CHECK#1 f_arg(x=1,x); - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js index 0db853abd..e76730a79 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js @@ -1,15 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Arguments : (ArgumentList : ArgumentList, AssignmentExpression) - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js - * @description Return an internal list whose length is one greater than the - * length of ArgumentList and whose items are the items of ArgumentList, in order, - * followed at the end by GetValue(AssignmentExpression), which is the last item of - * the new list - */ +/*--- +info: "Arguments : (ArgumentList : ArgumentList, AssignmentExpression)" +description: > + Return an internal list whose length is one greater than the + length of ArgumentList and whose items are the items of + ArgumentList, in order, followed at the end by + GetValue(AssignmentExpression), which is the last item of the new + list +---*/ function f_arg() { } @@ -24,4 +24,3 @@ catch (e) { $ERROR('#1.2: function f_arg() {} f_arg(x,x=1) throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js index 7d8bd02c9..577a4bcbe 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js @@ -1,15 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Arguments : (ArgumentList : ArgumentList, AssignmentExpression) - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js - * @description Return an internal list whose length is one greater than the - * length of ArgumentList and whose items are the items of ArgumentList, in order, - * followed at the end by GetValue(AssignmentExpression), which is the last item of - * the new list - */ +/*--- +info: "Arguments : (ArgumentList : ArgumentList, AssignmentExpression)" +description: > + Return an internal list whose length is one greater than the + length of ArgumentList and whose items are the items of + ArgumentList, in order, followed at the end by + GetValue(AssignmentExpression), which is the last item of the new + list +---*/ function f_arg(x,y,z) { return z; @@ -19,4 +19,3 @@ function f_arg(x,y,z) { if (f_arg(x=1,y=x,x+y) !== 2) { $ERROR('#1: function f_arg(x,y,z) {return z;} f_arg(x=1,y=x,x+y) === 2. Actual: ' + (f_arg(x=1,y=x,x+y))); } - diff --git a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T4.js b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T4.js index 83b228a88..86cfecec5 100644 --- a/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T4.js +++ b/test/suite/ch11/11.2/11.2.4/S11.2.4_A1.4_T4.js @@ -1,15 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Arguments : (ArgumentList : ArgumentList, AssignmentExpression) - * - * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T4.js - * @description Return an internal list whose length is one greater than the - * length of ArgumentList and whose items are the items of ArgumentList, in order, - * followed at the end by GetValue(AssignmentExpression), which is the last item of - * the new list - */ +/*--- +info: "Arguments : (ArgumentList : ArgumentList, AssignmentExpression)" +description: > + Return an internal list whose length is one greater than the + length of ArgumentList and whose items are the items of + ArgumentList, in order, followed at the end by + GetValue(AssignmentExpression), which is the last item of the new + list +---*/ var x = function () { throw "x"; }; var y = function () { throw "y"; }; @@ -31,4 +31,3 @@ catch (e) { } } } - diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js index 28b299108..edd091396 100644 --- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js +++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.1/11.3.1-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appear as a PostfixExpression(arguments++)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments++;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'arguments' + appear as a PostfixExpression(arguments++) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments++;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js index 15456cd5c..b177e0bfc 100644 --- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js +++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js @@ -1,16 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch11/11.3/11.3.1/11.3.1-2-1gs.js
- * @description Strict Mode - SyntaxError is throw if the identifier arguments appear as a PostfixExpression(arguments++)
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-arguments++;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is throw if the identifier arguments + appear as a PostfixExpression(arguments++) +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +arguments++; diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js index f71ea4568..b1dcb70cc 100644 --- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js +++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.1/11.3.1-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appear as a PostfixExpression(eval++)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval++;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'eval' + appear as a PostfixExpression(eval++) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval++;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js index e46a70606..e7defbc6e 100644 --- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js +++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.1/11.3.1-2-3-s.js
- * @description Strict Mode - SyntaxError is not thrown if the identifier 'arguments[...]' appears as a PostfixExpression(arguments++)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- arguments[1] = 7;
- arguments[1]++;
- return arguments[1]===8;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is not thrown if the identifier + 'arguments[...]' appears as a PostfixExpression(arguments++) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + arguments[1] = 7; + arguments[1]++; + return arguments[1]===8; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js index 9f8bc65a1..8541e15ee 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "++" is not allowed - * - * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js - * @description Checking Line Feed - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "++" is not allowed +description: Checking Line Feed +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u000A++"); - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js index 4c97a56d1..7c9467a8d 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "++" is not allowed - * - * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js - * @description Carriage Return - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "++" is not allowed +description: Carriage Return +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u000D++"); - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js index 16eb546f4..ddae0cefd 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "++" is not allowed - * - * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js - * @description Checking Line Seprator - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "++" is not allowed +description: Checking Line Seprator +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u2028++"); - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js index 8f9d56e71..53c9e905e 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "++" is not allowed - * - * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js - * @description Checking Paragraph separator - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "++" is not allowed +description: Checking Paragraph separator +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u2029++"); - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js index b8df6ebd7..a378888aa 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.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. -/** - * White Space between LeftHandSideExpression and "++" are allowed - * - * @path ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js - * @description Checking by using eval - */ +/*--- +info: White Space between LeftHandSideExpression and "++" are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("var x = 0; x\u0009++; x") !== 1) { @@ -37,4 +35,3 @@ if (eval("var x = 0; x\u00A0++; x") !== 1) { if (eval("var x = 0; x\u0009\u000B\u000C\u0020\u00A0++; x") !== 1) { $ERROR('#6: var x = 0; x\\u0009\\u000B\\u000C\\u0020\\u00A0++; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js index 3f32ea5b7..ce3dc89e8 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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++ uses GetValue and PutValue - * - * @path ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js - * @description Type(x) is Reference and GetBase(x) is not null - */ +/*--- +info: Operator x++ uses GetValue and PutValue +description: Type(x) is Reference and GetBase(x) is not null +---*/ //CHECK#1 var x = 1; @@ -41,6 +39,3 @@ if (y !== 1) { $ERROR('#3: var object = new Object(); object.prop = 1; var y = object.prop++; object.prop === 1 + 1. Actual: ' + (object.prop)); } } - - - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js index 5bc1abbad..59aae50e1 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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++ uses GetValue and PutValue - * - * @path ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x++ uses GetValue and PutValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x++ throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js index fec236e6d..9956452d9 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x++ uses GetValue and PutValue - * - * @path ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js - * @description If Type(x) is not Reference, throw ReferenceError (or SyntaxError) - * @negative - */ +/*--- +info: Operator x++ uses GetValue and PutValue +description: If Type(x) is not Reference, throw ReferenceError (or SyntaxError) +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +19,3 @@ catch (e) { 1++; } } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js index dc82a92da..1d1a77902 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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++ uses [[Default Value]] - * - * @path ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x++ uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -107,4 +105,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object++ throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js index e3003d2d4..4c625e470 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_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++ returns x = ToNumber(x) + 1 - * - * @path ch11/11.3/11.3.1/S11.3.1_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator x++ returns x = ToNumber(x) + 1 +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = false; @@ -21,4 +19,3 @@ x++; if (x !== 1 + 1) { $ERROR('#2: var x = new Boolean(true); x++; x === 1 + 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js index 6b5560d1a..1d11733fe 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_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++ returns x = ToNumber(x) + 1 - * - * @path ch11/11.3/11.3.1/S11.3.1_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator x++ returns x = ToNumber(x) + 1 +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 0.1; @@ -21,4 +19,3 @@ x++; if (x !== -1.1 + 1) { $ERROR('#2: var x = new Number(-1.1); x++; x === -1.1 + 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js index b43aa2c42..1196c44b9 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_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++ returns x = ToNumber(x) + 1 - * - * @path ch11/11.3/11.3.1/S11.3.1_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator x++ returns x = ToNumber(x) + 1 +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -28,4 +26,3 @@ x++; if (x !== -1 + 1) { $ERROR('#3: var x = new String("-1"); x++; x === -1 + 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js index 1a6fd79ec..1e9eb1854 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_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. -/** - * Operator x++ returns x = ToNumber(x) + 1 - * - * @path ch11/11.3/11.3.1/S11.3.1_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator x++ returns x = ToNumber(x) + 1 +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -21,4 +19,3 @@ x++; if (x !== 1) { $ERROR('#2: var x = null; x++; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js index c18fc2085..46e499aec 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.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++ returns x = ToNumber(x) + 1 - * - * @path ch11/11.3/11.3.1/S11.3.1_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator x++ returns x = ToNumber(x) + 1 +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -21,4 +19,3 @@ x++; if (isNaN(x) !== true) { $ERROR('#2: var x = function(){return 1}; x++; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js index 174800a77..5b4ad088f 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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. -/** - * Operator x++ returns ToNumber(x) - * - * @path ch11/11.3/11.3.1/S11.3.1_A4_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator x++ returns ToNumber(x) +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = false; @@ -21,4 +19,3 @@ var y = x++; if (y !== 1) { $ERROR('#2: var x = new Boolean(true); var y = x++; y === 1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js index 36fe9aec5..785f980cd 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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. -/** - * Operator x++ returns ToNumber(x) - * - * @path ch11/11.3/11.3.1/S11.3.1_A4_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator x++ returns ToNumber(x) +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = -0.1; @@ -21,4 +19,3 @@ var y = x++; if (y !== 1.1) { $ERROR('#2: var x = new Number(1.1); var y = x++; y === 1.1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js index 540ee9024..a2cfea3f2 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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. -/** - * Operator x++ returns ToNumber(x) - * - * @path ch11/11.3/11.3.1/S11.3.1_A4_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator x++ returns ToNumber(x) +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -28,4 +26,3 @@ var y = x++; if (y !== -1) { $ERROR('#3: var x = new String("-1"); var y = x++; y === -1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js index cf703689d..58c496003 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.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. -/** - * Operator x++ returns ToNumber(x) - * - * @path ch11/11.3/11.3.1/S11.3.1_A4_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator x++ returns ToNumber(x) +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -21,4 +19,3 @@ var y = x++; if (y !== 0) { $ERROR('#2: var x = null; var y = x++; y === 0. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js index 09a248cf3..a1f01cb5a 100644 --- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js +++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.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++ returns ToNumber(x) - * - * @path ch11/11.3/11.3.1/S11.3.1_A4_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator x++ returns ToNumber(x) +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -21,4 +19,3 @@ var y = x++; if (isNaN(y) !== true) { $ERROR('#2: var x = function(){return 1}; var y = x++; y === Not-a-Number. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js b/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js index f40c73ac1..5f4448011 100644 --- a/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js +++ b/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.2/11.3.2-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appear as a PostfixExpression(arguments--)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments--;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'arguments' + appear as a PostfixExpression(arguments--) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("arguments--;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js b/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js index 09c186fd3..bb56564bd 100644 --- a/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js +++ b/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.2/11.3.2-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appear as a PostfixExpression(eval--)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval--;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown if the identifier 'eval' + appear as a PostfixExpression(eval--) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("eval--;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js b/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js index 6eb43dbbd..c413323c1 100644 --- a/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js +++ b/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.2/11.3.2-2-3-s.js
- * @description Strict Mode - SyntaxError is not thrown if the identifier 'arguments[...]' appears as a PostfixExpression(arguments--)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- arguments[1] = 7;
- arguments[1]--;
- return arguments[1]===6;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is not thrown if the identifier + 'arguments[...]' appears as a PostfixExpression(arguments--) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + arguments[1] = 7; + arguments[1]--; + return arguments[1]===6; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js index 2fe2120bf..881ef8f20 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "--" is not allowed - * - * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js - * @description Checking Line Feed - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "--" is not allowed +description: Checking Line Feed +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u000A--"); - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js index 49654288a..2fd50c357 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "--" is not allowed - * - * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js - * @description Checking Carriage Return - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "--" is not allowed +description: Checking Carriage Return +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u000D--"); - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js index 5e0af0e99..9921ebc16 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "--" is not allowed - * - * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js - * @description Checking Page separator - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "--" is not allowed +description: Checking Page separator +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u2028--"); - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js index e7d54a741..8a99e8189 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminator between LeftHandSideExpression and "--" is not allowed - * - * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js - * @description Checking Line separator - * @negative - */ +/*--- +info: Line Terminator between LeftHandSideExpression and "--" is not allowed +description: Checking Line separator +flags: [negative] +---*/ //CHECK#1 eval("var x = 1; x\u2029--"); - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js index 8140d2b8e..2ca8d0521 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.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. -/** - * White Space between LeftHandSideExpression and "--" are allowed - * - * @path ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js - * @description Checking by using eval - */ +/*--- +info: White Space between LeftHandSideExpression and "--" are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("var x = 0; x\u0009--; x") !== -1) { @@ -37,4 +35,3 @@ if (eval("var x = 0; x\u00A0--; x") !== -1) { if (eval("var x = 0; x\u0009\u000B\u000C\u0020\u00A0--; x") !== -1) { $ERROR('#6: var x = 0; x\\u0009\\u000B\\u000C\\u0020\\u00A0--; x === -1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js index b665af599..67ca58971 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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-- uses GetValue and PutValue - * - * @path ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js - * @description Type(x) is Reference and GetBase(x) is not null - */ +/*--- +info: Operator x-- uses GetValue and PutValue +description: Type(x) is Reference and GetBase(x) is not null +---*/ //CHECK#1 var x = 1; @@ -38,4 +36,3 @@ if (object.prop-- !== 1) { $ERROR('#3: var object = new Object(); object.prop = 1; object.prop--; object.prop === 1 - 1. Actual: ' + (object.prop)); } } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js index cae6d80b5..9e243d54f 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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-- uses GetValue and PutValue - * - * @path ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x-- uses GetValue and PutValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x-- throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js index adcf758c3..49b6543fe 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator x-- uses GetValue and PutValue - * - * @path ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js - * @description If Type(x) is not Reference, throw ReferenceError (or SyntaxError) - * @negative - */ +/*--- +info: Operator x-- uses GetValue and PutValue +description: If Type(x) is not Reference, throw ReferenceError (or SyntaxError) +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +19,3 @@ catch (e) { 1--; } } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js index 22f31a1fa..7051544c4 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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-- uses [[Default Value]] - * - * @path ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x-- uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -107,4 +105,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object-- throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js index d35aeffc5..60a846512 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_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-- returns x = ToNumber(x) - 1 - * - * @path ch11/11.3/11.3.2/S11.3.2_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator x-- returns x = ToNumber(x) - 1 +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = true; @@ -21,4 +19,3 @@ x--; if (x !== 0 - 1) { $ERROR('#2: var x = new Boolean(false); x--; x === 0 - 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js index cf1435a4c..16b38c982 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_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-- returns x = ToNumber(x) - 1 - * - * @path ch11/11.3/11.3.2/S11.3.2_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator x-- returns x = ToNumber(x) - 1 +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 1.1; @@ -21,4 +19,3 @@ x--; if (x !== -0.1 - 1) { $ERROR('#2: var x = new Number(-0.1); x--; x === -0.1 - 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js index 63108752b..19dcfafe9 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_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-- returns x = ToNumber(x) - 1 - * - * @path ch11/11.3/11.3.2/S11.3.2_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator x-- returns x = ToNumber(x) - 1 +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -28,4 +26,3 @@ x--; if (x !== -1 - 1) { $ERROR('#3: var x = new String("-1"); x--; x === -1 - 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js index ea248bfb0..a3ea54a5b 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_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. -/** - * Operator x-- returns x = ToNumber(x) - 1 - * - * @path ch11/11.3/11.3.2/S11.3.2_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator x-- returns x = ToNumber(x) - 1 +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -21,4 +19,3 @@ x--; if (x !== -1) { $ERROR('#2: var x = null; x--; x === -1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js index b571f0654..da9c4e6f5 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.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-- returns x = ToNumber(x) - 1 - * - * @path ch11/11.3/11.3.2/S11.3.2_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator x-- returns x = ToNumber(x) - 1 +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -21,4 +19,3 @@ x--; if (isNaN(x) !== true) { $ERROR('#2: var x = function(){return 1}; x--; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js index 4d07e77e4..5ed893bd1 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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. -/** - * Operator x-- returns ToNumber(x) - * - * @path ch11/11.3/11.3.2/S11.3.2_A4_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator x-- returns ToNumber(x) +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = true; @@ -21,4 +19,3 @@ var y = x--; if (y !== 0) { $ERROR('#2: var x = new Boolean(false); var y = x--; y === 0. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js index eb5c3bcde..7af12bd6e 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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. -/** - * Operator x-- returns ToNumber(x) - * - * @path ch11/11.3/11.3.2/S11.3.2_A4_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator x-- returns ToNumber(x) +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 1.1; @@ -21,4 +19,3 @@ var y = x--; if (y !== -0.1) { $ERROR('#2: var x = new Number(-0.1); var y = x--; y === -0.1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js index 8a4edfca8..8cd6c9140 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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. -/** - * Operator x-- returns ToNumber(x) - * - * @path ch11/11.3/11.3.2/S11.3.2_A4_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator x-- returns ToNumber(x) +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -28,4 +26,3 @@ var y = x--; if (y !== -1) { $ERROR('#3: var x = new String("-1"); var y = x--; y === -1. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js index add21d32a..4256ee0a1 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.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. -/** - * Operator x-- returns ToNumber(x) - * - * @path ch11/11.3/11.3.2/S11.3.2_A4_T4.js - * @description If Type(x) is undefined or null - */ +/*--- +info: Operator x-- returns ToNumber(x) +description: If Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -21,4 +19,3 @@ var y = x--; if (y !== 0) { $ERROR('#2: var x = null; var y = x--; y === 0. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js index aa6856568..1c80151da 100644 --- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js +++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.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-- returns ToNumber(x) - * - * @path ch11/11.3/11.3.2/S11.3.2_A4_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator x-- returns ToNumber(x) +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -21,4 +19,3 @@ var y = x--; if (isNaN(y) !== true) { $ERROR('#2: var x = function(){return 1}; var y = x--; y === Not-a-Number. Actual: ' + (y)); } - diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-0-1.js b/test/suite/ch11/11.4/11.4.1/11.4.1-0-1.js index 2a3407dd5..975908d62 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-0-1.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-0-1.js @@ -1,26 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-0-1.js
- * @description delete operator as UnaryExpression
- */
-
-
-function testcase() {
- var x = 1;
- var y = 2;
- var z = 3;
-
- if( (!delete x || delete y) &&
- delete delete z)
- {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator as UnaryExpression +includes: [runTestCase.js] +---*/ + +function testcase() { + var x = 1; + var y = 2; + var z = 3; + + if( (!delete x || delete y) && + delete delete z) + { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-2-1.js b/test/suite/ch11/11.4/11.4.1/11.4.1-2-1.js index 223de50d5..8622eea79 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-2-1.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-2-1.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-2-1.js
- * @description delete operator returns true when deleting a non-reference (number)
- */
-
-
-function testcase() {
- var d = delete 42;
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: delete operator returns true when deleting a non-reference (number) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = delete 42; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-2-2.js b/test/suite/ch11/11.4/11.4.1/11.4.1-2-2.js index eed36f4c5..0deaa1229 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-2-2.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-2-2.js @@ -1,20 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-2-2.js
- * @description delete operator returns true when deleting returned value from a function
- */
-
-
-function testcase() {
- var bIsFooCalled = false;
- var foo = function(){bIsFooCalled = true;};
-
- var d = delete foo();
- if(d === true && bIsFooCalled === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns true when deleting returned value from a + function +includes: [runTestCase.js] +---*/ + +function testcase() { + var bIsFooCalled = false; + var foo = function(){bIsFooCalled = true;}; + + var d = delete foo(); + if(d === true && bIsFooCalled === true) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-2-3.js b/test/suite/ch11/11.4/11.4.1/11.4.1-2-3.js index 5d8fc9bce..d589fdfca 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-2-3.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-2-3.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-2-3.js
- * @description delete operator returns true when deleting a non-reference (boolean)
- */
-
-
-function testcase() {
- var d = delete true;
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns true when deleting a non-reference + (boolean) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = delete true; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-2-4.js b/test/suite/ch11/11.4/11.4.1/11.4.1-2-4.js index 3da874599..1bf2abf0d 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-2-4.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-2-4.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-2-4.js
- * @description delete operator returns true when deleting a non-reference (string)
- */
-
-
-function testcase() {
- var d = delete "abc";
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: delete operator returns true when deleting a non-reference (string) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = delete "abc"; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-2-5.js b/test/suite/ch11/11.4/11.4.1/11.4.1-2-5.js index ae32bebce..30c92b11d 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-2-5.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-2-5.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-2-5.js
- * @description delete operator returns true when deleting a non-reference (obj)
- */
-
-
-function testcase() {
- var d = delete {a:0} ;
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: delete operator returns true when deleting a non-reference (obj) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = delete {a:0} ; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-2-6.js b/test/suite/ch11/11.4/11.4.1/11.4.1-2-6.js index bcee797c2..a8547293c 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-2-6.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-2-6.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-2-6.js
- * @description delete operator returns true when deleting a non-reference (null)
- */
-
-
-function testcase() {
- var d = delete null;
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: delete operator returns true when deleting a non-reference (null) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = delete null; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-3-1.js b/test/suite/ch11/11.4/11.4.1/11.4.1-3-1.js index 9ae258064..5c74ec433 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-3-1.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-3-1.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-3-1.js
- * @description delete operator returns true when deleting an unresolvable reference
- */
-
-
-function testcase() {
- // just cooking up a long/veryLikely unique name
- var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_0__;
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns true when deleting an unresolvable + reference +includes: [runTestCase.js] +---*/ + +function testcase() { + // just cooking up a long/veryLikely unique name + var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_0__; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-3-2.js b/test/suite/ch11/11.4/11.4.1/11.4.1-3-2.js index fefff3071..fba128dd5 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-3-2.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-3-2.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-3-2.js
- * @description delete operator throws ReferenceError when deleting an explicitly qualified yet unresolvable reference (base obj undefined)
- */
-
-
-function testcase() {
- // just cooking up a long/veryLikely unique name
- try
- {
- var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_2__.x;
- }
- catch(e)
- {
- if (e instanceof ReferenceError)
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator throws ReferenceError when deleting an explicitly + qualified yet unresolvable reference (base obj undefined) +includes: [runTestCase.js] +---*/ + +function testcase() { + // just cooking up a long/veryLikely unique name + try + { + var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_2__.x; + } + catch(e) + { + if (e instanceof ReferenceError) + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-3-3.js b/test/suite/ch11/11.4/11.4.1/11.4.1-3-3.js index 1f70cca92..6d3a75255 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-3-3.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-3-3.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-3-3.js
- * @description delete operator returns true when deleting an explicitly qualified yet unresolvable reference (property undefined for base obj)
- */
-
-
-function testcase() {
- var __ES3_1_test_suite_test_11_4_1_3_unique_id_3__ = {};
- var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_3__.x;
- if (d === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns true when deleting an explicitly qualified + yet unresolvable reference (property undefined for base obj) +includes: [runTestCase.js] +---*/ + +function testcase() { + var __ES3_1_test_suite_test_11_4_1_3_unique_id_3__ = {}; + var d = delete __ES3_1_test_suite_test_11_4_1_3_unique_id_3__.x; + if (d === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-3-a-1-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-3-a-1-s.js index 7172421d0..c91d02fd2 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-3-a-1-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-3-a-1-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-3-a-1-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting an un-resolvable reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete obj");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting an un-resolvable + reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete obj"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-1-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-1-s.js index 82c586a1f..23b11c1a6 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-1-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-1-s.js @@ -1,28 +1,30 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-4-a-1-s.js
- * @description Strict Mode - TypeError is thrown when deleting non-configurable data property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: "abc",
- configurable: false
- });
-
- try {
- delete obj.prop;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === "abc";
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown when deleting non-configurable + data property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: "abc", + configurable: false + }); + + try { + delete obj.prop; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === "abc"; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-2-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-2-s.js index 135f01295..f0012b723 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-2-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-2-s.js @@ -1,30 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-4-a-2-s.js
- * @description Strict Mode - TypeError is thrown when deleting non-configurable accessor property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return "abc";
- },
- configurable: false
- });
-
- try {
- delete obj.prop;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === "abc";
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown when deleting non-configurable + accessor property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return "abc"; + }, + configurable: false + }); + + try { + delete obj.prop; + return false; + } catch (e) { + return e instanceof TypeError && obj.prop === "abc"; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-3-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-3-s.js index 85bc8b2d7..7f5226266 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-3-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-3-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-4-a-3-s.js
- * @description Strict Mode - TypeError isn't thrown when deleting configurable data property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: "abc",
- configurable: true
- });
-
- delete obj.prop;
- return !obj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError isn't thrown when deleting configurable + data property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + value: "abc", + configurable: true + }); + + delete obj.prop; + return !obj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-4-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-4-s.js index 6ce81cfbc..ae31baf88 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-4-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4-a-4-s.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-4-a-4-s.js
- * @description Strict Mode - TypeError isn't thrown when deleting configurable accessor property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return "abc";
- },
- configurable: true
- });
-
- delete obj.prop;
- return !obj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError isn't thrown when deleting configurable + accessor property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = {}; + Object.defineProperty(obj, "prop", { + get: function () { + return "abc"; + }, + configurable: true + }); + + delete obj.prop; + return !obj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-1.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-1.js index 0ed36af96..f0e84e559 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-1.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-1.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-1.js
- * @description delete operator returns true when deleting a configurable data property
- */
-
-
-function testcase() {
- var o = {};
-
- var desc = { value: 1, configurable: true };
- Object.defineProperty(o, "foo", desc);
-
- var d = delete o.foo;
- if (d === true && o.hasOwnProperty("foo") === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns true when deleting a configurable data + property +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + + var desc = { value: 1, configurable: true }; + Object.defineProperty(o, "foo", desc); + + var d = delete o.foo; + if (d === true && o.hasOwnProperty("foo") === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-10.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-10.js index 7a515d725..5d0b89b3f 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-10.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-10.js @@ -1,33 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-10.js
- * @description delete operator returns true for property (stringify) defined on built-in object (JSON)
- */
-
-
-function testcase() {
- try {
- var o = JSON.stringify;
- var desc;
- try {
- desc = Object.getOwnPropertyDescriptor(JSON, 'stringify')
- }
- catch (e) {
- };
- var d = delete JSON.stringify;
- if (d === true && JSON.stringify === undefined) {
- return true;
- }
- } finally {
- if (desc) Object.defineProperty(JSON, 'stringify', desc)
- else JSON.stringify = o /* this branch messes up the attributes */;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns true for property (stringify) defined on + built-in object (JSON) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var o = JSON.stringify; + var desc; + try { + desc = Object.getOwnPropertyDescriptor(JSON, 'stringify') + } + catch (e) { + }; + var d = delete JSON.stringify; + if (d === true && JSON.stringify === undefined) { + return true; + } + } finally { + if (desc) Object.defineProperty(JSON, 'stringify', desc) + else JSON.stringify = o /* this branch messes up the attributes */; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-11.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-11.js index b46af9f74..8399355d6 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-11.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-11.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-11.js
- * @description delete operator returns true on deleting arguments propterties(arguments.callee)
- */
-
-
-function testcase() {
- function foo(a,b)
- {
- return (delete arguments.callee);
- }
- var d = delete arguments.callee;
- if(d === true && arguments.callee === undefined)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns true on deleting arguments + propterties(arguments.callee) +includes: [runTestCase.js] +---*/ + +function testcase() { + function foo(a,b) + { + return (delete arguments.callee); + } + var d = delete arguments.callee; + if(d === true && arguments.callee === undefined) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-12.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-12.js index 5cc30983c..b1c138335 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-12.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-12.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-12.js
- * @description delete operator returns false when deleting a property(length)
- */
-
-
-function testcase() {
-
- var a = [1,2,3]
- a.x = 10;
- var d = delete a.length
- if(d === false && a.length === 3)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns false when deleting a property(length) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var a = [1,2,3] + a.x = 10; + var d = delete a.length + if(d === false && a.length === 3) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-13.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-13.js index 5156957ed..a81fb1beb 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-13.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-13.js @@ -1,25 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-13.js
- * @description delete operator returns false when deleting Array object
- */
-
-
-function testcase() {
-
- var a = [1,2,3]
- a.x = 10;
-
- var d = delete a
-
- if(d === false && Array.isArray(a) === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns false when deleting Array object +includes: [runTestCase.js] +---*/ + +function testcase() { + + var a = [1,2,3] + a.x = 10; + + var d = delete a + + if(d === false && Array.isArray(a) === true) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-14.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-14.js index 288d25ec0..2acb81612 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-14.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-14.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-14.js
- * @description delete operator returns true when deleting Array elements
- */
-
-
-function testcase() {
-
- var a = [1,2,3]
- a.x = 10;
- var d = delete a[1]
- if(d === true && a[1] === undefined)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns true when deleting Array elements +includes: [runTestCase.js] +---*/ + +function testcase() { + + var a = [1,2,3] + a.x = 10; + var d = delete a[1] + if(d === true && a[1] === undefined) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-15.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-15.js index 98a6d6c08..420581627 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-15.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-15.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-15.js
- * @description delete operator returns true when deleting Array expandos
- */
-
-
-function testcase() {
-
- var a = [1,2,3]
- a.x = 10;
- var d = delete a.x;
- if( d === true && a.x === undefined)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns true when deleting Array expandos +includes: [runTestCase.js] +---*/ + +function testcase() { + + var a = [1,2,3] + a.x = 10; + var d = delete a.x; + if( d === true && a.x === undefined) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-16.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-16.js index 01873811f..c5a195704 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-16.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-16.js @@ -1,20 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-16.js
- * @description delete operator returns false on deleting arguments object
- */
-
-
-function testcase() {
-
- if(delete arguments === false && arguments !== undefined)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns false on deleting arguments object +includes: [runTestCase.js] +---*/ + +function testcase() { + + if(delete arguments === false && arguments !== undefined) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-17.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-17.js index 97f0e0ab9..de02dd400 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-17.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-17.js @@ -1,25 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-17.js
- * @description delete operator returns true on deleting a arguments element
- */
-
-
-function testcase() {
- function foo(a,b)
- {
- var d = delete arguments[0];
- return (d === true && arguments[0] === undefined);
- }
-
- if(foo(1,2) === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns true on deleting a arguments element +includes: [runTestCase.js] +---*/ + +function testcase() { + function foo(a,b) + { + var d = delete arguments[0]; + return (d === true && arguments[0] === undefined); + } + + if(foo(1,2) === true) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-2.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-2.js index be165f1f1..402ab2bbc 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-2.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-2.js @@ -1,29 +1,31 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-2.js
- * @description delete operator returns true when deleting a configurable accessor property
- */
-
-
-function testcase() {
- var o = {};
-
- // define an accessor
- // dummy getter
- var getter = function () { return 1; }
- var desc = { get: getter, configurable: true };
- Object.defineProperty(o, "foo", desc);
-
- var d = delete o.foo;
- if (d === true && o.hasOwnProperty("foo") === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns true when deleting a configurable accessor + property +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + + // define an accessor + // dummy getter + var getter = function () { return 1; } + var desc = { get: getter, configurable: true }; + Object.defineProperty(o, "foo", desc); + + var d = delete o.foo; + if (d === true && o.hasOwnProperty("foo") === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3-s.js index 85e5c23db..e8d29f89a 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3-s.js @@ -1,32 +1,34 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-3-s.js
- * @description delete operator throws TypeError when deleting a non-configurable data property in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- var o = {};
- var desc = { value : 1 }; // all other attributes default to false
- Object.defineProperty(o, "foo", desc);
-
- // Now, deleting o.foo should throw TypeError because [[Configurable]] on foo is false.
- try {
- delete o.foo;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator throws TypeError when deleting a non-configurable + data property in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + var o = {}; + var desc = { value : 1 }; // all other attributes default to false + Object.defineProperty(o, "foo", desc); + + // Now, deleting o.foo should throw TypeError because [[Configurable]] on foo is false. + try { + delete o.foo; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3.js index 25f9bc7d0..6196313aa 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-3.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-3.js
- * @description delete operator returns false when deleting a non-configurable data property
- */
-
-
-function testcase() {
- var o = {};
- var desc = { value : 1, configurable: false }; // all other attributes default to false
- Object.defineProperty(o, "foo", desc);
-
- // Now, deleting o.foo should fail because [[Configurable]] on foo is false.
- var d = delete o.foo;
- if (d === false && o.hasOwnProperty("foo") === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns false when deleting a non-configurable + data property +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + var desc = { value : 1, configurable: false }; // all other attributes default to false + Object.defineProperty(o, "foo", desc); + + // Now, deleting o.foo should fail because [[Configurable]] on foo is false. + var d = delete o.foo; + if (d === false && o.hasOwnProperty("foo") === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-4.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-4.js index 98f2496f9..964822489 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-4.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-4.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-4.js
- * @description delete operator returns false when deleting a non-configurable data property (NaN)
- */
-
-
-function testcase() {
- // NaN (15.1.1.1) has [[Configurable]] set to false.
- var d = delete NaN;
- if (d === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns false when deleting a non-configurable + data property (NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + // NaN (15.1.1.1) has [[Configurable]] set to false. + var d = delete NaN; + if (d === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-5.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-5.js index 0585bb3c4..16d53d0d0 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-5.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-5.js @@ -1,28 +1,30 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-5.js
- * @description delete operator returns false when deleting the environment object inside 'with'
- */
-
-
-function testcase() {
- var o = new Object();
- o.x = 1;
- var d;
- with(o)
- {
- d = delete o;
- }
- if (d === false && typeof(o) === 'object' && o.x === 1) {
- return true;
- }
- return false;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns false when deleting the environment object + inside 'with' +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = new Object(); + o.x = 1; + var d; + with(o) + { + d = delete o; + } + if (d === false && typeof(o) === 'object' && o.x === 1) { + return true; + } + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-6.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-6.js index a5194837f..886cb02f3 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-6.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-6.js @@ -1,27 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-6.js
- * @description delete operator returns true when deleting a property inside 'with'
- */
-
-
-function testcase() {
- var o = new Object();
- o.x = 1;
- var d;
- with(o)
- {
- d = delete x;
- }
- if (d === true && o.x === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns true when deleting a property inside 'with' +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = new Object(); + o.x = 1; + var d; + with(o) + { + d = delete x; + } + if (d === true && o.x === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-7.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-7.js index 85bbe995d..d976e0c89 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-7.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-7.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-7.js
- * @description delete operator inside 'eval'
- */
-
-
-function testcase() {
- var x = 1;
- var d = eval("delete x");
- if (d === false && x === 1) {
- return true;
- }
- return false;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator inside 'eval' +includes: [runTestCase.js] +---*/ + +function testcase() { + var x = 1; + var d = eval("delete x"); + if (d === false && x === 1) { + return true; + } + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8-s.js index c73f8d833..e1b95e8f8 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8-s.js @@ -1,28 +1,32 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-8-s.js
- * @description delete operator throws TypeError when deleting a non-configurable data property in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- // NaN (15.1.1.1) has [[Configurable]] set to false.
- try {
- delete fnGlobalObject().NaN;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator throws TypeError when deleting a non-configurable + data property in strict mode +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + 'use strict'; + + // NaN (15.1.1.1) has [[Configurable]] set to false. + try { + delete fnGlobalObject().NaN; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8.js index 0d6da1a80..00f51d110 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-8.js @@ -1,26 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-8.js
- * @description delete operator returns true for built-in objects (JSON)
- */
-
-
-function testcase() {
- try {
- var o = JSON;
- var d = delete JSON;
- if (d === true) {
- return true;
- }
- } finally {
- JSON = o;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: delete operator returns true for built-in objects (JSON) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var o = JSON; + var d = delete JSON; + if (d === true) { + return true; + } + } finally { + JSON = o; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9-s.js index da7a464ba..46cbd2862 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9-s.js @@ -1,27 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-9-s.js
- * @description delete operator throws TypeError when deleting a non-configurable data property (Math.LN2) in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- try {
- delete Math.LN2;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator throws TypeError when deleting a non-configurable + data property (Math.LN2) in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + try { + delete Math.LN2; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9.js b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9.js index 472fdc0c8..c4ccab113 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-4.a-9.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.1-4.a-9.js
- * @description delete operator returns false when deleting a non-configurable data property (Math.LN2)
- */
-
-
-function testcase() {
- var d = delete Math.LN2;
- if (d === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator returns false when deleting a non-configurable + data property (Math.LN2) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = delete Math.LN2; + if (d === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-1.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-1.js index c4de1ba6f..d33fc53be 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-1.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-1.js @@ -1,20 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-1.js
- * @description delete operator returns false when deleting a direct reference to a var
- */
-
-
-function testcase() {
- var x = 1;
-
- // Now, deleting 'x' directly should fail;
- var d = delete x;
- if(d === false && x === 1)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns false when deleting a direct reference to + a var +includes: [runTestCase.js] +---*/ + +function testcase() { + var x = 1; + + // Now, deleting 'x' directly should fail; + var d = delete x; + if(d === false && x === 1) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-2.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-2.js index 838b653b1..015544bd1 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-2.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-2.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-2.js
- * @description delete operator returns false when deleting a direct reference to a function argument
- */
-
-
-function testcase() {
-
- function foo(a,b) {
-
- // Now, deleting 'a' directly should fail
- // because 'a' is direct reference to a function argument;
- var d = delete a;
- return (d === false && a === 1);
- }
- return foo(1,2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns false when deleting a direct reference to + a function argument +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo(a,b) { + + // Now, deleting 'a' directly should fail + // because 'a' is direct reference to a function argument; + var d = delete a; + return (d === false && a === 1); + } + return foo(1,2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-3.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-3.js index 33efcdb3e..0060b8410 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-3.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-3.js @@ -1,20 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-3.js
- * @description delete operator returns false when deleting a direct reference to a function name
- */
-
-
-function testcase() {
- var foo = function(){};
-
- // Now, deleting 'foo' directly should fail;
- var d = delete foo;
- if(d === false && fnExists(foo))
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + delete operator returns false when deleting a direct reference to + a function name +includes: + - runTestCase.js + - fnExists.js +---*/ + +function testcase() { + var foo = function(){}; + + // Now, deleting 'foo' directly should fail; + var d = delete foo; + if(d === false && fnExists(foo)) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-1-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-1-s.js index 3235f6aff..fa4be16bb 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-1-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-1-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-1-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable which is a primitive value type (number)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_4_1_5 = 5;
-
- try {
- eval("delete _11_4_1_5;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable which + is a primitive value type (number) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_4_1_5 = 5; + + try { + eval("delete _11_4_1_5;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-10-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-10-s.js index 6d614fb99..1e9ccff2a 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-10-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-10-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-10-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Array
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var arrObj = [1,2,3];
-
- try {
- eval("delete arrObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Array +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var arrObj = [1,2,3]; + + try { + eval("delete arrObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-11-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-11-s.js index 328b4926f..02b97fa73 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-11-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-11-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-11-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type String
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var strObj = new String("abc");
-
- try {
- eval("delete strObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type String +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var strObj = new String("abc"); + + try { + eval("delete strObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-12-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-12-s.js index e09226b1d..4f5044d23 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-12-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-12-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-12-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Boolean
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var boolObj = new Boolean(false);
-
- try {
- eval("delete boolObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Boolean +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var boolObj = new Boolean(false); + + try { + eval("delete boolObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-13-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-13-s.js index 008466068..76ec7b732 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-13-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-13-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-13-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Number
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var numObj = new Number(0);
-
- try {
- eval("delete numObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Number +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var numObj = new Number(0); + + try { + eval("delete numObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-14-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-14-s.js index 8d6770b27..7d744cde2 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-14-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-14-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-14-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Date
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var dateObj = new Date();
-
- try {
- eval("delete dateObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Date +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var dateObj = new Date(); + + try { + eval("delete dateObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-15-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-15-s.js index 3ce568c6a..0517a446a 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-15-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-15-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-15-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type RegExp
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var regObj = new RegExp();
-
- try {
- eval("delete regObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type RegExp +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var regObj = new RegExp(); + + try { + eval("delete regObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-16-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-16-s.js index 0edd4401f..56d2834c7 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-16-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-16-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-16-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Error
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var errObj = new Error();
-
- try {
- eval("delete errObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Error +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var errObj = new Error(); + + try { + eval("delete errObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-17-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-17-s.js index 2cb8fedef..3d38c27bf 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-17-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-17-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-17-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Arguments
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("var argObj = (function (a, b) { delete arguments; }(1, 2));");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Arguments +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("var argObj = (function (a, b) { delete arguments; }(1, 2));"); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-18-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-18-s.js index d26819ff7..d0657ebc1 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-18-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-18-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-18-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Object)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete Object;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (Object) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete Object;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-19-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-19-s.js index c45a701b0..846e9c64d 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-19-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-19-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-19-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Function)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete Function;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (Function) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete Function;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-2-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-2-s.js index aa5290faa..93833b0ff 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-2-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-2-s.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-2-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a function parameter
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- function funObj(x) {
- eval("delete x;");
- }
-
- try {
- funObj(1);
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a function + parameter +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + function funObj(x) { + eval("delete x;"); + } + + try { + funObj(1); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-20-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-20-s.js index cf683589c..e22fb1448 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-20-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-20-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-20-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Array)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete Array;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (Array) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete Array;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-21-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-21-s.js index 994e6ff96..ffe0d0234 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-21-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-21-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-21-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (String)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete String;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (String) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete String;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-22-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-22-s.js index 341062b03..9fb5a48f0 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-22-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-22-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-22-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Boolean)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete Boolean;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (Boolean) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete Boolean;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-23-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-23-s.js index b0302df8b..963a46048 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-23-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-23-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-23-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Number)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete Number;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (Number) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete Number;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-24-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-24-s.js index 0f03df1a7..36c3182e6 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-24-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-24-s.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-24-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Date)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete Date;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown when deleting a built-in (Date) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete Date;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-25-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-25-s.js index 0f418645a..45388113b 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-25-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-25-s.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-25-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (RegExp)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("delete RegExp;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (RegExp) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("delete RegExp;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-26-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-26-s.js index 62ed21fc3..6f3dc9eeb 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-26-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-26-s.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-26-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a built-in (Error)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var errorBackup = Error;
- try {
- eval("delete Error;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- } finally {
- Error = errorBackup;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a built-in + (Error) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var errorBackup = Error; + try { + eval("delete Error;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } finally { + Error = errorBackup; + } + + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-27-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-27-s.js index 4dacb29bd..ae054dfbb 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-27-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-27-s.js @@ -1,25 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-27-s.js
- * @description Strict Mode - TypeError is thrown after deleting a property, calling preventExtensions, and attempting to reassign the property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var a = {x:0, get y() { return 0;}};
- delete a.x;
- Object.preventExtensions(a);
- try {
- a.x = 1;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown after deleting a property, + calling preventExtensions, and attempting to reassign the property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var a = {x:0, get y() { return 0;}}; + delete a.x; + Object.preventExtensions(a); + try { + a.x = 1; + return false; + } catch (e) { + return e instanceof TypeError; + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-28-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-28-s.js index 4a5e015c3..421e4ecba 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-28-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-28-s.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-28-s.js
- * @description Strict Mode - TypeError is thrown when deleting RegExp.length
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var a = new RegExp();
- try {
- var b = delete RegExp.length;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - TypeError is thrown when deleting RegExp.length +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var a = new RegExp(); + try { + var b = delete RegExp.length; + return false; + } catch (e) { + return e instanceof TypeError; + } +} +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-3-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-3-s.js index 3c1e18390..e606aed27 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-3-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-3-s.js @@ -1,24 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-3-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a function name
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- function funObj () { }
-
- try {
- eval("delete funObj");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown when deleting a function name +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + function funObj () { } + + try { + eval("delete funObj"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-4-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-4-s.js index 55bca492b..d4c2374c1 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-4-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-4-s.js @@ -1,26 +1,28 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-4-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a function parameter
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- function funObj(x, y, z) {
- eval("delete y;");
- }
-
- try {
- funObj(1);
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a function + parameter +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + function funObj(x, y, z) { + eval("delete y;"); + } + + try { + funObj(1); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5-s.js index 4e72bc917..c179aed5b 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-5-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable which is a primitive type (boolean)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_4_1_5 = true;
-
- try {
- eval("delete _11_4_1_5;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable which + is a primitive type (boolean) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_4_1_5 = true; + + try { + eval("delete _11_4_1_5;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5gs.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5gs.js index ed126f668..d44fed5c4 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5gs.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-5gs.js @@ -1,15 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-5gs.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable which is primitive type(boolean)
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-var _11_4_1_5 = 7;
-throw NotEarlyError;
-delete _11_4_1_5;
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable which + is primitive type(boolean) +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +var _11_4_1_5 = 7; +throw NotEarlyError; +delete _11_4_1_5; diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-6-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-6-s.js index f428dfeb6..6b18c998f 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-6-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-6-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-6-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable which is a primitive type (string)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _11_4_1_5 = "abc";
-
- try {
- eval("delete _11_4_1_5;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable which + is a primitive type (string) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _11_4_1_5 = "abc"; + + try { + eval("delete _11_4_1_5;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-7-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-7-s.js index 090276fd7..85f9ad232 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-7-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-7-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-7-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type Object
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var obj = new Object();
-
- try {
- eval("delete obj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type Object +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var obj = new Object(); + + try { + eval("delete obj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-8-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-8-s.js index 3116d6bc7..8faf0a724 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-8-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-8-s.js @@ -1,24 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-8-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a function object
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var funObj = function () { };
-
- try {
- eval("delete funObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown when deleting a function object +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var funObj = function () { }; + + try { + eval("delete funObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-9-s.js b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-9-s.js index 45b626551..e1c404bdf 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-9-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.1-5-a-9-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.1/11.4.1-5-a-9-s.js
- * @description Strict Mode - SyntaxError is thrown when deleting a variable of type function (declaration)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- function funObj () { };
-
- try {
- eval("delete funObj;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is thrown when deleting a variable of + type function (declaration) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + function funObj () { }; + + try { + eval("delete funObj;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/11.4.4-4.a-3-s.js b/test/suite/ch11/11.4/11.4.1/11.4.4-4.a-3-s.js index 109216dea..e8d29f89a 100644 --- a/test/suite/ch11/11.4/11.4.1/11.4.4-4.a-3-s.js +++ b/test/suite/ch11/11.4/11.4.1/11.4.4-4.a-3-s.js @@ -1,32 +1,34 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * This test is actually testing the [[Delete]] internal method (8.12.8). Since the
- * language provides no way to directly exercise [[Delete]], the tests are placed here.
- *
- * @path ch11/11.4/11.4.1/11.4.4-4.a-3-s.js
- * @description delete operator throws TypeError when deleting a non-configurable data property in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- var o = {};
- var desc = { value : 1 }; // all other attributes default to false
- Object.defineProperty(o, "foo", desc);
-
- // Now, deleting o.foo should throw TypeError because [[Configurable]] on foo is false.
- try {
- delete o.foo;
- return false;
- }
- catch (e) {
- return (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + This test is actually testing the [[Delete]] internal method (8.12.8). Since the + language provides no way to directly exercise [[Delete]], the tests are placed here. +description: > + delete operator throws TypeError when deleting a non-configurable + data property in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + var o = {}; + var desc = { value : 1 }; // all other attributes default to false + Object.defineProperty(o, "foo", desc); + + // Now, deleting o.foo should throw TypeError because [[Configurable]] on foo is false. + try { + delete o.foo; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A1.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A1.js index 35764288f..284957ef6 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A1.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.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 "delete" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.1/S11.4.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "delete" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("delete\u00090") !== true) { @@ -57,4 +57,3 @@ if (eval("delete\u20290") !== true) { if (eval("delete\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== true) { $ERROR('#10: delete\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20290 === true'); } - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.1.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.1.js index b993e4a9d..6e846086a 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.1.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.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 Type(x) is not Reference, return true - * - * @path ch11/11.4/11.4.1/S11.4.1_A2.1.js - * @description Checking primitive value and Object value cases - */ +/*--- +info: If Type(x) is not Reference, return true +description: Checking primitive value and Object value cases +---*/ //CHECK#1 if (delete 1 !== true) { @@ -17,5 +15,3 @@ if (delete 1 !== true) { if (delete new Object() !== true) { $ERROR('#2: delete new Object() === true'); } - - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_T1.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_T1.js index 97fd10939..73fe0678b 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.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. -/** - * If GetBase(x) doesn't have a property GetPropertyName(x), return true - * - * @path ch11/11.4/11.4.1/S11.4.1_A2.2_T1.js - * @description Checking undeclared variable case - */ +/*--- +info: If GetBase(x) doesn't have a property GetPropertyName(x), return true +description: Checking undeclared variable case +---*/ //CHECK#1 if (delete x !== true) { @@ -17,4 +15,3 @@ if (delete x !== true) { if (delete this.x !== true) { $ERROR('#2: delete this.x === true'); } - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_T2.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_T2.js index e5c0cbe54..c8f69bcc6 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_T2.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A2.2_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. -/** - * If GetBase(x) doesn't have a property GetPropertyName(x), return true - * - * @path ch11/11.4/11.4.1/S11.4.1_A2.2_T2.js - * @description Checking Object object and Function object cases - */ +/*--- +info: If GetBase(x) doesn't have a property GetPropertyName(x), return true +description: Checking Object object and Function object cases +---*/ //CHECK#1 function MyFunction(){} @@ -20,4 +18,3 @@ var MyObject = new Object(); if (delete MyObject.prop !== true) { $ERROR('#2: var MyObject = new Object(); delete MyObject.prop === true'); } - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.1.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.1.js index b1edccca9..29c204a41 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.1.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.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 the property has the DontDelete attribute, return false - * - * @path ch11/11.4/11.4.1/S11.4.1_A3.1.js - * @description Checking declared variable - */ +/*--- +info: If the property has the DontDelete attribute, return false +description: Checking declared variable +---*/ //CHECK#1 var x = 1; @@ -37,4 +35,3 @@ if (delete MyObject !== false) { if (delete MyObject !== false) { $ERROR('#5: function MyFunction(){}; var MyObject = new MyFunction(); delete MyObject === false'); } - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.2.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.2.js index bee091183..37d5b235f 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.2.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.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 the property doesn't have the DontDelete attribute, return true - * - * @path ch11/11.4/11.4.1/S11.4.1_A3.2.js - * @description Checking declared variable - */ +/*--- +info: If the property doesn't have the DontDelete attribute, return true +description: Checking declared variable +---*/ //CHECK#1 x = 1; @@ -28,4 +26,3 @@ MyObject.prop = 1; if (delete MyObject.prop !== true) { $ERROR('#3: function MyFunction(){}; var MyObject = new MyFunction(); MyFunction.prop = 1; delete MyObject.prop === true'); } - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.3.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.3.js index e396ee626..2a00130ff 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.3.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A3.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 the property doesn't have the DontDelete attribute, remove the property - * - * @path ch11/11.4/11.4.1/S11.4.1_A3.3.js - * @description Checking declared variable - */ +/*--- +info: If the property doesn't have the DontDelete attribute, remove the property +description: Checking declared variable +---*/ //CHECK#1 try { @@ -57,5 +55,3 @@ if (MyObjectNotVar.prop !== undefined) { if (delete MyObjectNotVar !== true) { $ERROR('#6: function MyFunction(){}; var MyObjectNotVar = new MyFunction(); delete MyObjectNotVar === true'); } - - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A4.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A4.js index a534ce959..fa8a0fec3 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A4.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A4.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. -/** - * "Delete" operator removes property, which is reference to the object, not the object - * - * @path ch11/11.4/11.4.1/S11.4.1_A4.js - * @description Checking two reference by one object - */ +/*--- +info: > + "Delete" operator removes property, which is reference to the object, not + the object +description: Checking two reference by one object +---*/ //CHECK#1 var obj = new Object(); @@ -15,5 +15,3 @@ delete ref; if (typeof obj !== "object") { $ERROR('#1: obj = new Object(); ref = obj; delete ref; typeof obj === "object". Actual: ' + (typeof obj)); } - - diff --git a/test/suite/ch11/11.4/11.4.1/S11.4.1_A5.js b/test/suite/ch11/11.4/11.4.1/S11.4.1_A5.js index 2fd5f5243..09e331b0d 100644 --- a/test/suite/ch11/11.4/11.4.1/S11.4.1_A5.js +++ b/test/suite/ch11/11.4/11.4.1/S11.4.1_A5.js @@ -1,16 +1,16 @@ // Copyright 2011 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A strict delete should either succeed, returning true, or it - * should fail by throwing a TypeError. Under no circumstances - * should a strict delete return false. - * - * @path ch11/11.4/11.4.1/S11.4.1_A5.js - * @description See if a strict delete returns false when deleting a - * non-standard property. - * @onlyStrict - */ +/*--- +info: > + A strict delete should either succeed, returning true, or it + should fail by throwing a TypeError. Under no circumstances + should a strict delete return false. +description: > + See if a strict delete returns false when deleting a non-standard + property. +flags: [onlyStrict] +---*/ "use strict"; @@ -32,4 +32,3 @@ for (var i = 0, len = reNames.length; i < len; i++) { } } } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A1.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A1.js index 6211fc242..32823bd1c 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A1.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.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 "void" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.2/S11.4.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "void" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("void\u00090") !== undefined) { @@ -57,4 +57,3 @@ if (eval("void\u20290") !== undefined) { if (eval("void\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== undefined) { $ERROR('#10: void\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20290 === undefined'); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T1.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T1.js index bb2ba2a9d..d4fcc5709 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T1.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_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 "void" uses GetValue - * - * @path ch11/11.4/11.4.2/S11.4.2_A2_T1.js - * @description Either Type(x) is not Reference or GetBase(x) is not null - */ +/*--- +info: Operator "void" uses GetValue +description: Either Type(x) is not Reference or GetBase(x) is not null +---*/ //CHECK#1 if (void 0 !== undefined) { @@ -24,4 +22,3 @@ var x = new Object(); if (void x !== undefined) { $ERROR('#3: var x = new Object(); void x === undefined. Actual: ' + (void x)); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T2.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T2.js index a6074837a..e5c97cc6b 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T2.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.2_A2_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator "void" uses GetValue - * - * @path ch11/11.4/11.4.2/S11.4.2_A2_T2.js - * @description If GetBase(x) is null, throw ReferenceError - * @negative - */ +/*--- +info: Operator "void" uses GetValue +description: If GetBase(x) is null, throw ReferenceError +flags: [negative] +---*/ //CHECK#1 void x; - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T1.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T1.js index 169eeb6c8..0c43b662a 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T1.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.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. -/** - * Operator "void" evaluates UnaryExpression and returns undefined - * - * @path ch11/11.4/11.4.2/S11.4.2_A4_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator "void" evaluates UnaryExpression and returns undefined +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = false; @@ -19,4 +17,3 @@ var x = new Boolean(true); if (void x !== undefined) { $ERROR('#2: var x = new Boolean(true); void x === undefined. Actual: ' + (void x)); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T2.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T2.js index 0175474af..ad71bce1a 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T2.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.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. -/** - * Operator "void" evaluates UnaryExpression and returns undefined - * - * @path ch11/11.4/11.4.2/S11.4.2_A4_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator "void" evaluates UnaryExpression and returns undefined +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 0.1; @@ -19,4 +17,3 @@ var x = new Number(-1.1); if (void x !== undefined) { $ERROR('#2: var x = new Number(-1.1); void x === undefined. Actual: ' + (void x)); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T3.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T3.js index 884b84af4..ccfc62e75 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T3.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.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. -/** - * Operator "void" evaluates UnaryExpression and returns undefined - * - * @path ch11/11.4/11.4.2/S11.4.2_A4_T3.js - * @description Type(x) is string primitive of String object - */ +/*--- +info: Operator "void" evaluates UnaryExpression and returns undefined +description: Type(x) is string primitive of String object +---*/ //CHECK#1 var x = "1"; @@ -25,4 +23,3 @@ var x = new String("-1"); if (void x !== undefined) { $ERROR('#3: var x = new String("-1"); void x === undefined. Actual: ' + (void x)); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T4.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T4.js index d6da81854..4b2095e77 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T4.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.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. -/** - * Operator "void" evaluates UnaryExpression and returns undefined - * - * @path ch11/11.4/11.4.2/S11.4.2_A4_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator "void" evaluates UnaryExpression and returns undefined +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -19,4 +17,3 @@ var x = null; if (void x !== undefined) { $ERROR('#2: var x = null; void x === undefined. Actual: ' + (void x)); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T5.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T5.js index 2be1def15..3c7477d24 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T5.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T5.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 "void" evaluates UnaryExpression and returns undefined - * - * @path ch11/11.4/11.4.2/S11.4.2_A4_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator "void" evaluates UnaryExpression and returns undefined +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -19,4 +17,3 @@ var x = function(){return 1}; if (isNaN(void x) !== true) { $ERROR('#2: var x = function(){return 1}; void x === undefined. Actual: ' + (void x)); } - diff --git a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T6.js b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T6.js index 40c184cbe..6b4510fe0 100644 --- a/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T6.js +++ b/test/suite/ch11/11.4/11.4.2/S11.4.2_A4_T6.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 "void" evaluates UnaryExpression and returns undefined - * - * @path ch11/11.4/11.4.2/S11.4.2_A4_T6.js - * @description Checking Simple Assignment operator - */ +/*--- +info: Operator "void" evaluates UnaryExpression and returns undefined +description: Checking Simple Assignment operator +---*/ //CHECK#1 var x = 0; @@ -17,4 +15,3 @@ if (void (x = 1) !== undefined) { $ERROR('#1: var x = 0; void (x = 1); x === 1. Actual: ' + (x)); } } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A1.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A1.js index 5021bab91..396f20e52 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A1.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.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 "typeof" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.3/S11.4.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "typeof" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("var x = 0; typeof\u0009x") !== "number") { @@ -57,4 +57,3 @@ if (eval("var x = 0; typeof\u2029x") !== "number") { if (eval("var x = 0; typeof\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029x") !== "number") { $ERROR('#10: var x = 0; typeof\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029x; x === "number". Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T1.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T1.js index 02217c333..007771a44 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T1.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_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 "typeof" uses GetValue - * - * @path ch11/11.4/11.4.3/S11.4.3_A2_T1.js - * @description Either Type(x) is not Reference or GetBase(x) is not null - */ +/*--- +info: Operator "typeof" uses GetValue +description: Either Type(x) is not Reference or GetBase(x) is not null +---*/ //CHECK#1 if (typeof 0 !== "number") { @@ -24,4 +22,3 @@ var x = new Object(); if (typeof x !== "object") { $ERROR('#3: var x = new Object(); typeof x === "object". Actual: ' + (typeof x)); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T2.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T2.js index 4030c1257..05eddb165 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T2.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A2_T2.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator "typeof" uses GetValue - * - * @path ch11/11.4/11.4.3/S11.4.3_A2_T2.js - * @description If GetBase(x) is null, return "undefined" - */ +/*--- +info: Operator "typeof" uses GetValue +description: If GetBase(x) is null, return "undefined" +---*/ //CHECK#1 if (typeof x !== "undefined") { $ERROR('#1: typeof x === "undefined". Actual: ' + (typeof x)); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.1.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.1.js index 1609ad326..3a56db529 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.1.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of applying "typeof" operator to undefined is "undefined" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.1.js - * @description typeof undefined === "undefined" - */ +/*--- +info: Result of applying "typeof" operator to undefined is "undefined" +description: typeof undefined === "undefined" +---*/ //CHECK#1 if (typeof undefined !== "undefined") { @@ -17,4 +15,3 @@ if (typeof undefined !== "undefined") { if (typeof void 0 !== "undefined") { $ERROR('#2: typeof void 0 === "undefined". Actual: ' + (typeof void 0)); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.2.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.2.js index 94353f557..1246dc06a 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.2.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of applying "typeof" operator to null is "object" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.2.js - * @description typeof null === "object" - */ +/*--- +info: Result of applying "typeof" operator to null is "object" +description: typeof null === "object" +---*/ //CHECK#1 if (typeof null !== "object") { @@ -17,4 +15,3 @@ if (typeof null !== "object") { if (typeof RegExp("0").exec("1") !== "object") { $ERROR('#2: typeof RegExp("0").exec("1") === "object". Actual: ' + (typeof RegExp("0").exec("1"))); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.3.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.3.js index 70dcf3ec6..2d2f66006 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.3.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of applying "typeof" operator to boolean is "boolean" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.3.js - * @description typeof (boolean value) === "boolean" - */ +/*--- +info: Result of applying "typeof" operator to boolean is "boolean" +description: typeof (boolean value) === "boolean" +---*/ //CHECK#1 if (typeof true !== "boolean") { @@ -22,4 +20,3 @@ if (typeof false !== "boolean") { if (typeof !-1 !== "boolean") { $ERROR('#3: typeof !-1 === "boolean". Actual: ' + (typeof !-1)); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.4.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.4.js index e1444e9f5..10c76ac0c 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.4.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of appying "typeof" operator to number is "number" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.4.js - * @description typeof (number value) === "number" - */ +/*--- +info: Result of appying "typeof" operator to number is "number" +description: typeof (number value) === "number" +---*/ //CHECK#1 if (typeof 1 !== "number") { @@ -32,4 +30,3 @@ if (typeof Number.NEGATIVE_INFINITY !== "number") { if (typeof Math.PI !== "number") { $ERROR('#5: typeof Math.PI === "number". Actual: ' + (typeof Math.PI)); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.5.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.5.js index f1c07acd1..e9af75712 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.5.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of appying "typeof" operator to string is "string" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.5.js - * @description typeof (string value) === "string" - */ +/*--- +info: Result of appying "typeof" operator to string is "string" +description: typeof (string value) === "string" +---*/ //CHECK#1 if (typeof "1" !== "string") { @@ -37,4 +35,3 @@ if (typeof "true" !== "string") { if (typeof Date() !== "string") { $ERROR('#6: typeof Date() === "string". Actual: ' + (typeof Date())); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.6.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.6.js index feab82ac6..9db0ac44d 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.6.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of applying "typeof" operator to the object that is native and doesn't implement [[Call]] is "object" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.6.js - * @description typeof (object without [[Call]]) === "object" - */ +/*--- +info: > + Result of applying "typeof" operator to the object that is native and + doesn't implement [[Call]] is "object" +description: typeof (object without [[Call]]) === "object" +---*/ //CHECK#1 if (typeof this !== "object") { @@ -70,4 +70,3 @@ if (typeof new RegExp() !== "object") { if (typeof RegExp() !== "object") { $ERROR('#12: typeof RegExp() === "object". Actual: ' + (typeof RegExp())); } - diff --git a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.7.js b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.7.js index 66282799a..90526b1cb 100644 --- a/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.7.js +++ b/test/suite/ch11/11.4/11.4.3/S11.4.3_A3.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. -/** - * Result of applying "typeof" operator to the object that is native and implements [[Call]] is "function" - * - * @path ch11/11.4/11.4.3/S11.4.3_A3.7.js - * @description typeof (object with [[Call]]) === "function" - */ +/*--- +info: > + Result of applying "typeof" operator to the object that is native and + implements [[Call]] is "function" +description: typeof (object with [[Call]]) === "function" +---*/ //CHECK#1 if (typeof new Function() !== "function") { @@ -52,4 +52,3 @@ if (typeof Error !== "function") { if (typeof RegExp !== "function") { $ERROR('#9: typeof RegExp === "function". Actual: ' + (typeof RegExp)); } - diff --git a/test/suite/ch11/11.4/11.4.4/11.4.4-2-1-s.js b/test/suite/ch11/11.4/11.4.4/11.4.4-2-1-s.js index f7e9b82de..dcfc1a10c 100644 --- a/test/suite/ch11/11.4/11.4.4/11.4.4-2-1-s.js +++ b/test/suite/ch11/11.4/11.4.4/11.4.4-2-1-s.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.4/11.4.4-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown for ++eval
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("++eval;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown for ++eval +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("++eval;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.4/11.4.4-2-2-s.js b/test/suite/ch11/11.4/11.4.4/11.4.4-2-2-s.js index 142adabef..21731ed7e 100644 --- a/test/suite/ch11/11.4/11.4.4/11.4.4-2-2-s.js +++ b/test/suite/ch11/11.4/11.4.4/11.4.4-2-2-s.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.4/11.4.4-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown for ++arguments
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("++arguments;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown for ++arguments +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("++arguments;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.4/11.4.4-2-3-s.js b/test/suite/ch11/11.4/11.4.4/11.4.4-2-3-s.js index 00d6448e3..26581ddcf 100644 --- a/test/suite/ch11/11.4/11.4.4/11.4.4-2-3-s.js +++ b/test/suite/ch11/11.4/11.4.4/11.4.4-2-3-s.js @@ -1,19 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.4/11.4.4-2-3-s.js
- * @description Strict Mode - SyntaxError is not thrown for ++arguments[...]
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- arguments[1] = 7;
- ++arguments[1];
- return arguments[1]===8;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is not thrown for ++arguments[...] +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + arguments[1] = 7; + ++arguments[1]; + return arguments[1]===8; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A1.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A1.js index 1a6f53940..2aeeb4fbf 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A1.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.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 "++" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.4/S11.4.4_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "++" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("var x = 0; ++\u0009x") !== 1) { @@ -57,4 +57,3 @@ if (eval("var x = 0; ++\u2029x") !== 1) { if (eval("var x = 0; ++\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029x") !== 1) { $ERROR('#10: var x = 0; ++\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029x; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T1.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T1.js index 253e2a970..2fe983cac 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T1.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.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 uses GetValue and PutValue - * - * @path ch11/11.4/11.4.4/S11.4.4_A2.1_T1.js - * @description Type(x) is Reference and GetBase(x) is not null - */ +/*--- +info: Operator ++x uses GetValue and PutValue +description: Type(x) is Reference and GetBase(x) is not null +---*/ //CHECK#1 var x = 1; @@ -38,4 +36,3 @@ if (++object.prop !== 1 + 1) { $ERROR('#3: var object = new Object(); object.prop = 1; ++object.prop; object.prop === 1 + 1. Actual: ' + (object.prop)); } } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T2.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T2.js index a67137e4b..9e5a50814 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T2.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.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 uses GetValue and PutValue - * - * @path ch11/11.4/11.4.4/S11.4.4_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator ++x uses GetValue and PutValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: ++x throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js index 7faa4d81f..62ba5b79b 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator ++x uses GetValue and PutValue - * - * @path ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js - * @description If Type(x) is not Reference, throw ReferenceError (or SyntaxError) - * @negative - */ +/*--- +info: Operator ++x uses GetValue and PutValue +description: If Type(x) is not Reference, throw ReferenceError (or SyntaxError) +flags: [negative] +---*/ //CHECK#1 try { @@ -21,5 +19,3 @@ catch (e) { ++1; } } - - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.2_T1.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.2_T1.js index bdc909df1..8a30c2555 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.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 uses [[Default Value]] - * - * @path ch11/11.4/11.4.4/S11.4.4_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator ++x uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -101,4 +99,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; ++object throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T1.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T1.js index 9c41505c9..4b11fd1a3 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T1.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_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 returns x = ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator ++x returns x = ToNumber(x) + 1 +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = false; @@ -21,4 +19,3 @@ var x = new Boolean(true); if (x !== 1 + 1) { $ERROR('#2: var x = new Boolean(true); ++x; x === 1 + 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T2.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T2.js index 52296a948..f34595046 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T2.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_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 returns x = ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator ++x returns x = ToNumber(x) + 1 +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 0.1; @@ -21,4 +19,3 @@ var x = new Number(-1.1); if (x !== -1.1 + 1) { $ERROR('#2: var x = new Number(-1.1); ++x; x === -1.1 + 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T3.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T3.js index aee3607dd..fdc1409f6 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T3.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_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 returns x = ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator ++x returns x = ToNumber(x) + 1 +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -28,4 +26,3 @@ var x = new Number("-1"); if (x !== -1 + 1) { $ERROR('#3: var x = new String("-1"); ++x; x === -1 + 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T4.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T4.js index 89619003e..b63027eb3 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T4.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_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. -/** - * Operator ++x returns x = ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator ++x returns x = ToNumber(x) + 1 +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -21,4 +19,3 @@ var x = null; if (x !== 1) { $ERROR('#2: var x = null; ++x; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T5.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T5.js index d08522f72..1a4df245a 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T5.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A3_T5.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 returns x = ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator ++x returns x = ToNumber(x) + 1 +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -21,4 +19,3 @@ var x = function(){return 1}; if (isNaN(x) !== true) { $ERROR('#2: var x = function(){return 1}; ++x; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T1.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T1.js index 585e75091..08b1352cc 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T1.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_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. -/** - * Operator ++x returns ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A4_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator ++x returns ToNumber(x) + 1 +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = false; @@ -19,4 +17,3 @@ var x = new Boolean(true); if (++x !== 1 + 1) { $ERROR('#2: var x = new Boolean(true); ++x === 1 + 1. Actual: ' + (++x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T2.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T2.js index 3aacac1b8..94026e5ae 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T2.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_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. -/** - * Operator ++x returns ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A4_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator ++x returns ToNumber(x) + 1 +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 0.1; @@ -19,4 +17,3 @@ var x = new Number(-1.1); if (++x !== -1.1 + 1) { $ERROR('#2: var x = new Number(-1.1); ++x === -1.1 + 1. Actual: ' + (++x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T3.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T3.js index 4e2d5f22a..58ab2eb0c 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T3.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_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. -/** - * Operator ++x returns ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A4_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator ++x returns ToNumber(x) + 1 +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -25,4 +23,3 @@ var x = new String("-1"); if (++x !== -1 + 1) { $ERROR('#3: var x = new String("-1"); ++x === -1 + 1. Actual: ' + (++x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T4.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T4.js index f0edb536e..c149f7dc3 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T4.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_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. -/** - * Operator ++x returns ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A4_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator ++x returns ToNumber(x) + 1 +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -19,4 +17,3 @@ var x = null; if (++x !== 1) { $ERROR('#2: var x = null; ++x === 1. Actual: ' + (++x)); } - diff --git a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T5.js b/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T5.js index c6c9d526a..d1c391ca1 100644 --- a/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T5.js +++ b/test/suite/ch11/11.4/11.4.4/S11.4.4_A4_T5.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 returns ToNumber(x) + 1 - * - * @path ch11/11.4/11.4.4/S11.4.4_A4_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator ++x returns ToNumber(x) + 1 +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -19,4 +17,3 @@ var x = function(){return 1}; if (isNaN(++x) !== true) { $ERROR('#2: var x = function(){return 1}; ++x === Not-a-Number. Actual: ' + (++x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/11.4.5-2-1-s.js b/test/suite/ch11/11.4/11.4.5/11.4.5-2-1-s.js index 2c0d4c1a1..6c6469791 100644 --- a/test/suite/ch11/11.4/11.4.5/11.4.5-2-1-s.js +++ b/test/suite/ch11/11.4/11.4.5/11.4.5-2-1-s.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.5/11.4.5-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown for --eval
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("--eval;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown for --eval +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = eval; + try { + eval("--eval;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === eval; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.5/11.4.5-2-2-s.js b/test/suite/ch11/11.4/11.4.5/11.4.5-2-2-s.js index 373dabe9e..7e0deb875 100644 --- a/test/suite/ch11/11.4/11.4.5/11.4.5-2-2-s.js +++ b/test/suite/ch11/11.4/11.4.5/11.4.5-2-2-s.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.5/11.4.5-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown for --arguments
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("--arguments;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is thrown for --arguments +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var blah = arguments; + try { + eval("--arguments;"); + return false; + } catch (e) { + return e instanceof SyntaxError && blah === arguments; + } + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.5/11.4.5-2-2gs.js b/test/suite/ch11/11.4/11.4.5/11.4.5-2-2gs.js index 3040d8029..51598ad0a 100644 --- a/test/suite/ch11/11.4/11.4.5/11.4.5-2-2gs.js +++ b/test/suite/ch11/11.4/11.4.5/11.4.5-2-2gs.js @@ -1,16 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch11/11.4/11.4.5/11.4.5-2-2gs.js
- * @description Strict Mode - SyntaxError is throw if the UnaryExpression operated upon by a Prefix Increment operator(--arguments)
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
---arguments;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - SyntaxError is throw if the UnaryExpression operated + upon by a Prefix Increment operator(--arguments) +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +--arguments; diff --git a/test/suite/ch11/11.4/11.4.5/11.4.5-2-3-s.js b/test/suite/ch11/11.4/11.4.5/11.4.5-2-3-s.js index 9af3f7bcb..3ac01cc31 100644 --- a/test/suite/ch11/11.4/11.4.5/11.4.5-2-3-s.js +++ b/test/suite/ch11/11.4/11.4.5/11.4.5-2-3-s.js @@ -1,19 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.5/11.4.5-2-3-s.js
- * @description Strict Mode - SyntaxError is not thrown for --arguments[...]
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- arguments[1] = 7;
- --arguments[1];
- return arguments[1]===6;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Strict Mode - SyntaxError is not thrown for --arguments[...] +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + arguments[1] = 7; + --arguments[1]; + return arguments[1]===6; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A1.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A1.js index 5be2493ee..4ee754f2f 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A1.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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 "--" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.5/S11.4.5_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "--" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("var x = 1; --\u0009x") !== 0) { @@ -57,4 +57,3 @@ if (eval("var x = 1; --\u2029x") !== 0) { if (eval("var x = 1; --\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029x") !== 0) { $ERROR('#10: var x = 1; --\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029x; x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T1.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T1.js index 136b72c51..e3e8dffd0 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T1.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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 uses GetValue and PutValue - * - * @path ch11/11.4/11.4.5/S11.4.5_A2.1_T1.js - * @description Type(x) is Reference and GetBase(x) is not null - */ +/*--- +info: Operator --x uses GetValue and PutValue +description: Type(x) is Reference and GetBase(x) is not null +---*/ //CHECK#1 var x = 1; @@ -38,4 +36,3 @@ if (--object.prop !== 1 - 1) { $ERROR('#3: var object = new Object(); object.prop = 1; --object.prop; object.prop === 1 - 1. Actual: ' + (object.prop)); } } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T2.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T2.js index 2dabef975..de2d0cb28 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T2.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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 uses GetValue and PutValue - * - * @path ch11/11.4/11.4.5/S11.4.5_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator --x uses GetValue and PutValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: --x throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js index 5700185b9..30128f859 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator --x uses GetValue and PutValue - * - * @path ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js - * @description If Type(x) is not Reference, throw ReferenceError (or SyntaxError) - * @negative - */ +/*--- +info: Operator --x uses GetValue and PutValue +description: If Type(x) is not Reference, throw ReferenceError (or SyntaxError) +flags: [negative] +---*/ //CHECK#1 try { @@ -21,4 +19,3 @@ catch (e) { --1; } } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.2_T1.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.2_T1.js index 6f19db9db..86fa0c89d 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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 uses [[Default Value]] - * - * @path ch11/11.4/11.4.5/S11.4.5_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator --x uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -101,4 +99,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; --object throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T1.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T1.js index f7fd9fc7b..f49beaef7 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T1.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_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 returns x = ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator --x returns x = ToNumber(x) - 1 +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = true; @@ -21,4 +19,3 @@ var x = new Boolean(false); if (x !== 0 - 1) { $ERROR('#2: var x = new Boolean(false); --x; x === 0 - 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T2.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T2.js index a946e8648..85396116b 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T2.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_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 returns x = ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator --x returns x = ToNumber(x) - 1 +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 0.1; @@ -21,4 +19,3 @@ var x = new Number(-1.1); if (x !== -1.1 - 1) { $ERROR('#2: var x = new Number(-1.1); --x; x === -1.1 - 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T3.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T3.js index 6ed487073..37883b649 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T3.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_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 returns x = ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A3_T3.js - * @description Type(x) is primitive string or String object - */ +/*--- +info: Operator --x returns x = ToNumber(x) - 1 +description: Type(x) is primitive string or String object +---*/ //CHECK#1 var x = "1"; @@ -28,4 +26,3 @@ var x = new Number("-1"); if (x !== -1 - 1) { $ERROR('#3: var x = new String("-1"); --x; x === -1 - 1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T4.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T4.js index ed0d7798b..15ffd653f 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T4.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_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. -/** - * Operator --x returns x = ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator --x returns x = ToNumber(x) - 1 +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -21,4 +19,3 @@ var x = null; if (x !== -1) { $ERROR('#2: var x = null; --x; x === -1. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T5.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T5.js index 0fd3f76ac..b10c4c529 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T5.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A3_T5.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 returns x = ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator --x returns x = ToNumber(x) - 1 +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -21,4 +19,3 @@ var x = function(){return 1}; if (isNaN(x) !== true) { $ERROR('#2: var x = function(){return 1}; --x; x === Not-a-Number. Actual: ' + (x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T1.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T1.js index 7f424a239..fae3b2218 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T1.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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. -/** - * Operator --x returns ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A4_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator --x returns ToNumber(x) - 1 +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 var x = true; @@ -19,4 +17,3 @@ var x = new Boolean(false); if (--x !== 0 - 1) { $ERROR('#2: var x = new Boolean(false); --x === 0 - 1. Actual: ' + (--x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T2.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T2.js index c5c77de06..e5878cb2d 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T2.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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. -/** - * Operator --x returns ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A4_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator --x returns ToNumber(x) - 1 +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 var x = 0.1; @@ -19,4 +17,3 @@ var x = new Number(-1.1); if (--x !== -1.1 - 1) { $ERROR('#2: var x = new Number(-1.1); --x === -1.1- 1. Actual: ' + (--x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T3.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T3.js index 29d4d123f..b9920b2d1 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T3.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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. -/** - * Operator --x returns ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A4_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator --x returns ToNumber(x) - 1 +description: Type(x) is string primitive or String object +---*/ //CHECK#1 var x = "1"; @@ -25,4 +23,3 @@ var x = new String("-1"); if (--x !== -1 - 1) { $ERROR('#3: var x = new String("-1"); --x === -1 - 1. Actual: ' + (--x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T4.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T4.js index a1f600ace..05cd4b27e 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T4.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_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. -/** - * Operator --x returns ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A4_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator --x returns ToNumber(x) - 1 +description: Type(x) is undefined or null +---*/ //CHECK#1 var x; @@ -19,4 +17,3 @@ var x = null; if (--x !== -1) { $ERROR('#2: var x = null; --x === -1. Actual: ' + (--x)); } - diff --git a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T5.js b/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T5.js index fe40976df..e4b441a40 100644 --- a/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T5.js +++ b/test/suite/ch11/11.4/11.4.5/S11.4.5_A4_T5.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 returns ToNumber(x) - 1 - * - * @path ch11/11.4/11.4.5/S11.4.5_A4_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator --x returns ToNumber(x) - 1 +description: Type(x) is Object object or Function object +---*/ //CHECK#1 var x = {}; @@ -19,4 +17,3 @@ var x = function(){return 1}; if (isNaN(--x) !== true) { $ERROR('#2: var x = function(){return 1}; --x === Not-a-Number. Actual: ' + (--x)); } - diff --git a/test/suite/ch11/11.4/11.4.6/11.4.6-2-1.js b/test/suite/ch11/11.4/11.4.6/11.4.6-2-1.js index b4d785c18..013c82ff5 100644 --- a/test/suite/ch11/11.4/11.4.6/11.4.6-2-1.js +++ b/test/suite/ch11/11.4/11.4.6/11.4.6-2-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.6/11.4.6-2-1.js
- * @description +"" should be zero
- */
-
-
-function testcase() {
- return +"" === 0;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: +"" should be zero +includes: [runTestCase.js] +---*/ + +function testcase() { + return +"" === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A1.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A1.js index ac0f45a12..f0f617f18 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A1.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_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 "+" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.6/S11.4.6_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "+" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("+\u00091") !== 1) { @@ -57,4 +57,3 @@ if (eval("+\u20291") !== 1) { if (eval("+\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 1) { $ERROR('#10: +\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 1'); } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.1_T1.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.1_T1.js index a3074769a..dffb46107 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.1_T1.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_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 uses GetValue - * - * @path ch11/11.4/11.4.6/S11.4.6_A2.1_T1.js - * @description Either Type(x) is not Reference or GetBase(x) is not null - */ +/*--- +info: Operator +x uses GetValue +description: Either Type(x) is not Reference or GetBase(x) is not null +---*/ //CHECK#1 if (+1 !== 1) { @@ -36,4 +34,3 @@ object.prop = 1; if (+object.prop !== 1) { $ERROR('#5: var object = new Object(); object.prop = 1; +object.prop === 1. Actual: ' + (+object.prop)); } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.1_T2.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.1_T2.js index ab6aa9fe4..21f0c7f38 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.1_T2.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_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 uses GetValue - * - * @path ch11/11.4/11.4.6/S11.4.6_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator +x uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: +x throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.2_T1.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.2_T1.js index 78eb580bb..529b6b96f 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_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 uses [[Default Value]] - * - * @path ch11/11.4/11.4.6/S11.4.6_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator +x uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -76,4 +74,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; +object throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T1.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T1.js index 7338942de..dc6d73400 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T1.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_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 returns ToNumber(x) - * - * @path ch11/11.4/11.4.6/S11.4.6_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator +x returns ToNumber(x) +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 if (+false !== 0) { @@ -17,4 +15,3 @@ if (+false !== 0) { if (+new Boolean(true) !== 1) { $ERROR('#2: +new Boolean(true) === 1. Actual: ' + (+new Boolean(true))); } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T2.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T2.js index 86f537c64..be88e8b47 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T2.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_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 returns ToNumber(x) - * - * @path ch11/11.4/11.4.6/S11.4.6_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator +x returns ToNumber(x) +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 if (+0.1 !== 0.1) { @@ -17,4 +15,3 @@ if (+0.1 !== 0.1) { if (+new Number(-1.1) !== -1.1) { $ERROR('#2: +new Number(-1.1) === -1.1. Actual: ' + (+new Number(-1.1))); } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T3.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T3.js index 36628861a..65e9f73cc 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T3.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_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 returns ToNumber(x) - * - * @path ch11/11.4/11.4.6/S11.4.6_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator +x returns ToNumber(x) +description: Type(x) is string primitive or String object +---*/ //CHECK#1 if (+"1" !== 1) { @@ -22,4 +20,3 @@ if (isNaN(+"x") !== true) { if (+new Number("-1") !== -1) { $ERROR('#3: +new String("-1") === -1. Actual: ' + (+new String("-1"))); } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T4.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T4.js index 61b853375..68e946b91 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T4.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_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. -/** - * Operator +x returns ToNumber(x) - * - * @path ch11/11.4/11.4.6/S11.4.6_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator +x returns ToNumber(x) +description: Type(x) is undefined or null +---*/ //CHECK#1 if (isNaN(+void 0) !== true) { @@ -17,4 +15,3 @@ if (isNaN(+void 0) !== true) { if (+null !== 0) { $ERROR('#2: +null === 0. Actual: ' + (+null)); } - diff --git a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T5.js b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T5.js index 9b56ff09f..80bb5eaa0 100644 --- a/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T5.js +++ b/test/suite/ch11/11.4/11.4.6/S11.4.6_A3_T5.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 returns ToNumber(x) - * - * @path ch11/11.4/11.4.6/S11.4.6_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator +x returns ToNumber(x) +description: Type(x) is Object object or Function object +---*/ //CHECK#1 if (isNaN(+{}) !== true) { @@ -17,4 +15,3 @@ if (isNaN(+{}) !== true) { if (isNaN(+function(){return 1}) !== true) { $ERROR('#2: +function(){return 1} === Not-a-Number. Actual: ' + (+function(){return 1})); } - diff --git a/test/suite/ch11/11.4/11.4.7/11.4.7-4-1.js b/test/suite/ch11/11.4/11.4.7/11.4.7-4-1.js index 12d050866..44c1940b6 100644 --- a/test/suite/ch11/11.4/11.4.7/11.4.7-4-1.js +++ b/test/suite/ch11/11.4/11.4.7/11.4.7-4-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.4/11.4.7/11.4.7-4-1.js
- * @description -"" should be zero
- */
-
-
-function testcase() {
- return -"" === 0;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: -"" should be zero +includes: [runTestCase.js] +---*/ + +function testcase() { + return -"" === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A1.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A1.js index 13234518b..f254b594b 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A1.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_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 "-" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.7/S11.4.7_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "-" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("-\u00091") !== -1) { @@ -57,4 +57,3 @@ if (eval("-\u20291") !== -1) { if (eval("-\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== -1) { $ERROR('#10: -\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === -1'); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.1_T1.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.1_T1.js index 8b3c47a90..8bb9a0e26 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.1_T1.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_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 uses GetValue - * - * @path ch11/11.4/11.4.7/S11.4.7_A2.1_T1.js - * @description Either Type(x) is not Reference or GetBase(x) is not null - */ +/*--- +info: Operator -x uses GetValue +description: Either Type(x) is not Reference or GetBase(x) is not null +---*/ //CHECK#1 if (-1 !== -1) { @@ -36,4 +34,3 @@ object.prop = 1; if (-object.prop !== -1) { $ERROR('#5: var object = new Object(); object.prop = -1; -object.prop === -1. Actual: ' + (-object.prop)); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.1_T2.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.1_T2.js index e7de28aa5..5218431d4 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.1_T2.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_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 uses GetValue - * - * @path ch11/11.4/11.4.7/S11.4.7_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator -x uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: -x throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.2_T1.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.2_T1.js index a9ad69e5c..af2577ad0 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_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 uses [[Default Value]] - * - * @path ch11/11.4/11.4.7/S11.4.7_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator -x uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return -1}}; @@ -76,4 +74,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; -object throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T1.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T1.js index f421d9133..518fe5891 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T1.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_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 returns -ToNumber(x) - * - * @path ch11/11.4/11.4.7/S11.4.7_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator -x returns -ToNumber(x) +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 if (-false !== 0) { @@ -17,4 +15,3 @@ if (-false !== 0) { if (-new Boolean(true) !== -1) { $ERROR('#2: -new Boolean(true) === -1. Actual: ' + (-new Boolean(true))); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T2.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T2.js index 611683c12..22a2aa592 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T2.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_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 returns -ToNumber(x) - * - * @path ch11/11.4/11.4.7/S11.4.7_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator -x returns -ToNumber(x) +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 if (-(1) !== -1) { @@ -17,4 +15,3 @@ if (-(1) !== -1) { if (-new Number(-1) !== 1) { $ERROR('#2: -new Number(-1) === 1. Actual: ' + (-new Number(-1))); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T3.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T3.js index 9a439804e..d185c97b8 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T3.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_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 returns -ToNumber(x) - * - * @path ch11/11.4/11.4.7/S11.4.7_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator -x returns -ToNumber(x) +description: Type(x) is string primitive or String object +---*/ //CHECK#1 if (-"1" !== -1) { @@ -22,4 +20,3 @@ if (isNaN(-"x") !== true) { if (-new String("-1") !== 1) { $ERROR('#3: -new String("-1") === 1. Actual: ' + (-new String("-1"))); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T4.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T4.js index 7fda40e95..1f03d6711 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T4.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_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. -/** - * Operator -x returns -ToNumber(x) - * - * @path ch11/11.4/11.4.7/S11.4.7_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator -x returns -ToNumber(x) +description: Type(x) is undefined or null +---*/ //CHECK#1 if (isNaN(-void 0) !== true) { @@ -17,4 +15,3 @@ if (isNaN(-void 0) !== true) { if (-null !== 0) { $ERROR('#2: +null === 0. Actual: ' + (+null)); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T5.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T5.js index 426a4fd8b..33fdc8427 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T5.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_A3_T5.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 returns -ToNumber(x) - * - * @path ch11/11.4/11.4.7/S11.4.7_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator -x returns -ToNumber(x) +description: Type(x) is Object object or Function object +---*/ //CHECK#1 if (isNaN(-{}) !== true) { @@ -17,4 +15,3 @@ if (isNaN(-{}) !== true) { if (isNaN(-function(){return 1}) !== true) { $ERROR('#2: -function(){return 1} === Not-a-Number. Actual: ' + (-function(){return 1})); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A4.1.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A4.1.js index e8d1dfe86..1adb3cc2f 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A4.1.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_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, operator -x returns NaN - * - * @path ch11/11.4/11.4.7/S11.4.7_A4.1.js - * @description Checking NaN - */ +/*--- +info: If x is NaN, operator -x returns NaN +description: Checking NaN +---*/ //CHECK#1 if (isNaN(-NaN) !== true) { @@ -18,4 +16,3 @@ var x = NaN; if (isNaN(-x) != true) { $ERROR('#2: var x = NaN; -x === Not-a-Number. Actual: ' + (-x)); } - diff --git a/test/suite/ch11/11.4/11.4.7/S11.4.7_A4.2.js b/test/suite/ch11/11.4/11.4.7/S11.4.7_A4.2.js index 8b39bd249..eca5fc0bc 100644 --- a/test/suite/ch11/11.4/11.4.7/S11.4.7_A4.2.js +++ b/test/suite/ch11/11.4/11.4.7/S11.4.7_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. -/** - * Negating +0 produces -0, negating -0 produces +0 - * - * @path ch11/11.4/11.4.7/S11.4.7_A4.2.js - * @description Checking Infinity - */ +/*--- +info: Negating +0 produces -0, negating -0 produces +0 +description: Checking Infinity +---*/ //CHECK#1 var x = 0; @@ -29,5 +27,3 @@ if (x !== 0) { $ERROR('#2.2: var x = -0; x = -x; x === + 0. Actual: -0'); } } - - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A1.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A1.js index 7a646edfd..4405f0729 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A1.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_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 "~" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.8/S11.4.8_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "~" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("~\u00090") !== -1) { @@ -57,4 +57,3 @@ if (eval("~\u20290") !== -1) { if (eval("~\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== -1) { $ERROR('#10: ~\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20290 === -1'); } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.1_T1.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.1_T1.js index 6dc44f7ae..0032d7edd 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.1_T1.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_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 uses GetValue - * - * @path ch11/11.4/11.4.8/S11.4.8_A2.1_T1.js - * @description Either Type(x) is not Reference or GetBase(x) is not null - */ +/*--- +info: Operator ~x uses GetValue +description: Either Type(x) is not Reference or GetBase(x) is not null +---*/ //CHECK#1 if (~0 !== -1) { @@ -36,4 +34,3 @@ object.prop = 0; if (~object.prop !== -1) { $ERROR('#5: var object = new Object(); object.prop = 0; ~object.prop === -1. Actual: ' + (~object.prop)); } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.1_T2.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.1_T2.js index 3f53f4673..129ae0f79 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.1_T2.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_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 uses GetValue - * - * @path ch11/11.4/11.4.8/S11.4.8_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator ~x uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: ~x throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.2_T1.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.2_T1.js index 44b5e6127..fa310ebb2 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_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 uses [[Default Value]] - * - * @path ch11/11.4/11.4.8/S11.4.8_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator ~x uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -76,4 +74,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; ~object throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T1.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T1.js index 0958a0570..188b9d9cd 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T1.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_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 returns ~ToInt32(x) - * - * @path ch11/11.4/11.4.8/S11.4.8_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator ~x returns ~ToInt32(x) +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 if (~false !== -1) { @@ -22,4 +20,3 @@ if (~new Boolean(true) !== -2) { if (~new Boolean(false) !== -1) { $ERROR('#3: ~new Boolean(false) === -1. Actual: ' + (~new Boolean(false))); } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T2.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T2.js index a7b6d4bbc..1d31641f1 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T2.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_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 returns ~ToInt32(x) - * - * @path ch11/11.4/11.4.8/S11.4.8_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator ~x returns ~ToInt32(x) +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 if (~0.1 !== -1) { @@ -42,4 +40,3 @@ if (~new Number(-2) !== 1) { if (~Infinity !== -1) { $ERROR('#7: ~Infinity === -1. Actual: ' + (~Infinity)); } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T3.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T3.js index ec54ebd48..ebd8ca0b2 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T3.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_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 returns ~ToInt32(x) - * - * @path ch11/11.4/11.4.8/S11.4.8_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator ~x returns ~ToInt32(x) +description: Type(x) is string primitive or String object +---*/ //CHECK#1 if (~"1" !== -2) { @@ -32,4 +30,3 @@ if (~"" !== -1) { if (~new String("-2") !== 1) { $ERROR('#5: ~new String("-2") === 1. Actual: ' + (~new String("-2"))); } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T4.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T4.js index d8be652d4..b7d7053d7 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T4.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_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. -/** - * Operator ~x returns ~ToInt32(x) - * - * @path ch11/11.4/11.4.8/S11.4.8_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator ~x returns ~ToInt32(x) +description: Type(x) is undefined or null +---*/ //CHECK#1 if (~void 0 !== -1) { @@ -17,4 +15,3 @@ if (~void 0 !== -1) { if (~null !== -1) { $ERROR('#2: ~null === -1. Actual: ' + (~null)); } - diff --git a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T5.js b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T5.js index 8fcfc740b..f3b937d5c 100644 --- a/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T5.js +++ b/test/suite/ch11/11.4/11.4.8/S11.4.8_A3_T5.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 returns ~ToInt32(x) - * - * @path ch11/11.4/11.4.8/S11.4.8_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator ~x returns ~ToInt32(x) +description: Type(x) is Object object or Function object +---*/ //CHECK#1 if (~({}) !== -1) { @@ -17,4 +15,3 @@ if (~({}) !== -1) { if (~(function(){return 1}) !== -1) { $ERROR('#2: ~(function(){return 1}) === -1. Actual: ' + (~(function(){return 1}))); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A1.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A1.js index e4c26d0a1..cb08eb07b 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A1.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_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 "!" and UnaryExpression are allowed - * - * @path ch11/11.4/11.4.9/S11.4.9_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between "!" and UnaryExpression are + allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("!\u0009true") !== false) { @@ -57,4 +57,3 @@ if (eval("!\u2029true") !== false) { if (eval("!\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true") !== false) { $ERROR('#10: !\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true === false'); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.1_T1.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.1_T1.js index d08fdd181..5cc1ea3fb 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.1_T1.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_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 uses GetValue - * - * @path ch11/11.4/11.4.9/S11.4.9_A2.1_T1.js - * @description Either Type(x) is not Reference or GetBase(x) is not null - */ +/*--- +info: Operator !x uses GetValue +description: Either Type(x) is not Reference or GetBase(x) is not null +---*/ //CHECK#1 if (!true !== false) { @@ -36,4 +34,3 @@ object.prop = true; if (!object.prop !== false) { $ERROR('#5: var object = new Object(); object.prop = true; !object.prop === false'); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.1_T2.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.1_T2.js index b6592471d..ab63e0a8d 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.1_T2.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_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 uses GetValue - * - * @path ch11/11.4/11.4.9/S11.4.9_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator !x uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: !x throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.2_T1.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.2_T1.js index 3f156e9d4..2648347af 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A2.2_T1.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_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 uses [[Default Value]] - * - * @path ch11/11.4/11.4.9/S11.4.9_A2.2_T1.js - * @description If Type(value) is Object, return false - */ +/*--- +info: Operator !x uses [[Default Value]] +description: If Type(value) is Object, return false +---*/ //CHECK#1 var object = {valueOf: function() {return 1}}; @@ -54,5 +52,4 @@ if (!object !== false) { var object = {valueOf: function() {return {}}, toString: function() {return {}}}; if (!object !== false) { $ERROR('#8: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; !object === false. Actual: ' + (!object)); -} - +} diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T1.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T1.js index 05a4ebcc7..6074cb867 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T1.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_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 returns !ToBoolean(x) - * - * @path ch11/11.4/11.4.9/S11.4.9_A3_T1.js - * @description Type(x) is boolean primitive or Boolean object - */ +/*--- +info: Operator !x returns !ToBoolean(x) +description: Type(x) is boolean primitive or Boolean object +---*/ //CHECK#1 if (!false !== true) { @@ -22,4 +20,3 @@ if (!new Boolean(true) !== false) { if (!new Boolean(false) !== false) { $ERROR('#3: !new Boolean(false) === false'); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T2.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T2.js index a2e13b0c0..83a476a10 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T2.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_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 returns !ToBoolean(x) - * - * @path ch11/11.4/11.4.9/S11.4.9_A3_T2.js - * @description Type(x) is number primitive or Number object - */ +/*--- +info: Operator !x returns !ToBoolean(x) +description: Type(x) is number primitive or Number object +---*/ //CHECK#1 if (!0.1 !== false) { @@ -42,4 +40,3 @@ if (!new Number(0) !== false) { if (!Infinity !== false) { $ERROR('#7: !Infinity === false'); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T3.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T3.js index a15994ddc..b7436484e 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T3.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_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 returns !ToBoolean(x) - * - * @path ch11/11.4/11.4.9/S11.4.9_A3_T3.js - * @description Type(x) is string primitive or String object - */ +/*--- +info: Operator !x returns !ToBoolean(x) +description: Type(x) is string primitive or String object +---*/ //CHECK#1 if (!"1" !== false) { @@ -32,4 +30,3 @@ if (!"" !== true) { if (!new String("") !== false) { $ERROR('#5: !new String("") === false'); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T4.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T4.js index 0ac35bb98..24f451794 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T4.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_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. -/** - * Operator !x returns !ToBoolean(x) - * - * @path ch11/11.4/11.4.9/S11.4.9_A3_T4.js - * @description Type(x) is undefined or null - */ +/*--- +info: Operator !x returns !ToBoolean(x) +description: Type(x) is undefined or null +---*/ //CHECK#1 if (!void 0 !== true) { @@ -17,4 +15,3 @@ if (!void 0 !== true) { if (!null !== true) { $ERROR('#2: !null === true'); } - diff --git a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T5.js b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T5.js index 88f6dcaec..3b74d931c 100644 --- a/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T5.js +++ b/test/suite/ch11/11.4/11.4.9/S11.4.9_A3_T5.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 returns !ToBoolean(x) - * - * @path ch11/11.4/11.4.9/S11.4.9_A3_T5.js - * @description Type(x) is Object object or Function object - */ +/*--- +info: Operator !x returns !ToBoolean(x) +description: Type(x) is Object object or Function object +---*/ //CHECK#1 if ((!{}) !== false) { @@ -17,4 +15,3 @@ if ((!{}) !== false) { if (!(function(){return 1}) !== false) { $ERROR('#2: !(function(){return 1}) === false'); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A1.js index 1a9876c01..06c4997c1 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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 MultiplicativeExpression and "*" or between "*" and UnaryExpression are allowed - * - * @path ch11/11.5/11.5.1/S11.5.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MultiplicativeExpression and "*" + or between "*" and UnaryExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009*\u00091") !== 1) { @@ -57,4 +57,3 @@ if (eval("1\u2029*\u20291") !== 1) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029*\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 1) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029*\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 1'); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js index ed649ace5..1ca420693 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x * y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 * 1 !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop * objecty.prop !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop * objecty.prop === 1. Actual: ' + (objectx.prop * objecty.prop)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js index e1f16da9d..a4d31c9a9 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: x * 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js index 22af7df20..fd70e9867 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A2.2_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.2_T1.js index 932acabb2..8a209af85 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.2_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x * y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} * 1 !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 * {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js index ba58724a9..df36f1028 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A2.4_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T1.js index 504923aee..f0d086640 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A2.4_T2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T2.js index 262f2e7fc..17146f95b 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A2.4_T3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T3.js index edcb5e006..e0280e32f 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 !== 1) { $ERROR('#2: (y = 1) * y === 1. Actual: ' + ((y = 1) * y)); } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js index de1e6dfdb..0f0f8b6dc 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 !== 1) { @@ -27,4 +27,3 @@ if (true * new Boolean(true) !== 1) { if (new Boolean(true) * new Boolean(true) !== 1) { $ERROR('#4: new Boolean(true) * new Boolean(true) === 1. Actual: ' + (new Boolean(true) * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js index 1e0a49387..eb8a44fdb 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 !== 1) { @@ -27,5 +25,3 @@ if (1 * new Number(1) !== 1) { if (new Number(1) * new Number(1) !== 1) { $ERROR('#4: new Number(1) * new Number(1) === 1. Actual: ' + (new Number(1) * new Number(1))); } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js index e04ab70ea..e8b95dd7b 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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" !== 1) { @@ -37,4 +35,3 @@ if (isNaN("x" * "1") !== true) { if (isNaN("1" * "x") !== true) { $ERROR('#6: "1" * "x" === Not-a-Number. Actual: ' + ("1" * "x")); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js index 2dbe84f97..3bd660f7b 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 (isNaN(null * undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined * undefined) !== true) { if (null * null !== 0) { $ERROR('#4: null * null === 0. Actual: ' + (null * null)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js index 061e0ff27..0a83e17c3 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 (isNaN({} * function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} * function(){return 1}) !== true) { if (isNaN({} * {}) !== true) { $ERROR('#4: {} * {} === Not-a-Number. Actual: ' + ({} * {})); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js index 08a913b95..4999b6154 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Number (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 + Boolean (primitive or object) and Number (primitive and object) +---*/ //CHECK#1 if (true * 1 !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) * new Number(1) !== 1) { if (new Number(1) * new Boolean(true) !== 1) { $ERROR('#8: new Number(1) * new Boolean(true) === 1. Actual: ' + (new Number(1) * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js index 063c4da9e..9d4167f7f 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if ("1" * 1 !== 1) { @@ -57,4 +57,3 @@ if (isNaN("x" * 1) !== true) { if (isNaN(1 * "x") !== true) { $ERROR('#10: 1 * "x" === Not-a-Number. Actual: ' + (1 * "x")); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js index cfab7ba6b..3633adfd2 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if (1 * null !== 0) { @@ -27,4 +27,3 @@ if (new Number(1) * null !== 0) { if (null * new Number(1) !== 0) { $ERROR('#4: null * new Number(1) === 0. Actual: ' + (null * new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js index 0216310cf..092befa78 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 (isNaN(1 * undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) * undefined) !== true) { if (isNaN(undefined * new Number(1)) !== true) { $ERROR('#4: undefined * new Number(1) === Not-a-Number. Actual: ' + (undefined * new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js index 5d92d9827..26a4a1977 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if (true * "1" !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) * new String("1") !== 1) { if (new String("1") * new Boolean(true) !== 1) { $ERROR('#8: new String("1") * new Boolean(true) === 1. Actual: ' + (new String("1") * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js index 429683ff2..bc9c1821d 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between primitive 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 + primitive String (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN("1" * undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") * undefined) !== true) { if (isNaN(undefined * new String("1")) !== true) { $ERROR('#4: undefined * new String("1") === Not-a-Number. Actual: ' + (undefined * new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js index 786f23057..dc65cae9a 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if ("1" * null !== 0) { @@ -27,4 +27,3 @@ if (new String("1") * null !== 0) { if (null * new String("1") !== 0) { $ERROR('#4: null * new String("1") === 0. Actual: ' + (null * new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js index ef7ae0503..8181085c8 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.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 (isNaN(true * undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) * undefined) !== true) { if (isNaN(undefined * new Boolean(true)) !== true) { $ERROR('#4: undefined * new Boolean(true) === Not-a-Number. Actual: ' + (undefined * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js index 377cb00f0..2c423af1f 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.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.5/11.5.1/S11.5.1_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if (true * null !== 0) { @@ -27,4 +27,3 @@ if (new Boolean(true) * null !== 0) { if (null * new Boolean(true) !== 0) { $ERROR('#4: null * new Boolean(true) === 0. Actual: ' + (null * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js index d3b5006ce..54b8ffcf0 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js - * @description If left operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: If left operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN * Number.NaN) !== true) { @@ -46,5 +46,4 @@ if (isNaN(Number.NaN * Number.MIN_VALUE) !== true) { //CHECK#8 if (isNaN(Number.NaN * 1) !== true) { $ERROR('#8: NaN * 1 === Not-a-Number. Actual: ' + (NaN * 1)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js index 2f1d7c1c0..90ad78554 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js - * @description If right operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: If right operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN * Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.MIN_VALUE * Number.NaN) !== true) { if (isNaN(1 * Number.NaN) !== true) { $ERROR('#8: 1 * NaN === Not-a-Number. Actual: ' + (1 * NaN)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.js index f6bc87a6f..b92384bc0 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T2.js - * @description The sign of the result is positive if both operands have the same sign, negative if the operands have different signs - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + The sign of the result is positive if both operands have the same + sign, negative if the operands have different signs +---*/ //CHECK#1 if (1 * 1 !== 1) { @@ -63,4 +65,3 @@ if (-0 * -0 !== 0) { $ERROR('#8.2: 0 * -0 === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.js index 6bc264f90..7af52e48d 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T3.js - * @description Multiplication of an infinity by a zero results in NaN - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: Multiplication of an infinity by a zero results in NaN +---*/ //CHECK#1 if (isNaN(Number.NEGATIVE_INFINITY * 0) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.POSITIVE_INFINITY * 0) !== true) { if (isNaN(-0 * Number.POSITIVE_INFINITY) !== true) { $ERROR('#8: -0 * Infinity === Not-a-Number. Actual: ' + (-0 * Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.js index 5603e976e..e627c6df3 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T4.js - * @description Multiplication of an infinity by an infinity results in an infinity of appropriate sign - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + Multiplication of an infinity by an infinity results in an + infinity of appropriate sign +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY * Number.NEGATIVE_INFINITY !== Number.POSITIVE_INFINITY) { @@ -27,4 +29,3 @@ if (Number.NEGATIVE_INFINITY * Number.POSITIVE_INFINITY !== Number.NEGATIVE_INFI if (Number.POSITIVE_INFINITY * Number.NEGATIVE_INFINITY !== Number.NEGATIVE_INFINITY) { $ERROR('#4: Infinity * -Infinity === -Infinity. Actual: ' + (Infinity * -Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.js index e52526d3a..404d87ecd 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T5.js - * @description Multiplication of an infinity by a finite non-zero value results in a signed infinity - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + Multiplication of an infinity by a finite non-zero value results + in a signed infinity +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY * -1 !== Number.POSITIVE_INFINITY) { @@ -46,5 +48,4 @@ if (Number.NEGATIVE_INFINITY * Number.MIN_VALUE !== Number.NEGATIVE_INFINITY) { //CHECK#8 if (Number.NEGATIVE_INFINITY * Number.MIN_VALUE !== Number.MIN_VALUE * Number.NEGATIVE_INFINITY) { $ERROR('#8: -Infinity * Number.MIN_VALUE === Number.MIN_VALUE * -Infinity. Actual: ' + (-Infinity * Number.MIN_VALUE)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.js index 7432a3146..a15968cc1 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T6.js - * @description If the magnitude is too large to represent, the result is then an infinity of appropriate sign - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + If the magnitude is too large to represent, the result is then an + infinity of appropriate sign +---*/ //CHECK#1 if (Number.MAX_VALUE * 1.1 !== Number.POSITIVE_INFINITY) { @@ -26,5 +28,4 @@ if (Number.MAX_VALUE * 1 !== Number.MAX_VALUE) { //CHECK#4 if (-1 * Number.MAX_VALUE !== -Number.MAX_VALUE) { $ERROR('#4: -1 * Number.MAX_VALUE === -Number.MAX_VALUE. Actual: ' + (-1 * Number.MAX_VALUE)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.js index 5a8d203e5..8ee177714 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T7.js - * @description If the magnitude is too small to represent, the result is then a zero of appropriate sign - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + If the magnitude is too small to represent, the result is then a + zero of appropriate sign +---*/ //CHECK#1 if (Number.MIN_VALUE * 0.1 !== 0) { @@ -54,5 +56,4 @@ if (Number.MIN_VALUE * 0.9 !== Number.MIN_VALUE) { //CHECK#8 if (-0.9 * Number.MIN_VALUE !== -Number.MIN_VALUE) { $ERROR('#8: -0.9 * Number.MIN_VALUE === -Number.MIN_VALUE. Actual: ' + (-0.9 * Number.MIN_VALUE)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.js index 0d777e06f..2fc0b6847 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T8.js - * @description Multiplication is not always associative (x * y * z is the same as (x * y) * z, not x * (y * z)) - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + Multiplication is not always associative (x * y * z is the same as + (x * y) * z, not x * (y * z)) +---*/ //CHECK#1 if (Number.MAX_VALUE * 1.1 * 0.9 !== (Number.MAX_VALUE * 1.1) * 0.9) { @@ -17,4 +19,3 @@ if (Number.MAX_VALUE * 1.1 * 0.9 !== (Number.MAX_VALUE * 1.1) * 0.9) { if ((Number.MAX_VALUE * 1.1) * 0.9 === Number.MAX_VALUE * (1.1 * 0.9)) { $ERROR('#2: (Number.MAX_VALUE * 1.1) * 0.9 !== Number.MAX_VALUE * (1.1 * 0.9)'); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A1.js index 0b92880bd..03b1ec57d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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 MultiplicativeExpression and "/" or between "/" and UnaryExpression are allowed - * - * @path ch11/11.5/11.5.2/S11.5.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MultiplicativeExpression and "/" + or between "/" and UnaryExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009/\u00091") !== 1) { @@ -57,4 +57,3 @@ if (eval("1\u2029/\u20291") !== 1) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029/\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 1) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029/\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 1'); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js index c06d2991c..74b54e32d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.2_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x / y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 / 1 !== 1) { @@ -40,5 +38,3 @@ objecty.prop = 1; if (objectx.prop / objecty.prop !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop / objecty.prop === 1. Actual: ' + (objectx.prop / objecty.prop)); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js index 68396ed54..2fef528bb 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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.5/11.5.2/S11.5.2_A2.1_T3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T3.js index d0da4868d..714269989 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.2_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x / y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 / y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js index e0d8bc345..efa8222d8 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.2_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x / y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} / 1 !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 / {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js index 8c0b9888e..738f4dec2 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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.5/11.5.2/S11.5.2_A2.4_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T1.js index 2d2d55efe..3f39f911c 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 = 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.5/11.5.2/S11.5.2_A2.4_T2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T2.js index 44f0f2327..7b2090572 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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.5/11.5.2/S11.5.2_A2.4_T3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T3.js index 13ffe9ff3..906c3f1bb 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== 1) { $ERROR('#2: (y = 1) / y === 1. Actual: ' + ((y = 1) / y)); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js index 5e53abaf2..4ca9b04b8 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== 1) { @@ -27,4 +27,3 @@ if (true / new Boolean(true) !== 1) { if (new Boolean(true) / new Boolean(true) !== 1) { $ERROR('#4: new Boolean(true) / new Boolean(true) === 1. Actual: ' + (new Boolean(true) / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js index 97bb6036d..e0d2ac63d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== 1) { @@ -27,5 +25,3 @@ if (1 / new Number(1) !== 1) { if (new Number(1) / new Number(1) !== 1) { $ERROR('#4: new Number(1) / new Number(1) === 1. Actual: ' + (new Number(1) / new Number(1))); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js index 56d1b142c..3ba453d8b 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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" !== 1) { @@ -37,4 +35,3 @@ if (isNaN("x" / "1") !== true) { if (isNaN("1" / "x") !== true) { $ERROR('#6: "1" / "x" === Not-a-Number. Actual: ' + ("1" / "x")); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js index e9269fb45..13e9f6b6e 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 (isNaN(null / undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined / undefined) !== true) { if (isNaN(null / null) !== true) { $ERROR('#4: null / null === Not-a-Number. Actual: ' + (null / null)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js index ec57702be..53dfa9736 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 (isNaN({} / function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} / function(){return 1}) !== true) { if (isNaN({} / {}) !== true) { $ERROR('#4: {} / {} === Not-a-Number. Actual: ' + ({} / {})); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js index 7cd3f7cf6..12ca6209b 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) / new Number(1) !== 1) { if (new Number(1) / new Boolean(true) !== 1) { $ERROR('#8: new Number(1) / new Boolean(true) === 1. Actual: ' + (new Number(1) / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js index 8678544ad..c0b869c78 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== 1) { @@ -57,4 +57,3 @@ if (isNaN("x" / 1) !== true) { if (isNaN(1 / "x") !== true) { $ERROR('#10: 1 / "x" === Not-a-Number. Actual: ' + (1 / "x")); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js index bd37aaefa..c4bcf2ba1 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (new Number(1) / null !== Number.POSITIVE_INFINITY) { 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.5/11.5.2/S11.5.2_A3_T2.4.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.4.js index a67647f6b..2bcea22f2 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.4.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 (isNaN(1 / undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) / undefined) !== true) { if (isNaN(undefined / new Number(1)) !== true) { $ERROR('#4: undefined / new Number(1) === Not-a-Number. Actual: ' + (undefined / new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js index ae723bdae..002c97435 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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" !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) / new String("1") !== 1) { if (new String("1") / new Boolean(true) !== 1) { $ERROR('#8: new String("1") / new Boolean(true) === 1. Actual: ' + (new String("1") / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js index 728613ebd..b5964f389 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 (isNaN("1" / undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") / undefined) !== true) { if (isNaN(undefined / new String("1")) !== true) { $ERROR('#4: undefined / new String("1") === Not-a-Number. Actual: ' + (undefined / new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js index 9a307dc32..97aacb059 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (new String("1") / null !== Number.POSITIVE_INFINITY) { 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.5/11.5.2/S11.5.2_A3_T2.8.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.8.js index a3fb0e50e..190260366 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.8.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 (isNaN(true / undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) / undefined) !== true) { if (isNaN(undefined / new Boolean(true)) !== true) { $ERROR('#4: undefined / new Boolean(true) === Not-a-Number. Actual: ' + (undefined / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js index 5459c4d04..f94105e98 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.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.5/11.5.2/S11.5.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 !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (new Boolean(true) / null !== Number.POSITIVE_INFINITY) { 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.5/11.5.2/S11.5.2_A4_T1.1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js index f98c2b58e..0c748160c 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js - * @description If left operand is NaN, the result is NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: If left operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN / Number.NaN) !== true) { @@ -46,5 +46,4 @@ if (isNaN(Number.NaN / Number.MIN_VALUE) !== true) { //CHECK#8 if (isNaN(Number.NaN / 1) !== true) { $ERROR('#8: NaN / 1 === Not-a-Number. Actual: ' + (NaN / 1)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js index 57415ff2a..86e399127 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js - * @description If right operand is NaN, the result is NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: If right operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN / Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.MIN_VALUE / Number.NaN) !== true) { if (isNaN(1 / Number.NaN) !== true) { $ERROR('#8: 1 / NaN === Not-a-Number. Actual: ' + (1 / NaN)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js index a8a0f25ab..72a7bb6c2 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js @@ -1,13 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T10.js - * @description If both operands are finite and nonzero, the quotient is computed and rounded using IEEE 754 round-to-nearest mode. - * If the magnitude is too small to represent, the result is then a zero of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + If both operands are finite and nonzero, the quotient is computed + and rounded using IEEE 754 round-to-nearest mode. If the + magnitude is too small to represent, the result is then a zero of + appropriate sign +---*/ //CHECK#1 if (Number.MIN_VALUE / 2.1 !== 0) { @@ -55,5 +58,4 @@ if (Number.MIN_VALUE / 1.1 !== Number.MIN_VALUE) { //CHECK#8 if (Number.MIN_VALUE / -1.1 !== -Number.MIN_VALUE) { $ERROR('#8: Number.MIN_VALUE / -1.1 === -Number.MIN_VALUE. Actual: ' + (Number.MIN_VALUE / -1.1)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.js index 4e0143879..6e770263d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T2.js - * @description The sign of the result is positive if both operands have the same sign, negative if the operands have different signs - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + The sign of the result is positive if both operands have the same + sign, negative if the operands have different signs +---*/ //CHECK#1 if (1 / 1 !== 1) { @@ -27,4 +29,3 @@ if (-1 / 1 !== -1) { if (-1 / -1 !== 1) { $ERROR('#4: -1 / -1 === 1. Actual: ' + (-1 / -1)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.js index dd67b91f8..d2e952a69 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T3.js - * @description Division of an infinity by a zero results in an infinity of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of an infinity by a zero results in an infinity of + appropriate sign +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY / 0 !== Number.NEGATIVE_INFINITY) { @@ -27,4 +29,3 @@ if (Number.POSITIVE_INFINITY / 0 !== Number.POSITIVE_INFINITY) { if (Number.POSITIVE_INFINITY / -0 !== Number.NEGATIVE_INFINITY) { $ERROR('#4: Infinity / -0 === -Infinity. Actual: ' + (Infinity / -0)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.js index 14804ad6f..e20e39f7e 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T4.js - * @description Division of an infinity by an infinity results in NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: Division of an infinity by an infinity results in NaN +---*/ //CHECK#1 if (isNaN(Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY) !== true) { @@ -27,4 +27,3 @@ if (isNaN(Number.NEGATIVE_INFINITY / Number.POSITIVE_INFINITY) !== true) { if (isNaN(Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY) !== true) { $ERROR('#4: Infinity / -Infinity === Not-a-Number. Actual: ' + (Infinity / -Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.js index 3f84058ca..cb259bddf 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T5.js - * @description Division of an infinity by a finite non-zero value results in a signed infinity - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of an infinity by a finite non-zero value results in a + signed infinity +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY / 1 !== Number.NEGATIVE_INFINITY) { @@ -37,4 +39,3 @@ if (Number.POSITIVE_INFINITY / -Number.MAX_VALUE !== Number.NEGATIVE_INFINITY) { if (Number.NEGATIVE_INFINITY / Number.MIN_VALUE !== Number.NEGATIVE_INFINITY) { $ERROR('#6: -Infinity / Number.MIN_VALUE === -Infinity. Actual: ' + (-Infinity / Number.MIN_VALUE)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.js index 7c013ee31..0b9a9b77e 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T6.js - * @description Division of a finite value by an infinity results in zero of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of a finite value by an infinity results in zero of + appropriate sign +---*/ //CHECK#1 if (1 / Number.NEGATIVE_INFINITY !== -0) { @@ -43,4 +45,3 @@ if (-1 / Number.POSITIVE_INFINITY !== -0) { $ERROR('#4.2: -1 / Infinity === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.js index df2b59970..e6813428f 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T7.js - * @description Division of a zero by a zero results in NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: Division of a zero by a zero results in NaN +---*/ //CHECK#1 if (isNaN(+0 / +0) !== true) { @@ -26,5 +26,4 @@ if (isNaN(+0 / -0) !== true) { //CHECK#4 if (isNaN(-0 / -0) !== true) { $ERROR('#4: -0 / -0 === Not-a-Number. Actual: ' + (-0 / -0)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.js index 1984de1f2..fc3d81f67 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T8.js - * @description Division of a zero by any non-zero finite value -0 results in zero of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of a zero by any non-zero finite value -0 results in zero + of appropriate sign +---*/ //CHECK#1 if (-0 / 1 !== -0) { @@ -61,4 +63,3 @@ if (-0 / Number.MIN_VALUE !== -0) { $ERROR('#6.2: -0 / Number.MIN_VALUE === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.js index 9539057d7..048397746 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T9.js - * @description If the magnitude is too large to represent, the result is then an infinity of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + If the magnitude is too large to represent, the result is then an + infinity of appropriate sign +---*/ //CHECK#1 if (Number.MAX_VALUE / 0.9 !== Number.POSITIVE_INFINITY) { @@ -32,4 +34,3 @@ if (Number.MAX_VALUE / -1 !== -Number.MAX_VALUE) { if (Number.MAX_VALUE / (Number.MAX_VALUE / 0.9) === (Number.MAX_VALUE / Number.MAX_VALUE) / 0.9) { $ERROR('#5: Number.MAX_VALUE / (Number.MAX_VALUE / 0.9) !== (Number.MAX_VALUE / Number.MAX_VALUE) / 0.9'); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A1.js index c372cc545..eeee0b8e8 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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 MultiplicativeExpression and "%" or between "%" and UnaryExpression are allowed - * - * @path ch11/11.5/11.5.3/S11.5.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MultiplicativeExpression and "%" + or between "%" and UnaryExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009%\u00091") !== 0) { @@ -57,4 +57,3 @@ if (eval("1\u2029%\u20291") !== 0) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029%\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 0) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029%\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 0'); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js index b2a973d37..4b055393d 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x % y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 % 2 !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 2; if (objectx.prop % objecty.prop !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 2; objectx.prop % objecty.prop === 1. Actual: ' + (objectx.prop % objecty.prop)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js index 5da5f3cff..ccb9ed76f 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A2.1_T3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T3.js index 20b64080e..eaff21ef2 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x % y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 % y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js index ab488af50..1537a0f29 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x % y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} % 2 !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 % {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js index 836a13ff6..e9af80476 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A2.4_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T1.js index 7b87a3bf0..93e3df49c 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 = 1; if (x % (x = 2) !== 1) { $ERROR('#2: var x = 1; x % (x = 2) === 1. Actual: ' + (x % (x = 2))); } - - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js index f3c306ca1..b778861ae 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A2.4_T3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T3.js index a597a95d2..2d585e0b3 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A3_T1.1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.1.js index 816d0efe9..e729afa77 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A3_T1.2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.2.js index db3ba1d64..888fb7923 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A3_T1.3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.3.js index 3520ef236..dca635358 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN("x" % "1") !== true) { if (isNaN("1" % "x") !== true) { $ERROR('#6: "1" % "x" === Not-a-Number. Actual: ' + ("1" % "x")); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js index 0af53ef4e..927937743 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN(null % undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined % undefined) !== true) { if (isNaN(null % null) !== true) { $ERROR('#4: null % null === Not-a-Number. Actual: ' + (null % null)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js index 85cbbecf2..8c7139091 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN({} % function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} % function(){return 1}) !== true) { if (isNaN({} % {}) !== true) { $ERROR('#4: {} % {} === Not-a-Number. Actual: ' + ({} % {})); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js index 4cde92634..1544f8729 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A3_T2.2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.2.js index 6196513ce..0d077394f 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN("x" % 1) !== true) { if (isNaN(1 % "x") !== true) { $ERROR('#10: 1 % "x" === Not-a-Number. Actual: ' + (1 % "x")); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js index c6f32f2b4..bda621797 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN(1 % null) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) % null) !== true) { 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.5/11.5.3/S11.5.3_A3_T2.4.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.4.js index 4abfc2c0f..ba8f1047a 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.4.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN(1 % undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) % undefined) !== true) { if (isNaN(undefined % new Number(1)) !== true) { $ERROR('#4: undefined % new Number(1) === Not-a-Number. Actual: ' + (undefined % new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js index 951f4c68c..c35daa6bf 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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.5/11.5.3/S11.5.3_A3_T2.6.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.6.js index 973fe5263..3748ced7d 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.6.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN("1" % undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") % undefined) !== true) { if (isNaN(undefined % new String("1")) !== true) { $ERROR('#4: undefined % new String("1") === Not-a-Number. Actual: ' + (undefined % new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js index baa8a90e4..09b58d148 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN("1" % null) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") % null) !== true) { 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.5/11.5.3/S11.5.3_A3_T2.8.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.8.js index 54e229b09..20f5c1572 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.8.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN(true % undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) % undefined) !== true) { if (isNaN(undefined % new Boolean(true)) !== true) { $ERROR('#4: undefined % new Boolean(true) === Not-a-Number. Actual: ' + (undefined % new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js index 3ff69f285..b5c110fbb 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.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.5/11.5.3/S11.5.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 (isNaN(true % null) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) % null) !== true) { 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.5/11.5.3/S11.5.3_A4_T1.1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js index b2ad39088..fcc1182a2 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js - * @description If either operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If either operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN % Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.NaN % Number.MIN_VALUE) !== true) { if (isNaN(Number.NaN % 1) !== true) { $ERROR('#8: NaN % 1 === Not-a-Number. Actual: ' + (NaN % 1)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js index 2b7da808e..85fbd9176 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js - * @description If either operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If either operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN % Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.MIN_VALUE % Number.NaN) !== true) { if (isNaN(1 % Number.NaN) !== true) { $ERROR('#8: 1 % NaN === Not-a-Number. Actual: ' + (1 % NaN)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.js index ce2051688..9e253fd5a 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T2.js - * @description The sign of the finite non-zero value result equals the sign of the divided - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + The sign of the finite non-zero value result equals the sign of + the divided +---*/ //CHECK#1 if (1 % 1 !== 0) { @@ -63,4 +65,3 @@ if (-101 % 51 !== -50) { if (-101 % -51 !== -50) { $ERROR('#8: -101 % -51 === -50. Actual: ' + (-101 % -51)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.js index 5861cf727..749a64762 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T3.js - * @description If the dividend is an infinity results is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If the dividend is an infinity results is NaN +---*/ //CHECK#1 if (isNaN(Number.NEGATIVE_INFINITY % Number.POSITIVE_INFINITY) !== true) { @@ -67,4 +67,3 @@ if (isNaN(Number.POSITIVE_INFINITY % Number.MAX_VALUE) !== true) { if (isNaN(Number.POSITIVE_INFINITY % -Number.MAX_VALUE) !== true) { $ERROR('#12: Infinity % -Number.MAX_VALUE === Not-a-Number. Actual: ' + (Infinity % -Number.MAX_VALUE)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.js index cdf3ebd38..70ad1d583 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T4.js - * @description If the divisor is zero results is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If the divisor is zero results is NaN +---*/ //CHECK#1 if (isNaN(-0 % 0) !== true) { @@ -87,4 +87,3 @@ if (isNaN(Number.MAX_VALUE % 0) !== true) { if (isNaN(Number.MAX_VALUE % -0) !== true) { $ERROR('#16: Number.MAX_VALUE % -0 === Not-a-Number. Actual: ' + (Number.MAX_VALUE % -0)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.js index 46f9e75da..3b634718c 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T5.js - * @description If dividend is finite and the divisor is an infinity, the result equals the dividend - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + If dividend is finite and the divisor is an infinity, the result + equals the dividend +---*/ //CHECK#1 if (1 % Number.NEGATIVE_INFINITY !== 1) { @@ -101,4 +103,3 @@ if (-Number.MIN_VALUE % Number.POSITIVE_INFINITY !== -Number.MIN_VALUE) { if (-Number.MIN_VALUE % Number.NEGATIVE_INFINITY !== -Number.MIN_VALUE) { $ERROR('#16: -Number.MIN_VALUE % -Infinity === -Number.MIN_VALUE. Actual: ' + (-Number.MIN_VALUE % -Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.js index 02373aec7..1ba546a42 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T6.js - * @description If dividend is a zero and the divisor is nonzero finite, the result equals the dividend - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + If dividend is a zero and the divisor is nonzero finite, the + result equals the dividend +---*/ //CHECK#1 if (0 % 1 !== 0) { @@ -79,4 +81,3 @@ if (-0 % Number.MIN_VALUE !== -0) { $ERROR('#8.2: 0 % Number.MIN_VALUE === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.js index 54356536e..fd2ac24a6 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T7.js - * @description If operands neither an infinity, nor a zero, nor NaN, return x - truncate(x / y) * y - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + If operands neither an infinity, nor a zero, nor NaN, return x - + truncate(x / y) * y +---*/ function truncate(x) { if (x > 0) { @@ -71,4 +73,3 @@ y = -1.1; if (x % y !== x - truncate(x / y) * y) { $ERROR('#8: x = -1.3; y = -1.1; x % y === x - truncate(x / y) * y. Actual: ' + (x % y)); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A1.js index 6e4793095..bf5cf5fe2 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 AdditiveExpression and "+" or between "+" and MultiplicativeExpression are allowed - * - * @path ch11/11.6/11.6.1/S11.6.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between AdditiveExpression and "+" or + between "+" and MultiplicativeExpression 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.6/11.6.1/S11.6.1_A2.1_T1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T1.js index 748f791fa..2a3871a9c 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.1_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x + y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 + 1 !== 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 = 1; objecty.prop = 1; objectx.prop + objecty.prop === 2. Actual: ' + (objectx.prop + objecty.prop)); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T2.js index 8a790be9f..03ceb3494 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: x + 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T3.js index 6609a5593..0e490bf20 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.1_T3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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.6/11.6.1/S11.6.1_A2.2_T1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T1.js index debdcd883..bfc08316c 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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.6/11.6.1/S11.6.1_A2.2_T2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T2.js index 732c32cc8..a66ac578c 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_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 [[Default Value]] - * - * @path ch11/11.6/11.6.1/S11.6.1_A2.2_T2.js - * @description If Type(value) is Date object, evaluate ToPrimitive(value, String) - */ +/*--- +info: Operator x + y uses [[Default Value]] +description: If Type(value) is Date object, evaluate ToPrimitive(value, String) +---*/ //CHECK#1 var date = new Date(); @@ -31,5 +29,3 @@ var date = new Date(); if (date + new Object() !== date.toString() + "[object Object]") { $ERROR('#4: var date = new Date(); date + new Object() === date.toString() + "[object Object]". Actual: ' + (date + new Object())); } - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T3.js index 965c53d4d..2129863fd 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_T3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.2_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 [[Default Value]] - * - * @path ch11/11.6/11.6.1/S11.6.1_A2.2_T3.js - * @description If Type(value) is Function, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x + y uses [[Default Value]] +description: If Type(value) is Function, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 function f1(){ @@ -43,4 +41,3 @@ f4.toString = function() {return 1;}; if (f4 + 1 !== 1 - 1) { $ERROR('#4: f1unction f4() {return 0;}; f2.valueOf = function() {return -1;}; f4.toString() = function() {return 1;}; f4 + 1 === 1 - 1. Actual: ' + (f4 + 1)); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.3_T1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.3_T1.js index 07f11d4a1..383124e65 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.3_T1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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.6/11.6.1/S11.6.1_A2.4_T1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T1.js index ad6f74b40..df1ae536e 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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) !== 1) { $ERROR('#2: var x = 0; x + (x = 1) === 1. Actual: ' + (x + (x = 1))); } - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T2.js index 349041ed4..f38129d5a 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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.6/11.6.1/S11.6.1_A2.4_T3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T3.js index 60d89e506..227e376c7 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A2.4_T3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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.6/11.6.1/S11.6.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.6/11.6.1/S11.6.1_A3.1_T1.1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T1.1.js index e0f9656dd..84f848524 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T1.1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.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 and 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 !== 2) { @@ -27,4 +29,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.6/11.6.1/S11.6.1_A3.1_T1.2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T1.2.js index f5fccb105..ad9baa02a 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T1.2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.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 and 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 !== 2) { @@ -27,5 +29,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.6/11.6.1/S11.6.1_A3.1_T1.3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T1.3.js index c9d52e593..7b0417682 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T1.3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.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 and 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 (isNaN(null + undefined) !== true) { @@ -27,4 +29,3 @@ if (isNaN(undefined + undefined) !== true) { if (null + null !== 0) { $ERROR('#4: null + null === 0. Actual: ' + (null + null)); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.1.js index e5e3ee261..1949183d6 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.1_T2.1.js - * @description Type(Primitive(x)) is different from Type(Primitive(y)) and both types vary between Number (primitive or object) or Boolean (primitive and object) - */ +/*--- +info: > + If Type(Primitive(x)) is not String and 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) or Boolean + (primitive and object) +---*/ //CHECK#1 if (true + 1 !== 2) { @@ -47,4 +50,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.6/11.6.1/S11.6.1_A3.1_T2.2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.2.js index ec9dff926..ec1e370ea 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.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 Null - */ +/*--- +info: > + If Type(Primitive(x)) is not String and 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 !== 1) { @@ -27,4 +29,3 @@ if (new Number(1) + null !== 1) { if (null + new Number(1) !== 1) { $ERROR('#4: null + new Number(1) === 1. Actual: ' + (null + new Number(1))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.3.js index dac10c083..76eed5705 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.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 Undefined - */ +/*--- +info: > + If Type(Primitive(x)) is not String and 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 (isNaN(1 + undefined) !== true) { @@ -27,4 +29,3 @@ if (isNaN(new Number(1) + undefined) !== true) { if (isNaN(undefined + new Number(1)) !== true) { $ERROR('#4: undefined + new Number(1) === Not-a-Number. Actual: ' + (undefined + new Number(1))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.4.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.4.js index a2d56e2f7..d907bfa19 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.4.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.1_T2.4.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 and 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 (isNaN(true + undefined) !== true) { @@ -27,4 +29,3 @@ if (isNaN(new Boolean(true) + undefined) !== true) { if (isNaN(undefined + new Boolean(true)) !== true) { $ERROR('#4: undefined + new Boolean(true) === Not-a-Number. Actual: ' + (undefined + new Boolean(true))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.5.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.5.js index a3cfe0523..116167f5b 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.5.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.1_T2.5.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 and Type(Primitive(y)) is not String, then operator x + y returns ToNumber(x) + ToNumber(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.1_T2.5.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 and 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 !== 1) { @@ -27,4 +29,3 @@ if (new Boolean(true) + null !== 1) { if (null + new Boolean(true) !== 1) { $ERROR('#4: null + new Boolean(true) === 1. Actual: ' + (null + new Boolean(true))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.1.js index f2f1f8724..452cb933e 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.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 String or Type(Primitive(y)) is String, then operator x + y returns the result of concatenating ToString(x) followed by ToString(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.2_T1.1.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive string and String object - */ +/*--- +info: > + If Type(Primitive(x)) is String or Type(Primitive(y)) is String, then + operator x + y returns the result of concatenating ToString(x) followed + by ToString(y) +description: > + Type(Primitive(x)) and Type(Primitive(y)) vary between primitive + string and String object +---*/ //CHECK#1 if ("1" + "1" !== "11") { @@ -37,4 +40,3 @@ if ("x" + "1" !=="x1") { if ("1" + "x" !== "1x") { $ERROR('#6: "1" + "x" === "1x". Actual: ' + ("1" + "x")); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.2.js index 422ed6b53..8323bfcd4 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T1.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 String or Type(Primitive(y)) is String, then operator x + y returns the result of concatenating ToString(x) followed by ToString(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.2_T1.2.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between Object object and Function object - */ +/*--- +info: > + If Type(Primitive(x)) is String or Type(Primitive(y)) is String, then + operator x + y returns the result of concatenating ToString(x) followed + by ToString(y) +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,6 +30,3 @@ if ((function(){return 1} + function(){return 1}) !== (function(){return 1}.toSt if (({} + {}) !== ({}.toString() + {}.toString())) { $ERROR('#4: ({} + {}) === ({}.toString() + {}.toString()). Actual: ' + (({} + {}))); } - - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.1.js index 461a14c1a..f1e77e949 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.1.js @@ -1,12 +1,16 @@ // 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 String or Type(Primitive(y)) is String, then operator x + y returns the result of concatenating ToString(x) followed by ToString(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.2_T2.1.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 String or Type(Primitive(y)) is String, then + operator x + y returns the result of concatenating ToString(x) followed + by ToString(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 !== "11") { @@ -57,4 +61,3 @@ if ("x" + 1 !=="x1") { if (1 + "x" !== "1x") { $ERROR('#10: 1 + "x" === "1x". Actual: ' + (1 + "x")); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.2.js index 5f4a4075a..bc7828c46 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.2.js @@ -1,12 +1,16 @@ // 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 String or Type(Primitive(y)) is String, then operator x + y returns the result of concatenating ToString(x) followed by ToString(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.2_T2.2.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 String or Type(Primitive(y)) is String, then + operator x + y returns the result of concatenating ToString(x) followed + by ToString(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" !== "true1") { @@ -47,4 +51,3 @@ if (new Boolean(true) + new String("1") !== "true1") { if (new String("1") + new Boolean(true) !== "1true") { $ERROR('#8: new String("1") + new Boolean(true) === "1true". Actual: ' + (new String("1") + new Boolean(true))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.3.js index a097ed83b..657e70fa0 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.3.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 String or Type(Primitive(y)) is String, then operator x + y returns the result of concatenating ToString(x) followed by ToString(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.2_T2.3.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 String or Type(Primitive(y)) is String, then + operator x + y returns the result of concatenating ToString(x) followed + by ToString(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 !== "1undefined") { @@ -27,4 +30,3 @@ if (new String("1") + undefined !== "1undefined") { if (undefined + new String("1") !== "undefined1") { $ERROR('#4: undefined + new String("1") === "undefined1". Actual: ' + (undefined + new String("1"))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.4.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.4.js index a957677b7..a53030b23 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.4.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A3.2_T2.4.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 String or Type(Primitive(y)) is String, then operator x + y returns the result of concatenating ToString(x) followed by ToString(y) - * - * @path ch11/11.6/11.6.1/S11.6.1_A3.2_T2.4.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 String or Type(Primitive(y)) is String, then + operator x + y returns the result of concatenating ToString(x) followed + by ToString(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 !== "1null") { @@ -27,4 +30,3 @@ if (new String("1") + null !== "1null") { if (null + new String("1") !== "null1") { $ERROR('#4: null + new String("1") === "null1". Actual: ' + (null + new String("1"))); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T1.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T1.js index 8a8ac37da..b8bb4bbc1 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T1.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T1.js - * @description If either operand is NaN, the result is NaN - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: If either operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN + 1) !== true ) { @@ -37,5 +37,3 @@ if (isNaN(Number.NaN + Number.NEGATIVE_INFINITY) !== true ) { if (isNaN(Number.NEGATIVE_INFINITY + Number.NaN) !== true ) { $ERROR('#6: Infinity + NaN === Not-a-Number. Actual: ' + (Infinity + NaN)); } - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T2.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T2.js index 6e6452567..b16bbf7e6 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T2.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T2.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T2.js - * @description The sum of two infinities of opposite sign is NaN - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: The sum of two infinities of opposite sign is NaN +---*/ //CHECK#1 if (isNaN(Number.POSITIVE_INFINITY + Number.NEGATIVE_INFINITY) !== true ) { @@ -17,7 +17,3 @@ if (isNaN(Number.POSITIVE_INFINITY + Number.NEGATIVE_INFINITY) !== true ) { if (isNaN(Number.NEGATIVE_INFINITY + Number.POSITIVE_INFINITY) !== true ) { $ERROR('#2: -Infinity + Infinity === Not-a-Number. Actual: ' + (-Infinity + Infinity)); } - - - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T3.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T3.js index d434e6c23..e020a44ec 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T3.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T3.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T3.js - * @description The sum of two infinities of the same sign is the infinity of that sign - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + The sum of two infinities of the same sign is the infinity of that + sign +---*/ //CHECK#1 if (Number.POSITIVE_INFINITY + Number.POSITIVE_INFINITY !== Number.POSITIVE_INFINITY ) { @@ -17,7 +19,3 @@ if (Number.POSITIVE_INFINITY + Number.POSITIVE_INFINITY !== Number.POSITIVE_INFI if (Number.NEGATIVE_INFINITY + Number.NEGATIVE_INFINITY !== Number.NEGATIVE_INFINITY ) { $ERROR('#2: -Infinity + -Infinity === -Infinity. Actual: ' + (-Infinity + -Infinity)); } - - - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T4.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T4.js index 4fd4a6f56..27599dfa5 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T4.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T4.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T4.js - * @description The sum of an infinity and a finite value is equal to the infinite operand - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + The sum of an infinity and a finite value is equal to the infinite + operand +---*/ //CHECK#1 if (Number.POSITIVE_INFINITY + 1 !== Number.POSITIVE_INFINITY ) { @@ -47,7 +49,3 @@ if (Number.NEGATIVE_INFINITY + Number.MAX_VALUE !== Number.NEGATIVE_INFINITY ) { if (-Number.MAX_VALUE + Number.NEGATIVE_INFINITY !== Number.NEGATIVE_INFINITY ) { $ERROR('#8: -Number.MAX_VALUE + -Infinity === -Infinity. Actual: ' + (-Number.MAX_VALUE + -Infinity)); } - - - - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T5.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T5.js index 3ae18550a..ea716bb3c 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T5.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T5.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T5.js - * @description The sum of two negative zeros is -0. The sum of two positive zeros, or of two zeros of opposite sign is +0 - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + The sum of two negative zeros is -0. The sum of two positive + zeros, or of two zeros of opposite sign is +0 +---*/ //CHECK#1 if (-0 + -0 !== -0 ) { @@ -43,4 +45,3 @@ if (0 + 0 !== 0 ) { $ERROR('#4.2: 0 + 0 === + 0. Actual: -0'); } } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T6.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T6.js index b25a8fbae..1c3cf8a2f 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T6.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T6.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T6.js - * @description The sum of a zero and a nonzero finite value is equal to the nonzero operand - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + The sum of a zero and a nonzero finite value is equal to the + nonzero operand +---*/ //CHECK#1 if (1 + -0 !== 1 ) { @@ -46,5 +48,4 @@ if (-0 + Number.MIN_VALUE !== Number.MIN_VALUE ) { //CHECK#8 if (0 + Number.MIN_VALUE !== Number.MIN_VALUE ) { $ERROR('#8: 0 + Number.MIN_VALUE === Number.MIN_VALUE. Actual: ' + (0 + Number.MIN_VALUE)); -} - +} diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T7.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T7.js index c8af57916..cc09718b8 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T7.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T7.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T7.js - * @description The sum of two nonzero finite values of the same magnitude and opposite sign is +0 - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + The sum of two nonzero finite values of the same magnitude and + opposite sign is +0 +---*/ //CHECK#1 if (-Number.MIN_VALUE + Number.MIN_VALUE !== +0) { @@ -34,4 +36,3 @@ if (-1 / Number.MAX_VALUE + 1 / Number.MAX_VALUE !== +0) { $ERROR('#3.2: -1 / Number.MAX_VALUE + 1 / Number.MAX_VALUE === + 0. Actual: -0'); } } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T8.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T8.js index ec90d44e5..985b18a75 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T8.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T8.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T8.js - * @description If the magnitude is too large to represent, the operation overflows and the result is then an infinity of appropriate sign - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + If the magnitude is too large to represent, the operation + overflows and the result is then an infinity of appropriate sign +---*/ //CHECK#1 if (Number.MAX_VALUE + Number.MAX_VALUE !== Number.POSITIVE_INFINITY) { @@ -27,4 +29,3 @@ if (1e+308 + 1e+308 !== Number.POSITIVE_INFINITY) { if (-8.99e+307 - 8.99e+307 !== Number.NEGATIVE_INFINITY) { $ERROR('#4: -8.99e+307 - 8.99e+307 === Number.NEGATIVE_INFINITY. Actual: ' + (-8.99e+307 - 8.99e+307)); } - diff --git a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T9.js b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T9.js index bc082438a..bc117d6ef 100644 --- a/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T9.js +++ b/test/suite/ch11/11.6/11.6.1/S11.6.1_A4_T9.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. -/** - * The result of an addition is determined using the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.6/11.6.1/S11.6.1_A4_T9.js - * @description The addition operator is not always associative ( x + y + z is the same (x + y) + z, not x + (y + z)) - */ +/*--- +info: > + The result of an addition is determined using the rules of IEEE 754 + double-precision arithmetics +description: > + The addition operator is not always associative ( x + y + z is the + same (x + y) + z, not x + (y + z)) +---*/ //CHECK#1 if (-Number.MAX_VALUE + Number.MAX_VALUE + Number.MAX_VALUE !== (-Number.MAX_VALUE + Number.MAX_VALUE) + Number.MAX_VALUE) { @@ -27,4 +29,3 @@ if ("1" + 1 + 1 !== ("1" + 1) + 1) { if (("1" + 1) + 1 === "1" + (1 + 1)) { $ERROR('#4: ("1" + 1) + 1 !== "1" + (1 + 1)'); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A1.js index c3c08a221..b3e657dd3 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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 AdditiveExpression and "-" or between "-" and MultiplicativeExpression are allowed - * - * @path ch11/11.6/11.6.2/S11.6.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between AdditiveExpression and "-" or + between "-" and MultiplicativeExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009-\u00091") !== 0) { @@ -57,4 +57,3 @@ if (eval("1\u2029-\u20291") !== 0) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029-\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 0) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029-\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 0'); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T1.js index 8d85c8233..9b2d4c54d 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x - y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 - 1 !== 0) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop - objecty.prop !== 0) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop - objecty.prop === 0. Actual: ' + (objectx.prop - objecty.prop)); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T2.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T2.js index 34bcafc2b..e5a1bb2d6 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T2.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x - y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x - 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T3.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T3.js index e5ef600f8..aa7d6f920 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.1_T3.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x - y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 - y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.2_T1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.2_T1.js index 3f24d4c13..738e63277 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.2_T1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x - y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} - 1 !== 0) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 - {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.3_T1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.3_T1.js index b54588088..d678e2f5a 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.3_T1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A2.4_T1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T1.js index 09b0a7184..e9306e418 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 = 0; if (x - (x = 1) !== -1) { $ERROR('#2: var x = 0; x - (x = 1) === -1. Actual: ' + (x - (x = 1))); } - - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T2.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T2.js index ef853e38f..e6ead1c3c 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T2.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A2.4_T3.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T3.js index ace9f2e95..da3682770 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A2.4_T3.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T1.1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.1.js index 732297bf4..a28100286 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T1.2.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.2.js index 4a19423a0..749b51ae0 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.2.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T1.3.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.3.js index 5e2f31a80..0bd73735a 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.3.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN("x" - "1") !== true) { if (isNaN("1" - "x") !== true) { $ERROR('#6: "1" - "x" === Not-a-Number. Actual: ' + ("1" - "x")); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.4.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.4.js index a76eb6628..8c5bca049 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.4.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN(null - undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined - undefined) !== true) { if (null - null !== 0) { $ERROR('#4: null - null === 0. Actual: ' + (null - null)); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.5.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.5.js index 21bc87c78..5bdca833f 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T1.5.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN({} - function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} - function(){return 1}) !== true) { if (isNaN({} - {}) !== true) { $ERROR('#4: {} - {} === Not-a-Number. Actual: ' + ({} - {})); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.1.js index 8682a7154..11a548fe0 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T2.2.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.2.js index 2c98620cc..c1d553e84 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.2.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN("x" - 1) !== true) { if (isNaN(1 - "x") !== true) { $ERROR('#10: 1 - "x" === Not-a-Number. Actual: ' + (1 - "x")); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.3.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.3.js index 9edba35ba..74ccea572 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.3.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x - y returns ToNumber(x) - ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if (1 - null !== 1) { @@ -27,4 +27,3 @@ if (new Number(1) - null !== 1) { if (null - new Number(1) !== -1) { $ERROR('#4: null - new Number(1) === -1. Actual: ' + (null - new Number(1))); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.4.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.4.js index 9169bacdd..140deba33 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.4.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN(1 - undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) - undefined) !== true) { if (isNaN(undefined - new Number(1)) !== true) { $ERROR('#4: undefined - new Number(1) === Not-a-Number. Actual: ' + (undefined - new Number(1))); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.5.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.5.js index 953fb4088..5f67ad57d 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.5.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T2.6.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.6.js index 34fdcb385..5fb0b2b96 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.6.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN("1" - undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") - undefined) !== true) { if (isNaN(undefined - new String("1")) !== true) { $ERROR('#4: undefined - new String("1") === Not-a-Number. Actual: ' + (undefined - new String("1"))); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.7.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.7.js index 3e467ed63..48f974457 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.7.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x - y returns ToNumber(x) - ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if ("1" - null !== 1) { @@ -27,4 +27,3 @@ if (new String("1") - null !== 1) { if (null - new String("1") !== -1) { $ERROR('#4: null - new String("1") === -1. Actual: ' + (null - new String("1"))); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.8.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.8.js index 92704df1d..73110e1a9 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.8.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.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 (isNaN(true - undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) - undefined) !== true) { if (isNaN(undefined - new Boolean(true)) !== true) { $ERROR('#4: undefined - new Boolean(true) === Not-a-Number. Actual: ' + (undefined - new Boolean(true))); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.9.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.9.js index 22bbe59e5..61267d33c 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A3_T2.9.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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.6/11.6.2/S11.6.2_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x - y returns ToNumber(x) - ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if (true - null !== 1) { @@ -27,4 +27,3 @@ if (new Boolean(true) - null !== 1) { if (null - new Boolean(true) !== -1) { $ERROR('#4: null - new Boolean(true) === -1. Actual: ' + (null - new Boolean(true))); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T1.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T1.js index 2ea5c563c..d8525b75a 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T1.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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. -/** - * Operator x - y produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T1.js - * @description If either operand is NaN, the result is NaN - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: If either operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN - 1) !== true ) { @@ -37,4 +35,3 @@ if (isNaN(Number.NaN - Number.NEGATIVE_INFINITY) !== true ) { if (isNaN(Number.NEGATIVE_INFINITY - Number.NaN) !== true ) { $ERROR('#6: Infinity - NaN === Not-a-Number. Actual: ' + (Infinity - NaN)); } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T2.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T2.js index 3853092ca..a8099331b 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T2.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T2.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 produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T2.js - * @description The difference of two infinities of opposite sign is the infinity of minuend sign - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: > + The difference of two infinities of opposite sign is the infinity + of minuend sign +---*/ //CHECK#1 if (Number.POSITIVE_INFINITY - Number.NEGATIVE_INFINITY !== Number.POSITIVE_INFINITY ) { @@ -17,7 +17,3 @@ if (Number.POSITIVE_INFINITY - Number.NEGATIVE_INFINITY !== Number.POSITIVE_INFI if (Number.NEGATIVE_INFINITY - Number.POSITIVE_INFINITY !== Number.NEGATIVE_INFINITY ) { $ERROR('#2: -Infinity - Infinity === -Infinity. Actual: ' + (-Infinity - Infinity)); } - - - - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T3.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T3.js index e1c18e1cb..5c010e389 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T3.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.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. -/** - * Operator x - y produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T3.js - * @description The difference of two infinities of the same sign is NaN - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: The difference of two infinities of the same sign is NaN +---*/ //CHECK#1 if (isNaN(Number.POSITIVE_INFINITY - Number.POSITIVE_INFINITY) !== true ) { @@ -17,7 +15,3 @@ if (isNaN(Number.POSITIVE_INFINITY - Number.POSITIVE_INFINITY) !== true ) { if (isNaN(Number.NEGATIVE_INFINITY - Number.NEGATIVE_INFINITY) !== true ) { $ERROR('#2: -Infinity - -Infinity === Not-a-Number. Actual: ' + (-Infinity - -Infinity)); } - - - - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T4.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T4.js index 2a0ddf37b..50981d137 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T4.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T4.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 produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T4.js - * @description The difference of an infinity and a finite value is equal to infinity of appropriate sign - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: > + The difference of an infinity and a finite value is equal to + infinity of appropriate sign +---*/ //CHECK#1 if (Number.POSITIVE_INFINITY - 1 !== Number.POSITIVE_INFINITY ) { @@ -47,7 +47,3 @@ if (Number.NEGATIVE_INFINITY - Number.MAX_VALUE !== Number.NEGATIVE_INFINITY ) { if (-Number.MAX_VALUE - Number.NEGATIVE_INFINITY !== Number.POSITIVE_INFINITY ) { $ERROR('#8: -Number.MAX_VALUE - -Infinity === Infinity. Actual: ' + (-Number.MAX_VALUE - -Infinity)); } - - - - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T5.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T5.js index bcc6ac258..eed84c336 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T5.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T5.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 produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T5.js - * @description Using the rule of sum of two zeroes and the fact that a - b = a + (-b) - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: > + Using the rule of sum of two zeroes and the fact that a - b = a + + (-b) +---*/ //CHECK#1 if (-0 - -0 !== 0 ) { @@ -43,4 +43,3 @@ if (0 - 0 !== 0 ) { $ERROR('#4.2: 0 - 0 === + 0. Actual: -0'); } } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T6.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T6.js index a71e3068f..57ffc1c8e 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T6.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T6.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 produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T6.js - * @description Using the rule of sum of a zero and a nonzero finite value and the fact that a - b = a + (-b) - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: > + Using the rule of sum of a zero and a nonzero finite value and the + fact that a - b = a + (-b) +---*/ //CHECK#1 if (1 - -0 !== 1 ) { @@ -46,5 +46,4 @@ if (-0 - Number.MIN_VALUE !== -Number.MIN_VALUE ) { //CHECK#8 if (0 - Number.MIN_VALUE !== -Number.MIN_VALUE ) { $ERROR('#8: 0 - Number.MIN_VALUE === -Number.MIN_VALUE. Actual: ' + (0 - Number.MIN_VALUE)); -} - +} diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T7.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T7.js index 8f810cb46..e5befaf97 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T7.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T7.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 produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T7.js - * @description The mathematical difference of two nonzero finite values of the same magnitude and same sign is +0 - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: > + The mathematical difference of two nonzero finite values of the + same magnitude and same sign is +0 +---*/ //CHECK#1 if (Number.MIN_VALUE - Number.MIN_VALUE !== +0) { @@ -34,4 +34,3 @@ if (1 / Number.MAX_VALUE - 1 / Number.MAX_VALUE !== +0) { $ERROR('#3.2: 1 / Number.MAX_VALUE - 1 / Number.MAX_VALUE === + 0. Actual: -0'); } } - diff --git a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T8.js b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T8.js index b8a5cd4e8..7558af58d 100644 --- a/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T8.js +++ b/test/suite/ch11/11.6/11.6.2/S11.6.2_A4_T8.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 produces the same result as x + (-y) - * - * @path ch11/11.6/11.6.2/S11.6.2_A4_T8.js - * @description If the magnitude is too large to represent, the operation overflows and the result is then an infinity of appropriate sign - */ +/*--- +info: Operator x - y produces the same result as x + (-y) +description: > + If the magnitude is too large to represent, the operation + overflows and the result is then an infinity of appropriate sign +---*/ //CHECK#1 if (Number.MAX_VALUE - -Number.MAX_VALUE !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (1e+308 - -1e+308 !== Number.POSITIVE_INFINITY) { if (-8.99e+307 - 8.99e+307 !== Number.NEGATIVE_INFINITY) { $ERROR('#4: -8.99e+307 - 8.99e+307 === Number.NEGATIVE_INFINITY. Actual: ' + (-8.99e+307 - 8.99e+307)); } - 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)); -} - - +} 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'); } - - - diff --git a/test/suite/ch11/11.8/11.8.2/11.8.2-1.js b/test/suite/ch11/11.8/11.8.2/11.8.2-1.js index 97270dca2..bdfd48b1e 100644 --- a/test/suite/ch11/11.8/11.8.2/11.8.2-1.js +++ b/test/suite/ch11/11.8/11.8.2/11.8.2-1.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.2/11.8.2-1.js
- * @description 11.8.2 Greater-than Operator - Partial left to right order enforced when using Greater-than operator: valueOf > valueOf
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- valueOf: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- valueOf: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return !(obj1 > obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.2 Greater-than Operator - Partial left to right order + enforced when using Greater-than operator: valueOf > valueOf +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + valueOf: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + valueOf: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return !(obj1 > obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.2/11.8.2-2.js b/test/suite/ch11/11.8/11.8.2/11.8.2-2.js index 248452e99..a16ce9d77 100644 --- a/test/suite/ch11/11.8/11.8.2/11.8.2-2.js +++ b/test/suite/ch11/11.8/11.8.2/11.8.2-2.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.2/11.8.2-2.js
- * @description 11.8.2 Greater-than Operator - Partial left to right order enforced when using Greater-than operator: valueOf > toString
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- valueOf: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- toString: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return !(obj1 > obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.2 Greater-than Operator - Partial left to right order + enforced when using Greater-than operator: valueOf > toString +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + valueOf: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + toString: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return !(obj1 > obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.2/11.8.2-3.js b/test/suite/ch11/11.8/11.8.2/11.8.2-3.js index b0db66533..10044b35a 100644 --- a/test/suite/ch11/11.8/11.8.2/11.8.2-3.js +++ b/test/suite/ch11/11.8/11.8.2/11.8.2-3.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.2/11.8.2-3.js
- * @description 11.8.2 Greater-than Operator - Partial left to right order enforced when using Greater-than operator: toString > valueOf
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- toString: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- valueOf: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return !(obj1 > obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.2 Greater-than Operator - Partial left to right order + enforced when using Greater-than operator: toString > valueOf +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + toString: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + valueOf: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return !(obj1 > obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.2/11.8.2-4.js b/test/suite/ch11/11.8/11.8.2/11.8.2-4.js index 50817010b..f3251060a 100644 --- a/test/suite/ch11/11.8/11.8.2/11.8.2-4.js +++ b/test/suite/ch11/11.8/11.8.2/11.8.2-4.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.2/11.8.2-4.js
- * @description 11.8.2 Greater-than Operator - Partial left to right order enforced when using Greater-than operator: toString > toString
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- toString: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- toString: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return !(obj1 > obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.2 Greater-than Operator - Partial left to right order + enforced when using Greater-than operator: toString > toString +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + toString: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + toString: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return !(obj1 > obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.2/S11.8.2_A1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A1.js index e2d072282..97479c585 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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 RelationalExpression and ">" or ">" and ShiftExpression are allowed - * - * @path ch11/11.8/11.8.2/S11.8.2_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("0\u0009>\u00091") !== false) { @@ -57,4 +57,3 @@ if (eval("0\u2029>\u20291") !== false) { 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.2/S11.8.2_A2.1_T1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T1.js index 9ae91af51..f69901d1e 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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 (2 > 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 = 2; objecty.prop = 1; objectx.prop > objecty.prop === true'); } - diff --git a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T2.js index c6c0a2c71..2af951486 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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.8/11.8.2/S11.8.2_A2.1_T3.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T3.js index bf7dfc5e7..285dff2d9 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.1_T3.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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.8/11.8.2/S11.8.2_A2.2_T1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.2_T1.js index e8d7595ba..213d0fe8b 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.2_T1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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 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.2/S11.8.2_A2.3_T1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.3_T1.js index ab2e5a0e5..5a3771536 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.3_T1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.3_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. -/** - * In ES5, First expression should be evaluated first. - * - * @path ch11/11.8/11.8.2/S11.8.2_A2.3_T1.js - * @description Checking that operands of a "<" evaluate left-to-right - */ +/*--- +info: In ES5, First expression should be evaluated first. +description: Checking that operands of a "<" evaluate left-to-right +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T1.js index ac5f1b540..8f2969c57 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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 = 1; if (x > (x = 0) !== true) { $ERROR('#2: var x = 1; x > (x = 0) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T2.js index 274f117cb..8ba2280ef 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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.8/11.8.2/S11.8.2_A2.4_T3.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T3.js index d3228fdce..d2663fc9c 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A2.4_T3.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.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.8/11.8.2/S11.8.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 !== false) { $ERROR('#2: (y = 1) > y === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.1.js index 4f69c859e..b771ef1af 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T1.2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.2.js index 2a076c6c6..852dbea55 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T1.3.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.3.js index 597266349..c8232e307 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T1.3.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.1.js index 81ba83400..301311e66 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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 !== 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.2/S11.8.2_A3.1_T2.2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.2.js index 4d6f8fc81..645844957 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.3.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.3.js index 63ec06aac..46726dd7e 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.3.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.4.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.4.js index d98572cc5..d3d67d7b0 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.4.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.5.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.5.js index b739bd4dc..6f6697d25 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.5.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.6.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.6.js index 839884f83..7945e81af 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.6.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.7.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.7.js index 5b44d0a70..8e29e4d08 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.7.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.8.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.8.js index 3a3c48e7a..43fe1d76f 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.8.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.1_T2.9.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.9.js index 32c04b23a..a87818f4e 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.1_T2.9.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A3.2_T1.1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.2_T1.1.js index fb0bcb016..d4644e0ed 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.2_T1.1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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. -/** - * If Type(Primitive(x)) is String and Type(Primitive(y)) is String, then operator x > y returns ToString(x) > ToString(y) - * - * @path ch11/11.8/11.8.2/S11.8.2_A3.2_T1.1.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive string and String object - */ +/*--- +info: > + If Type(Primitive(x)) is String and Type(Primitive(y)) is String, then + operator x > y returns ToString(x) > ToString(y) +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" !== true) { if ("1" > "x" !== false) { $ERROR('#6: "1" > "x" === false'); } - diff --git a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.2_T1.2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.2_T1.2.js index cf6e2889b..8152ec3cd 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A3.2_T1.2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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. -/** - * If Type(Primitive(x)) is String and Type(Primitive(y)) is String, then operator x > y returns ToString(x) > ToString(y) - * - * @path ch11/11.8/11.8.2/S11.8.2_A3.2_T1.2.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between Object object and Function object - */ +/*--- +info: > + If Type(Primitive(x)) is String and Type(Primitive(y)) is String, then + operator x > y returns ToString(x) > ToString(y) +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.2/S11.8.2_A4.1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.1.js index a36cb0b92..895539255 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A4.10.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.10.js index eef094d97..bb60ad877 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.10.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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, return false - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.10.js - * @description x and y are string primitives - */ +/*--- +info: If x is a prefix of 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.2/S11.8.2_A4.11.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.11.js index 76da4cc14..cdc7efef3 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.11.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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 and x !== y, return true - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.11.js - * @description x and y are string primitives - */ +/*--- +info: If y is a prefix of x and x !== y, 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.2/S11.8.2_A4.12_T1.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.12_T1.js index 4bd4fb2ab..732ddaad4 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.12_T1.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A4.12_T2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.12_T2.js index ab16d98cb..7d399d8b2 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.12_T2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A4.2.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.2.js index 1e81c52fe..334cdf7eb 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.2.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A4.3.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.3.js index 8890a00e1..6b6dfdf28 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.3.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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.2/S11.8.2_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.2/S11.8.2_A4.4.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.4.js index 70a5440ca..b40ff199c 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.4.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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 variable x or y is +0 and the other is -0, return false - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.4.js - * @description Checking all combinations - */ +/*--- +info: If either variable x or y is +0 and the other is -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.2/S11.8.2_A4.5.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.5.js index 79d3bde31..a781439d0 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.5.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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 and x !== y, return true - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.5.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.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.2/S11.8.2_A4.6.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.6.js index aa96e699d..46769b13d 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.6.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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, return false - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.6.js - * @description x is number primitive - */ +/*--- +info: If y is +Infinity, 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.2/S11.8.2_A4.7.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.7.js index bc06818cc..b5a3fac9a 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.7.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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, return false - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.7.js - * @description y is number primitive - */ +/*--- +info: If x is -Infinity, 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.2/S11.8.2_A4.8.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.8.js index 3a3156114..f3a7865d8 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.8.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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 and x !== y, return true - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.8.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.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.2/S11.8.2_A4.9.js b/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.9.js index a31255368..fea57ae14 100644 --- a/test/suite/ch11/11.8/11.8.2/S11.8.2_A4.9.js +++ b/test/suite/ch11/11.8/11.8.2/S11.8.2_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 is x greater than y and these values are both finite non-zero, return true; otherwise, return false - * - * @path ch11/11.8/11.8.2/S11.8.2_A4.9.js - * @description x and y are number primitives - */ +/*--- +info: > + If is x greater 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'); } - - - diff --git a/test/suite/ch11/11.8/11.8.3/11.8.3-1.js b/test/suite/ch11/11.8/11.8.3/11.8.3-1.js index 4dc765ee2..eff46d7c7 100644 --- a/test/suite/ch11/11.8/11.8.3/11.8.3-1.js +++ b/test/suite/ch11/11.8/11.8.3/11.8.3-1.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.3/11.8.3-1.js
- * @description 11.8.3 Less-than-or-equal Operator - Partial left to right order enforced when using Less-than-or-equal operator: valueOf <= valueOf
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- valueOf: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- valueOf: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return (obj1 <= obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.3 Less-than-or-equal Operator - Partial left to right order + enforced when using Less-than-or-equal operator: valueOf <= valueOf +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + valueOf: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + valueOf: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return (obj1 <= obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.3/11.8.3-2.js b/test/suite/ch11/11.8/11.8.3/11.8.3-2.js index 0ff108b51..1f71eb65a 100644 --- a/test/suite/ch11/11.8/11.8.3/11.8.3-2.js +++ b/test/suite/ch11/11.8/11.8.3/11.8.3-2.js @@ -1,31 +1,34 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.3/11.8.3-2.js
- * @description 11.8.3 Less-than-or-equal Operator - Partial left to right order enforced when using Less-than-or-equal operator: valueOf <= toString
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- valueOf: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- toString: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return (obj1 <= obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.3 Less-than-or-equal Operator - Partial left to right order + enforced when using Less-than-or-equal operator: valueOf <= + toString +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + valueOf: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + toString: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return (obj1 <= obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.3/11.8.3-3.js b/test/suite/ch11/11.8/11.8.3/11.8.3-3.js index 2f5deae83..74ee56966 100644 --- a/test/suite/ch11/11.8/11.8.3/11.8.3-3.js +++ b/test/suite/ch11/11.8/11.8.3/11.8.3-3.js @@ -1,31 +1,34 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.3/11.8.3-3.js
- * @description 11.8.3 Less-than-or-equal Operator - Partial left to right order enforced when using Less-than-or-equal operator: toString <= valueOf
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- toString: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- valueOf: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return (obj1 <= obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.3 Less-than-or-equal Operator - Partial left to right order + enforced when using Less-than-or-equal operator: toString <= + valueOf +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + toString: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + valueOf: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return (obj1 <= obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.3/11.8.3-4.js b/test/suite/ch11/11.8/11.8.3/11.8.3-4.js index 9105f9e6f..afbd3707b 100644 --- a/test/suite/ch11/11.8/11.8.3/11.8.3-4.js +++ b/test/suite/ch11/11.8/11.8.3/11.8.3-4.js @@ -1,31 +1,34 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.3/11.8.3-4.js
- * @description 11.8.3 Less-than-or-equal Operator - Partial left to right order enforced when using Less-than-or-equal operator: toString <= toString
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- toString: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- toString: function () {
- if (accessed === true) {
- return 4;
- } else {
- return 2;
- }
- }
- };
- return (obj1 <= obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.3 Less-than-or-equal Operator - Partial left to right order + enforced when using Less-than-or-equal operator: toString <= + toString +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + toString: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + toString: function () { + if (accessed === true) { + return 4; + } else { + return 2; + } + } + }; + return (obj1 <= obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.3/11.8.3-5.js b/test/suite/ch11/11.8/11.8.3/11.8.3-5.js index 9356ff34e..4febb1028 100644 --- a/test/suite/ch11/11.8/11.8.3/11.8.3-5.js +++ b/test/suite/ch11/11.8/11.8.3/11.8.3-5.js @@ -1,31 +1,33 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.8/11.8.3/11.8.3-5.js
- * @description 11.8.3 Less-than-or-equal Operator - Partial left to right order enforced when using Less-than-or-equal operator: valueOf <= valueOf
- */
-
-
-function testcase() {
- var accessed = false;
- var obj1 = {
- valueOf: function () {
- accessed = true;
- return 3;
- }
- };
- var obj2 = {
- valueOf: function () {
- if (accessed === true) {
- return 3;
- } else {
- return 2;
- }
- }
- };
- return (obj1 <= obj2);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 11.8.3 Less-than-or-equal Operator - Partial left to right order + enforced when using Less-than-or-equal operator: valueOf <= valueOf +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj1 = { + valueOf: function () { + accessed = true; + return 3; + } + }; + var obj2 = { + valueOf: function () { + if (accessed === true) { + return 3; + } else { + return 2; + } + } + }; + return (obj1 <= obj2); + } +runTestCase(testcase); diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A1.js index 905571139..2b4857288 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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 RelationalExpression and "<=" or between "<=" and ShiftExpression are allowed - * - * @path ch11/11.8/11.8.3/S11.8.3_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("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\u20290") !== true) { $ERROR('#10: (1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029>\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20290) === true'); } - diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T1.js index ddf5cde6d..fcd1ca920 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.3_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x <= y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 <= 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.3/S11.8.3_A2.1_T2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T2.js index b767e2d95..5072f1057 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.3_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x <= y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: x <= 1 throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T3.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T3.js index d2a4df17b..aad9b5392 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.1_T3.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.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.8/11.8.3/S11.8.3_A2.2_T1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.2_T1.js index fbc706a2f..8aa8437c0 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.2_T1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.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 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.3/S11.8.3_A2.3_T1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.3_T1.js index 14ea37cc6..0f3fbb7cd 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.3_T1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.3_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. -/** - * In ES5, First expression should be evaluated first. - * - * @path ch11/11.8/11.8.3/S11.8.3_A2.3_T1.js - * @description Checking that operands of a "<=" evaluate left-to-right - */ +/*--- +info: In ES5, First expression should be evaluated first. +description: Checking that operands of a "<=" evaluate left-to-right +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T1.js index 81e29c531..16175baa4 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.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 = 1; if (x <= (x = 0) !== false) { $ERROR('#2: var x = 1; x <= (x = 0) === false'); } - - diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T2.js index 2cbb846ff..a07398d56 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.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.8/11.8.3/S11.8.3_A2.4_T3.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T3.js index e53f08142..2c877305a 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A2.4_T3.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.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.8/11.8.3/S11.8.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 !== true) { $ERROR('#2: (y = 1) <= y === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.1.js index a6a6f9dda..6b6c5e1f5 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_A3.1_T1.1.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive boolean and Boolean object - */ +/*--- +info: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T1.2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.2.js index e4a93112a..25d8f7b96 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_A3.1_T1.2.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between primitive number and Number object - */ +/*--- +info: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T1.3.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.3.js index c55bc154c..9f2930847 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T1.3.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_A3.1_T1.3.js - * @description Type(Primitive(x)) and Type(Primitive(y)) vary between Null and Undefined - */ +/*--- +info: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.1.js index 2eb6f2282..630c0d44e 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.2.js index 7bbff24f5..b233e77c0 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.3.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.3.js index a255c8b99..51d7dd2e5 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.3.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.4.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.4.js index a124fb8d9..f37be48a9 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.4.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.5.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.5.js index 39fa250a5..81ebafdd7 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.5.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.6.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.6.js index 321a4848e..f87dec059 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.6.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.7.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.7.js index 02a69689e..300de4416 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.7.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.8.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.8.js index 580057063..3e92e5766 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.8.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.1_T2.9.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.9.js index ed70b36f2..c64f6082d 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.1_T2.9.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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. -/** - * Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) is not String or Type(Primitive(y)) is not String - * - * @path ch11/11.8/11.8.3/S11.8.3_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: > + Operator x <= y returns ToNumber(x) <= ToNumber(y), if Type(Primitive(x)) + is not String or Type(Primitive(y)) is not String +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.3/S11.8.3_A3.2_T1.1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.2_T1.1.js index 354384ea8..d5a0f6785 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.2_T1.1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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" !== false) { if ("1" <= "x" !== true) { $ERROR('#6: "1" <= "x" === true'); } - diff --git a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.2_T1.2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.2_T1.2.js index 93ff5e2e2..542531547 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A3.2_T1.2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.1.js index c94f02041..165cc9d4a 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.10.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.10.js index 4e2295c6d..29e1135e9 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.10.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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 and x !== y, return false - * - * @path ch11/11.8/11.8.3/S11.8.3_A4.10.js - * @description x and y are string primitives - */ +/*--- +info: If y is a prefix of x and x !== y, 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.3/S11.8.3_A4.11.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.11.js index 556a9eb89..8ff6e1650 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.11.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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, return true - * - * @path ch11/11.8/11.8.3/S11.8.3_A4.11.js - * @description x and y are string primitives - */ +/*--- +info: If x is a prefix of 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.3/S11.8.3_A4.12_T1.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.12_T1.js index cb1228e57..a48917ff1 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.12_T1.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.12_T2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.12_T2.js index 459d73ed1..c1556441d 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.12_T2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.2.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.2.js index dd195d809..e03799466 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.2.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.3.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.3.js index 3c462cfdd..1bf568c5e 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.3.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.4.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.4.js index 4669cde36..370f514aa 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.4.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.5.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.5.js index ff3ab3a85..5c07f1388 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.5.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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 and x !== y, return false - * - * @path ch11/11.8/11.8.3/S11.8.3_A4.5.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.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.3/S11.8.3_A4.6.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.6.js index 1aa11f973..faad8099f 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.6.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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.3/S11.8.3_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.3/S11.8.3_A4.7.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.7.js index 8abd94de4..abbc88d00 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.7.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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, return true - * - * @path ch11/11.8/11.8.3/S11.8.3_A4.7.js - * @description y is number primitive - */ +/*--- +info: If x is -Infinity, 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.3/S11.8.3_A4.8.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.8.js index c126d0795..e495f226f 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.8.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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 and x !== y, return false - * - * @path ch11/11.8/11.8.3/S11.8.3_A4.8.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.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.3/S11.8.3_A4.9.js b/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.9.js index fa0d9302c..609561473 100644 --- a/test/suite/ch11/11.8/11.8.3/S11.8.3_A4.9.js +++ b/test/suite/ch11/11.8/11.8.3/S11.8.3_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 or equal than y and these values are both finite non-zero, return true; otherwise, return false - * - * @path ch11/11.8/11.8.3/S11.8.3_A4.9.js - * @description x and y are number primitives - */ +/*--- +info: > + If x is less 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/2 <= Number.MAX_VALUE) !== true) { if ((Number.MIN_VALUE <= Number.MIN_VALUE*2) !== true) { $ERROR('#8: (Number.MIN_VALUE <= Number.MIN_VALUE*2) === true'); } - - - 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'); } - - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A1.js index 282b9fda4..b290b4c92 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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 "instanceof" and between "instanceof" and ShiftExpression are allowed - * - * @path ch11/11.8/11.8.6/S11.8.6_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between RelationalExpression and + "instanceof" and between "instanceof" and ShiftExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("({})\u0009instanceof\u0009Object") !== true) { @@ -57,4 +57,3 @@ if (eval("({})\u2029instanceof\u2029Object") !== true) { if (eval("({})\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029instanceof\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Object") !== true) { $ERROR('#10: ({})\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029instanceof\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Object === true'); } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T1.js index e7a31658c..8d612ac87 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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 "instanceof" uses GetValue - * - * @path ch11/11.8/11.8.6/S11.8.6_A2.1_T1.js - * @description Either Expression is not Reference or GetBase is not null - */ +/*--- +info: Operator "instanceof" uses GetValue +description: Either Expression is not Reference or GetBase is not null +---*/ //CHECK#1 if (({}) instanceof Object !== true) { @@ -31,5 +29,3 @@ var OBJECT = Object; if (object instanceof OBJECT !== true) { $ERROR('#4: var object = {}; var OBJECT = Object; object instanceof OBJECT === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T2.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T2.js index 9477b0b5d..eaeaad9f6 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T2.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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 "instanceof" uses GetValue - * - * @path ch11/11.8/11.8.6/S11.8.6_A2.1_T2.js - * @description If GetBase(RelationalExpression) is null, throw ReferenceError - */ +/*--- +info: Operator "instanceof" uses GetValue +description: If GetBase(RelationalExpression) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: object instanceof Object throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T3.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T3.js index bb0a094ce..fed60b6e4 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.1_T3.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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 "instanceof" uses GetValue - * - * @path ch11/11.8/11.8.6/S11.8.6_A2.1_T3.js - * @description If GetBase(ShiftExpression) is null, throw ReferenceError - */ +/*--- +info: Operator "instanceof" uses GetValue +description: If GetBase(ShiftExpression) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: ({}) instanceof OBJECT throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T1.js index 957c99b3b..0b713ac25 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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.6/S11.8.6_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var OBJECT = 0; @@ -19,5 +17,3 @@ var object = {}; if (object instanceof (object = 0, Object) !== true) { $ERROR('#2: var object = {}; object instanceof (object = 0, Object) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T2.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T2.js index 5f87c4342..6f2ec9bfc 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T2.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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.6/S11.8.6_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.6/S11.8.6_A2.4_T3.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T3.js index 06ef16073..34b52a9ab 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A2.4_T3.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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.6/S11.8.6_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 ((OBJECT = Object, {}) instanceof OBJECT !== true) { $ERROR('#2: (OBJECT = Object, {}) instanceof OBJECT !== true'); } - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A3.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A3.js index da3d7e5dc..8b2134f1b 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A3.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A3.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 ShiftExpression is not an object, throw TypeError - * - * @path ch11/11.8/11.8.6/S11.8.6_A3.js - * @description Checking all the types of primitives - */ +/*--- +info: If ShiftExpression is not an object, throw TypeError +description: Checking all the types of primitives +---*/ //CHECK#1 try { @@ -62,4 +60,3 @@ catch (e) { $ERROR('#5: null instanceof null throw TypeError'); } } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T1.js index 0f9d2319d..2d8f596d0 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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. -/** - * Only constructor call (with "new" keyword) makes instance - * - * @path ch11/11.8/11.8.6/S11.8.6_A4_T1.js - * @description Checking Boolean case - */ +/*--- +info: Only constructor call (with "new" keyword) makes instance +description: Checking Boolean case +---*/ //CHECK#1 if (false instanceof Boolean) { @@ -22,5 +20,3 @@ if (Boolean(false) instanceof Boolean) { if (new Boolean instanceof Boolean !== true) { $ERROR('#3: new Boolean instanceof Boolean'); } - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T2.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T2.js index a4f1f3c02..d52834d3e 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T2.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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. -/** - * Only constructor call (with "new" keyword) makes instance - * - * @path ch11/11.8/11.8.6/S11.8.6_A4_T2.js - * @description Checking Number case - */ +/*--- +info: Only constructor call (with "new" keyword) makes instance +description: Checking Number case +---*/ //CHECK#1 if (0 instanceof Number) { @@ -22,5 +20,3 @@ if (Number(0) instanceof Number) { if (new Number instanceof Number !== true) { $ERROR('#3: new Number instanceof Number'); } - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T3.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T3.js index c8220049c..850da1852 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A4_T3.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_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. -/** - * Only constructor call (with "new" keyword) makes instance - * - * @path ch11/11.8/11.8.6/S11.8.6_A4_T3.js - * @description Checking String case - */ +/*--- +info: Only constructor call (with "new" keyword) makes instance +description: Checking String case +---*/ //CHECK#1 if ("" instanceof String) { @@ -22,4 +20,3 @@ if (String("") instanceof String) { if (new String instanceof String !== true) { $ERROR('#3: new String instanceof String'); } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_T1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_T1.js index a021a9ac3..078812903 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_T1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_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. -/** - * TypeError is subclass of Error from instanceof operator point of view - * - * @path ch11/11.8/11.8.6/S11.8.6_A5_T1.js - * @description Checking Error case - */ +/*--- +info: TypeError is subclass of Error from instanceof operator point of view +description: Checking Error case +---*/ var __err = new Error; @@ -43,5 +41,3 @@ if (err__ instanceof TypeError) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_T2.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_T2.js index 8a9814a52..bb87ad80a 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_T2.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A5_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. -/** - * TypeError is subclass of Error from instanceof operator point of view - * - * @path ch11/11.8/11.8.6/S11.8.6_A5_T2.js - * @description Checking TypeError case - */ +/*--- +info: TypeError is subclass of Error from instanceof operator point of view +description: Checking TypeError case +---*/ var __t__err = new TypeError; @@ -32,5 +30,3 @@ if (!(err__t__ instanceof Error)) { if (!(err__t__ instanceof TypeError)) { $ERROR('#4: TypeError is subclass of Error from instanceof operator point of view'); } - - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T1.js index 16e0d82b3..7e85c8185 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_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. -/** - * Only Function objects implement [[HasInstance]] and can be proper ShiftExpression for the "instanceof" operator consequently - * - * @path ch11/11.8/11.8.6/S11.8.6_A6_T1.js - * @description Checking "this" case - */ +/*--- +info: > + Only Function objects implement [[HasInstance]] and can be proper + ShiftExpression for the "instanceof" operator consequently +description: Checking "this" case +---*/ //CHECK#1 try{ @@ -18,4 +18,3 @@ catch(e){ $ERROR('#1: Only Function objects implement [[HasInstance]] and consequently can be proper ShiftExpression for The instanceof operator'); } } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T2.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T2.js index f25dbed82..2d8d2a431 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T2.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T2.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. -/** - * Only Function objects implement [[HasInstance]] and can be proper ShiftExpression for the "instanceof" operator consequently - * - * @path ch11/11.8/11.8.6/S11.8.6_A6_T2.js - * @description Checking Math case - */ +/*--- +info: > + Only Function objects implement [[HasInstance]] and can be proper + ShiftExpression for the "instanceof" operator consequently +description: Checking Math case +---*/ //CHECK#1 try{ @@ -18,4 +18,3 @@ catch(e){ $ERROR('#1: 1 instanceof Math throw TypeError'); } } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T3.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T3.js index 24773ad97..3fac0a92e 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T3.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T3.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. -/** - * Only Function objects implement [[HasInstance]] and can be proper ShiftExpression for the "instanceof" operator consequently - * - * @path ch11/11.8/11.8.6/S11.8.6_A6_T3.js - * @description Checking if RelationalExpression is function - */ +/*--- +info: > + Only Function objects implement [[HasInstance]] and can be proper + ShiftExpression for the "instanceof" operator consequently +description: Checking if RelationalExpression is function +---*/ function MyFunct(){return 0}; @@ -24,4 +24,3 @@ if (MyFunct instanceof Function !== true){ if (MyFunct instanceof Object !== true){ $ERROR('#3 function MyFunct(){return 0}; MyFunct instanceof Object === true'); } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T4.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T4.js index 68aa843e8..1164efd7b 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T4.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A6_T4.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. -/** - * Only Function objects implement [[HasInstance]] and can be proper ShiftExpression for the "instanceof" operator consequently - * - * @path ch11/11.8/11.8.6/S11.8.6_A6_T4.js - * @description Checking if RelationalExpression is object - */ +/*--- +info: > + Only Function objects implement [[HasInstance]] and can be proper + ShiftExpression for the "instanceof" operator consequently +description: Checking if RelationalExpression is object +---*/ MyFunct = function(){}; __my__funct = new MyFunct; @@ -37,4 +37,3 @@ catch(e){ $ERROR('#4 Only Function objects implement [[HasInstance]] and consequently can be proper ShiftExpression for The instanceof operator'); } } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T1.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T1.js index 97944a5fd..ae9fe0bb4 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T1.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_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. -/** - * When "instanceof" returns true it means that GetValue(RelationalExpression) is constructed with ShiftExpression - * - * @path ch11/11.8/11.8.6/S11.8.6_A7_T1.js - * @description Checking Object object - */ +/*--- +info: > + When "instanceof" returns true it means that + GetValue(RelationalExpression) is constructed with ShiftExpression +description: Checking Object object +---*/ var __obj={}; @@ -19,4 +19,3 @@ if (!(__obj instanceof Object)) { if (__obj.constructor !== Object) { $ERROR('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T2.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T2.js index c77c93c18..718516ff5 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T2.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T2.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. -/** - * When "instanceof" returns true it means that GetValue(RelationalExpression) is constructed with ShiftExpression - * - * @path ch11/11.8/11.8.6/S11.8.6_A7_T2.js - * @description Checking Array object - */ +/*--- +info: > + When "instanceof" returns true it means that + GetValue(RelationalExpression) is constructed with ShiftExpression +description: Checking Array object +---*/ var __arr=[]; @@ -19,4 +19,3 @@ if (!(__arr instanceof Array)) { if (__arr.constructor !== Array) { $ERROR('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); } - diff --git a/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T3.js b/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T3.js index 8d476a8ad..a13bce785 100644 --- a/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T3.js +++ b/test/suite/ch11/11.8/11.8.6/S11.8.6_A7_T3.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. -/** - * When "instanceof" returns true it means that GetValue(RelationalExpression) is constructed with ShiftExpression - * - * @path ch11/11.8/11.8.6/S11.8.6_A7_T3.js - * @description Checking Function object - */ +/*--- +info: > + When "instanceof" returns true it means that + GetValue(RelationalExpression) is constructed with ShiftExpression +description: Checking Function object +---*/ var __func = new Function; @@ -19,5 +19,3 @@ if (!(__func instanceof Function)) { if (__func.constructor !== Function) { $ERROR('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); } - - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A1.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A1.js index 93c67bfcc..3005d6f95 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A1.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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 "in" and between "in" and ShiftExpression are allowed - * - * @path ch11/11.8/11.8.7/S11.8.7_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between RelationalExpression and "in" and + between "in" and ShiftExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("'MAX_VALUE'\u0009in\u0009Number") !== true) { @@ -57,4 +57,3 @@ if (eval("'MAX_VALUE'\u2029in\u2029Number") !== true) { if (eval("'MAX_VALUE'\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029in\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Number") !== true) { $ERROR('#10: "MAX_VALUE"\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029in\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Number === true'); } - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js index 0e33a3d02..b24241ff5 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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 "in" uses GetValue - * - * @path ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js - * @description Either Expression is not Reference or GetBase is not null - */ +/*--- +info: Operator "in" uses GetValue +description: Either Expression is not Reference or GetBase is not null +---*/ //CHECK#1 if ("MAX_VALUE" in Number !== true) { @@ -31,5 +29,3 @@ var y = Number; if (x in y !== true) { $ERROR('#4: var x = "MAX_VALUE"; var y = Number; x in y === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T2.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T2.js index 307b23b83..fcf3983ec 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T2.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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 "in" uses GetValue - * - * @path ch11/11.8/11.8.7/S11.8.7_A2.1_T2.js - * @description If GetBase(RelationalExpression) is null, throw ReferenceError - */ +/*--- +info: Operator "in" uses GetValue +description: If GetBase(RelationalExpression) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: MAX_VALUE in Number throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T3.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T3.js index 89f69661a..10fd2243a 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.1_T3.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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 "in" uses GetValue - * - * @path ch11/11.8/11.8.7/S11.8.7_A2.1_T3.js - * @description If GetBase(ShiftExpression) is null, throw ReferenceError - */ +/*--- +info: Operator "in" uses GetValue +description: If GetBase(ShiftExpression) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: "MAX_VALUE" in NUMBER throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T1.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T1.js index 5403131ae..8f29eed1b 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T1.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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.7/S11.8.7_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var NUMBER = 0; @@ -19,5 +17,3 @@ var max_value = "MAX_VALUE"; if (max_value in (max_value = "none", Number) !== true) { $ERROR('#2: var max_value = "MAX_VALUE"; max_value in (max_value = "none", Number) === true'); } - - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T2.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T2.js index 3016c2278..d20425193 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T2.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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.7/S11.8.7_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.7/S11.8.7_A2.4_T3.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T3.js index 22744621a..42dacc9fc 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A2.4_T3.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_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.7/S11.8.7_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 ((NUMBER = Number, "MAX_VALUE") in NUMBER !== true) { $ERROR('#2: (NUMBER = Number, "MAX_VALUE") in NUMBER !== true'); } - - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A3.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A3.js index 56dc73198..af188bc89 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A3.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_A3.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 ShiftExpression is not an object, throw TypeError - * - * @path ch11/11.8/11.8.7/S11.8.7_A3.js - * @description Checking all the types of primitives - */ +/*--- +info: If ShiftExpression is not an object, throw TypeError +description: Checking all the types of primitives +---*/ //CHECK#1 try { @@ -62,4 +60,3 @@ catch (e) { $ERROR('#5: "toString" in null throw TypeError'); } } - diff --git a/test/suite/ch11/11.8/11.8.7/S11.8.7_A4.js b/test/suite/ch11/11.8/11.8.7/S11.8.7_A4.js index fcb4a6b86..9386f76af 100644 --- a/test/suite/ch11/11.8/11.8.7/S11.8.7_A4.js +++ b/test/suite/ch11/11.8/11.8.7/S11.8.7_A4.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 "in" calls ToString(ShiftExpression) - * - * @path ch11/11.8/11.8.7/S11.8.7_A4.js - * @description Checking ToString coversion; - */ +/*--- +info: Operator "in" calls ToString(ShiftExpression) +description: Checking ToString coversion; +---*/ //CHECK#1 var object = {}; @@ -35,4 +33,3 @@ object["null"] = 1; if (null in object !== "null" in object) { $ERROR('#5: "var object = {}; object["null"] = 1; null in object === "null" in object'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A1.js index 3f9904f46..9cd234174 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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 EqualityExpression and "==" or between "==" and RelationalExpression are allowed - * - * @path ch11/11.9/11.9.1/S11.9.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between EqualityExpression and "==" or + between "==" and RelationalExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("true\u0009==\u00091") !== true) { @@ -57,4 +57,3 @@ if (eval("true\u2029==\u20291") !== true) { if (eval("true\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029==\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== true) { $ERROR('#10: (true\\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.9/11.9.1/S11.9.1_A2.1_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js index 2d59985ae..ff27d214e 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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.9/11.9.1/S11.9.1_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x == y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1 == 1) !== 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.9/11.9.1/S11.9.1_A2.1_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T2.js index 21994ea8b..0705baac8 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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.9/11.9.1/S11.9.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,5 +16,3 @@ catch (e) { $ERROR('#1.2: x == 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js index 0f8b2c378..273bcd3b7 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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.9/11.9.1/S11.9.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.9/11.9.1/S11.9.1_A2.4_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T1.js index 04d461dcb..eb62a4f59 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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.9/11.9.1/S11.9.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)) !== false) { $ERROR('#2: var x = 0; (x == (x = 1)) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js index fdfc3fc92..d56399f81 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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.9/11.9.1/S11.9.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.9/11.9.1/S11.9.1_A2.4_T3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T3.js index eecdc35aa..850fd0d47 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A2.4_T3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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.9/11.9.1/S11.9.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) !== true) { $ERROR('#2: ((y = 1) == y) === true'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.js index f54158976..dc5152d60 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.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. -/** - * Return true, if x and y are both true or both false; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A3.1.js - * @description x and y are boolean primitives - */ +/*--- +info: > + Return true, if x and y are both true or both false; otherwise, return + false +description: x and y are boolean primitives +---*/ //CHECK#1 if ((true == true) !== true) { @@ -27,4 +27,3 @@ if ((true == false) !== false) { if ((false == true) !== false) { $ERROR('#4: (false == true) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js index d64e86948..ec844948a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Boolean and Type(y) is Number, - * return the result of comparison ToNumber(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A3.2.js - * @description x is primitive boolean, y is primitive number - */ +/*--- +info: > + If Type(x) is Boolean and Type(y) is Number, + return the result of comparison ToNumber(x) == y +description: x is primitive boolean, y is primitive number +---*/ //CHECK#1 if ((true == 1) !== true) { @@ -18,4 +17,3 @@ if ((true == 1) !== true) { if ((false == "0") !== true) { $ERROR('#2: (false == "0") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js index 342c6f961..2bc607203 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(y) is Number and Type(y) is Boolean, - * return the result of comparison x == ToNumber(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A3.3.js - * @description x is primitive number, y is primitive boolean - */ +/*--- +info: > + If Type(y) is Number and Type(y) is Boolean, + return the result of comparison x == ToNumber(y) +description: x is primitive number, y is primitive boolean +---*/ //CHECK#1 if ((0 == false) !== true) { @@ -18,4 +17,3 @@ if ((0 == false) !== true) { if (("1" == true) !== true) { $ERROR('#2: ("1" == true) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js index 2e5b4738a..3e847949a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.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. -/** - * If x or y is NaN, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.1_T1.js - * @description x is NaN - */ +/*--- +info: If x or y is NaN, return false +description: x is NaN +---*/ //CHECK#1 if ((Number.NaN == true) !== false) { @@ -52,5 +50,3 @@ if ((Number.NaN == "string") !== false) { if ((Number.NaN == new Object()) !== false) { $ERROR('#9: (NaN == new Object()) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js index 8d3be41d2..6c46a4572 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.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. -/** - * If x or y is NaN, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.1_T2.js - * @description y is NaN - */ +/*--- +info: If x or y is NaN, return false +description: y is NaN +---*/ //CHECK#1 if ((true == Number.NaN) !== false) { @@ -52,4 +50,3 @@ if (("string" == Number.NaN) !== false) { if ((new Object() == Number.NaN) !== false) { $ERROR('#9: (new Object() == NaN) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.js index b7e26344d..165fd9e00 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.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 x is +0(-0) and y is -0(+0), return true - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.2.js - * @description Checking all combinations - */ +/*--- +info: If x is +0(-0) and y is -0(+0), return true +description: Checking all combinations +---*/ //CHECK#1 if ((+0 == -0) !== true) { @@ -17,4 +15,3 @@ if ((+0 == -0) !== true) { if ((-0 == +0) !== true) { $ERROR('#2: (-0 == +0) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js index b888b280c..2f668c44a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A4.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Number-s minus NaN, +0, -0. - * Return true, if x is the same number value as y; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A4.3.js - * @description x and y are primitive numbers - */ +/*--- +info: > + Type(x) and Type(y) are Number-s minus NaN, +0, -0. + Return true, if x is the same number value as y; otherwise, return false +description: x and y are primitive numbers +---*/ //CHECK#1 if ((Number.POSITIVE_INFINITY == Number.POSITIVE_INFINITY) !== true) { @@ -33,4 +32,3 @@ if ((1 == 0.999999999999) !== false) { if ((1.0 == 1) !== true) { $ERROR('#5: (1.0 == 1) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js index 26ba2d50d..5ad7cea74 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are String-s. - * Return true, if x and y are exactly the same sequence of characters; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A5.1.js - * @description x and y are primitive string - */ +/*--- +info: > + Type(x) and Type(y) are String-s. + Return true, if x and y are exactly the same sequence of characters; otherwise, return false +description: x and y are primitive string +---*/ //CHECK#1 if (("" == "") !== true) { @@ -43,4 +42,3 @@ if (("1.0" == "1") !== false) { if (("0xff" == "255") !== false) { $ERROR('#7: ("0xff" == "255") === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js index a6464a519..77c8a5c86 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Number and Type(y) is String, - * return the result of comparison x == ToNumber(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A5.2.js - * @description x is primitive number, y is primitive string - */ +/*--- +info: > + If Type(x) is Number and Type(y) is String, + return the result of comparison x == ToNumber(y) +description: x is primitive number, y is primitive string +---*/ //CHECK#1 if ((1 == "1") !== true) { @@ -33,4 +32,3 @@ if ((255 == "0xff") !== true) { if ((0 == "") !== true) { $ERROR('#5: (0 == "") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js index 7fb95cf74..b7cabbc12 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A5.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is String and Type(y) is Number, - * return the result of comparison ToNumber(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A5.3.js - * @description x is primitive string, y is primitive number - */ +/*--- +info: > + If Type(x) is String and Type(y) is Number, + return the result of comparison ToNumber(x) == y +description: x is primitive string, y is primitive number +---*/ //CHECK#1 if (("-1" == -1) !== true) { @@ -28,5 +27,3 @@ if (("false" == 0) !== false) { if (("5e-324" == 5e-324) !== true) { $ERROR('#4: ("5e-324" == 5e-324) === true'); } - - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.js index 95e8b80d7..9eb090789 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.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 Type(x) as well as Type(y) is undefined or null, return true - * - * @path ch11/11.9/11.9.1/S11.9.1_A6.1.js - * @description Checking all combinations - */ +/*--- +info: If Type(x) as well as Type(y) is undefined or null, return true +description: Checking all combinations +---*/ //CHECK#1 if ((undefined == undefined) !== true) { @@ -37,4 +35,3 @@ if ((null == void 0) !== true) { if ((null == null) !== true) { $ERROR('#6: (null == null) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js index 4dcf84051..1d5479bac 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.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. -/** - * If one expression is undefined or null and another is not, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A6.2_T1.js - * @description x is null or undefined, y is not - */ +/*--- +info: If one expression is undefined or null and another is not, return false +description: x is null or undefined, y is not +---*/ //CHECK#1 if ((undefined == true) !== false) { @@ -47,4 +45,3 @@ if ((null == "null") !== false) { if ((null == {}) !== false) { $ERROR('#8: (null == {}) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js index 6f5f2ac70..4530bca34 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A6.2_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. -/** - * If one expression is undefined or null and another is not, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A6.2_T2.js - * @description y is null or undefined, x is not - */ +/*--- +info: If one expression is undefined or null and another is not, return false +description: y is null or undefined, x is not +---*/ //CHECK#1 if ((false == undefined) !== false) { @@ -47,4 +45,3 @@ if (("null" == null) !== false) { if (({} == null) !== false) { $ERROR('#8: ({} == null) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js index b2f0d23a7..a9c76a6d2 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.1.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Object-s. - * Return true, if x and y are references to the same Object; otherwise, return false - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.1.js - * @description Checking Boolean object, Number object, String object, Object object - */ +/*--- +info: > + Type(x) and Type(y) are Object-s. + Return true, if x and y are references to the same Object; otherwise, return false +description: > + Checking Boolean object, Number object, String object, Object + object +---*/ //CHECK#1 if ((new Boolean(true) == new Boolean(true)) !== false) { @@ -50,4 +51,3 @@ if ((new Number(1) == new String("1")) !== false) { if ((new String("1") == new Boolean(true)) !== false) { $ERROR('#8: (new String("x") == new Boolean(true)) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js index 5704688ae..5237a4f25 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is Boolean, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.2.js - * @description x is object, y is primitive boolean - */ +/*--- +info: > + If Type(x) is Object and Type(y) is Boolean, + return ToPrimitive(x) == y +description: x is object, y is primitive boolean +---*/ //CHECK#1 if ((new Boolean(true) == true) !== true) { @@ -23,4 +22,3 @@ if ((new Number(1) == true) !== true) { if ((new String("1") == true) !== true) { $ERROR('#3: (new String("1") == true) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js index c0c89cea0..83ec375ee 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Boolean and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.3.js - * @description y is object, x is primitive boolean - */ +/*--- +info: > + If Type(x) is Boolean and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primitive boolean +---*/ //CHECK#1 if ((true == new Boolean(true)) !== true) { @@ -23,4 +22,3 @@ if ((true == new Number(1)) !== true) { if ((true == new String("+1")) !== true) { $ERROR('#3: (true == new String("+1")) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js index 65ce2df60..afe13d045 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is Number, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.4.js - * @description x is object, y is primitive number - */ +/*--- +info: > + If Type(x) is Object and Type(y) is Number, + return ToPrimitive(x) == y +description: x is object, y is primitive number +---*/ //CHECK#1 if ((new Boolean(true) == 1) !== true) { @@ -23,4 +22,3 @@ if ((new Number(-1) == -1) !== true) { if ((new String("-1") == -1) !== true) { $ERROR('#3: (new String("-1") == -1) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js index 87cbe6eed..d878f58ff 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Number and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.5.js - * @description y is object, x is primitive number - */ +/*--- +info: > + If Type(x) is Number and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primitive number +---*/ //CHECK#1 if ((1 == new Boolean(true)) !== true) { @@ -23,4 +22,3 @@ if ((-1 == new Number(-1)) !== true) { if ((-1 == new String("-1")) !== true) { $ERROR('#3: (-1 == new String("-1")) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js index 986f66b90..4bb1a7e8c 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is String, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.6.js - * @description x is object, y is primitive string - */ +/*--- +info: > + If Type(x) is Object and Type(y) is String, + return ToPrimitive(x) == y +description: x is object, y is primitive string +---*/ //CHECK#1 if ((new Boolean(true) == "1") !== true) { @@ -23,4 +22,3 @@ if ((new Number(-1) == "-1") !== true) { if ((new String("x") == "x") !== true) { $ERROR('#3: (new String("x") == "x") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js index 4d8412d30..5729b054a 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.7.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is String and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.7.js - * @description y is object, x is primitive string - */ +/*--- +info: > + If Type(x) is String and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primitive string +---*/ //CHECK#1 if (("1" == new Boolean(true)) !== true) { @@ -23,4 +22,3 @@ if (("-1" == new Number(-1)) !== true) { if (("x" == new String("x")) !== true) { $ERROR('#3: ("x" == new String("x")) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js index 9aa54434e..3f5d3421c 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.8.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is primitive type, - * return ToPrimitive(x) == y - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.8.js - * @description x is object, y is primtitive - */ +/*--- +info: > + If Type(x) is Object and Type(y) is primitive type, + return ToPrimitive(x) == y +description: x is object, y is primtitive +---*/ //CHECK#1 if (({valueOf: function() {return 1}} == true) !== true) { @@ -73,4 +72,3 @@ catch (e) { $ERROR('#8.2: ({valueOf: function() {return {}}, toString: function() {return {}}} == 1) throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js index ba4d0f38d..052bb8c55 100644 --- a/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js +++ b/test/suite/ch11/11.9/11.9.1/S11.9.1_A7.9.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is primitive type and Type(y) is Object, - * return x == ToPrimitive(y) - * - * @path ch11/11.9/11.9.1/S11.9.1_A7.9.js - * @description y is object, x is primtitive - */ +/*--- +info: > + If Type(x) is primitive type and Type(y) is Object, + return x == ToPrimitive(y) +description: y is object, x is primtitive +---*/ //CHECK#1 if ((true == {valueOf: function() {return 1}}) !== true) { @@ -73,4 +72,3 @@ catch (e) { $ERROR('#8.2: (1 == {valueOf: function() {return {}}, toString: function() {return {}}}) throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A1.js index 5478e2d8c..e78c7d46d 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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 EqualityExpression and "!=" or between "!=" and RelationalExpression are allowed - * - * @path ch11/11.9/11.9.2/S11.9.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between EqualityExpression and "!=" or + between "!=" and RelationalExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("true\u0009!=\u00091") !== false) { @@ -57,4 +57,3 @@ if (eval("true\u2029!=\u20291") !== false) { if (eval("true\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029!=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== false) { $ERROR('#10: (true\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029!=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T1.js index 12b5bbe42..89ad1586d 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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.9/11.9.2/S11.9.2_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x != y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if ((1 != 1) !== false) { @@ -40,4 +38,3 @@ objecty.prop = 1; if ((objectx.prop != objecty.prop) !== false) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop != objecty.prop) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T2.js index aaf6f6a8c..d402b603f 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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.9/11.9.2/S11.9.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.9/11.9.2/S11.9.2_A2.1_T3.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T3.js index f8e65a173..8dd294198 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.1_T3.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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.9/11.9.2/S11.9.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.9/11.9.2/S11.9.2_A2.4_T1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T1.js index 5cb029e4f..a9ed305de 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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.9/11.9.2/S11.9.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 = 0; if ((x != (x = 1)) !== true) { $ERROR('#2: var x = 0; (x != (x = 1)) === true'); } - - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T2.js index 6570ee33b..85a9cd058 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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.9/11.9.2/S11.9.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.9/11.9.2/S11.9.2_A2.4_T3.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T3.js index 93cde317e..1a49ae5f0 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A2.4_T3.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.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.9/11.9.2/S11.9.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) !== false) { $ERROR('#2: ((y = 1) != y) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.1.js index 79921a295..8afcdb447 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.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. -/** - * Return false, if x and y are both true or both false; otherwise, return true - * - * @path ch11/11.9/11.9.2/S11.9.2_A3.1.js - * @description x and y are boolean primitives - */ +/*--- +info: > + Return false, if x and y are both true or both false; otherwise, return + true +description: x and y are boolean primitives +---*/ //CHECK#1 if ((true != true) !== false) { @@ -27,4 +27,3 @@ if ((true != false) !== true) { if ((false != true) !== true) { $ERROR('#4: (false != true) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.2.js index ff0f9c832..1bffe145b 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Boolean and Type(y) is Number, - * return the result of comparison ToNumber(x) != y - * - * @path ch11/11.9/11.9.2/S11.9.2_A3.2.js - * @description x is primitive boolean, y is primitive number - */ +/*--- +info: > + If Type(x) is Boolean and Type(y) is Number, + return the result of comparison ToNumber(x) != y +description: x is primitive boolean, y is primitive number +---*/ //CHECK#1 if ((true != 1) !== false) { @@ -28,5 +27,3 @@ if ((true != new Boolean(true)) !== false) { if ((true != {valueOf: function () {return 1}}) !== false) { $ERROR('#4: (true != {valueOf: function () {return 1}}) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.3.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.3.js index b32bf7fbd..c15ae3a83 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.3.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A3.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(y) is Number and Type(y) is Boolean, - * return the result of comparison x != ToNumber(y) - * - * @path ch11/11.9/11.9.2/S11.9.2_A3.3.js - * @description x is primitive number, y is primitive boolean - */ +/*--- +info: > + If Type(y) is Number and Type(y) is Boolean, + return the result of comparison x != ToNumber(y) +description: x is primitive number, y is primitive boolean +---*/ //CHECK#1 if ((0 != false) !== false) { @@ -28,4 +27,3 @@ if ((new Boolean(false) != false) !== false) { if (({valueOf: function () {return "0"}} != false) !== false) { $ERROR('#4: ({valueOf: function () {return "0"}} != false) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.1_T1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.1_T1.js index 98b9d074b..98a5e9c7c 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.1_T1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.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. -/** - * If x or y is NaN, return true - * - * @path ch11/11.9/11.9.2/S11.9.2_A4.1_T1.js - * @description x is NaN - */ +/*--- +info: If x or y is NaN, return true +description: x is NaN +---*/ //CHECK#1 if ((Number.NaN != true) !== true) { @@ -52,5 +50,3 @@ if ((Number.NaN != "string") !== true) { if ((Number.NaN != new Object()) !== true) { $ERROR('#9: (NaN != new Object()) === true'); } - - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.1_T2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.1_T2.js index 471bcb6f6..42b2a9dc7 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.1_T2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.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. -/** - * If x or y is NaN, return true - * - * @path ch11/11.9/11.9.2/S11.9.2_A4.1_T2.js - * @description y is NaN - */ +/*--- +info: If x or y is NaN, return true +description: y is NaN +---*/ //CHECK#1 if ((true != Number.NaN) !== true) { @@ -52,4 +50,3 @@ if (("string" != Number.NaN) !== true) { if ((new Object() != Number.NaN) !== true) { $ERROR('#9: (new Object() != NaN) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.2.js index b8045a6a0..725079ab2 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_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 x is +0(-0) and y is -0(+0), return false - * - * @path ch11/11.9/11.9.2/S11.9.2_A4.2.js - * @description Checking all combinations - */ +/*--- +info: If x is +0(-0) and y is -0(+0), return false +description: Checking all combinations +---*/ //CHECK#1 if ((+0 != -0) !== false) { @@ -17,4 +15,3 @@ if ((+0 != -0) !== false) { if ((-0 != +0) !== false) { $ERROR('#2: (-0 != +0) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.3.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.3.js index 21cc16ee1..c16bd41db 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.3.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A4.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Number-s minus NaN, +0, -0. - * Return false, if x is the same number value as y; otherwise, return true - * - * @path ch11/11.9/11.9.2/S11.9.2_A4.3.js - * @description x and y are primitive numbers - */ +/*--- +info: > + Type(x) and Type(y) are Number-s minus NaN, +0, -0. + Return false, if x is the same number value as y; otherwise, return true +description: x and y are primitive numbers +---*/ //CHECK#1 if ((Number.POSITIVE_INFINITY != Number.POSITIVE_INFINITY) !== false) { @@ -33,4 +32,3 @@ if ((1 != 0.999999999999) !== true) { if ((1.0 != 1) !== false) { $ERROR('#5: (1.0 != 1) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.1.js index 9476d907a..815948ff2 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are String-s. - * Return true, if x and y are exactly the same sequence of characters; otherwise, return false - * - * @path ch11/11.9/11.9.2/S11.9.2_A5.1.js - * @description x and y are primitive strings - */ +/*--- +info: > + Type(x) and Type(y) are String-s. + Return true, if x and y are exactly the same sequence of characters; otherwise, return false +description: x and y are primitive strings +---*/ //CHECK#1 if (("" != "") !== false) { @@ -43,4 +42,3 @@ if (("1.0" != "1") !== true) { if (("0xff" != "255") !== true) { $ERROR('#7: ("0xff" != "255") === true'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.2.js index f63ffc17d..f0b708ed8 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Number and Type(y) is String, - * return the result of comparison x != ToNumber(y) - * - * @path ch11/11.9/11.9.2/S11.9.2_A5.2.js - * @description x is primitive number, y is primitive string - */ +/*--- +info: > + If Type(x) is Number and Type(y) is String, + return the result of comparison x != ToNumber(y) +description: x is primitive number, y is primitive string +---*/ //CHECK#1 if ((1 != "1") !== false) { @@ -33,4 +32,3 @@ if ((255 != "0xff") !== false) { if ((0 != "") !== false) { $ERROR('#5: (0 != "") === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.3.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.3.js index dedd18ce0..c3b29e794 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.3.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A5.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is String and Type(y) is Number, - * return the result of comparison ToNumber(x) != y - * - * @path ch11/11.9/11.9.2/S11.9.2_A5.3.js - * @description x is primitive string, y is primitive number - */ +/*--- +info: > + If Type(x) is String and Type(y) is Number, + return the result of comparison ToNumber(x) != y +description: x is primitive string, y is primitive number +---*/ //CHECK#1 if (("-1" != -1) !== false) { @@ -28,5 +27,3 @@ if (("false" != 0) !== true) { if (("5e-324" != 5e-324) !== false) { $ERROR('#4: ("5e-324" != 5e-324) === false'); } - - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.1.js index 8d0cfcd35..07fefecd5 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.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 Type(x) as well as Type(y) is Undefined or Null, return true - * - * @path ch11/11.9/11.9.2/S11.9.2_A6.1.js - * @description Checking all combinations - */ +/*--- +info: If Type(x) as well as Type(y) is Undefined or Null, return true +description: Checking all combinations +---*/ //CHECK#1 if ((undefined != undefined) !== false) { @@ -37,4 +35,3 @@ if ((null != void 0) !== false) { if ((null != null) !== false) { $ERROR('#6: (null != null) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_T1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_T1.js index e9a60e124..db98e65a1 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_T1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.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. -/** - * If one expression is undefined or null and another is not, return false - * - * @path ch11/11.9/11.9.2/S11.9.2_A6.2_T1.js - * @description x is null or undefined, y is not - */ +/*--- +info: If one expression is undefined or null and another is not, return false +description: x is null or undefined, y is not +---*/ //CHECK#1 if ((undefined != true) !== true) { @@ -47,4 +45,3 @@ if ((null != "null") !== true) { if ((null != {}) !== true) { $ERROR('#8: (null != {}) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_T2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_T2.js index 05b592b48..f9521c352 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_T2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A6.2_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. -/** - * If one expression is undefined or null and another is not, return false - * - * @path ch11/11.9/11.9.2/S11.9.2_A6.2_T2.js - * @description y is null or undefined, x is not - */ +/*--- +info: If one expression is undefined or null and another is not, return false +description: y is null or undefined, x is not +---*/ //CHECK#1 if ((false != undefined) !== true) { @@ -47,4 +45,3 @@ if (("null" != null) !== true) { if (({} != null) !== true) { $ERROR('#8: ({} != null) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.1.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.1.js index 66b468892..9248f8ab5 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.1.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.1.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Object-s. - * Return true, if x and y are references to the same Object; otherwise, return false - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.1.js - * @description Checking Boolean object, Number object, String object, Object object - */ +/*--- +info: > + Type(x) and Type(y) are Object-s. + Return true, if x and y are references to the same Object; otherwise, return false +description: > + Checking Boolean object, Number object, String object, Object + object +---*/ //CHECK#1 if ((new Boolean(true) != new Boolean(true)) !== true) { @@ -50,4 +51,3 @@ if ((new Number(1) != new String("1")) !== true) { if ((new String("1") != new Boolean(true)) !== true) { $ERROR('#8: (new String("x") != new Boolean(true)) === true'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.2.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.2.js index 44252a045..75a4afc47 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.2.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is Boolean, - * return ToPrimitive(x) != y - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.2.js - * @description x is object, y is primitive boolean - */ +/*--- +info: > + If Type(x) is Object and Type(y) is Boolean, + return ToPrimitive(x) != y +description: x is object, y is primitive boolean +---*/ //CHECK#1 if ((new Boolean(true) != true) !== false) { @@ -23,4 +22,3 @@ if ((new Number(1) != true) !== false) { if ((new String("1") != true) !== false) { $ERROR('#3: (new String("1") != true) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.3.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.3.js index 7bd33386e..efb7d4d84 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.3.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Boolean and Type(y) is Object, - * return x != ToPrimitive(y) - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.3.js - * @description y is object, x is primitive boolean - */ +/*--- +info: > + If Type(x) is Boolean and Type(y) is Object, + return x != ToPrimitive(y) +description: y is object, x is primitive boolean +---*/ //CHECK#1 if ((true != new Boolean(true)) !== false) { @@ -23,4 +22,3 @@ if ((true != new Number(1)) !== false) { if ((true != new String("+1")) !== false) { $ERROR('#3: (true != new String("+1")) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.4.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.4.js index c13672d52..76f8209af 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.4.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is Number, - * return ToPrimitive(x) != y - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.4.js - * @description x is object, y is primitive number - */ +/*--- +info: > + If Type(x) is Object and Type(y) is Number, + return ToPrimitive(x) != y +description: x is object, y is primitive number +---*/ //CHECK#1 if ((new Boolean(true) != 1) !== false) { @@ -23,4 +22,3 @@ if ((new Number(-1) != -1) !== false) { if ((new String("-1") != -1) !== false) { $ERROR('#3: (new String("-1") != -1) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.5.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.5.js index c6cfc4976..e4a870a9b 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.5.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Number and Type(y) is Object, - * return x != ToPrimitive(y) - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.5.js - * @description y is object, x is primitive number - */ +/*--- +info: > + If Type(x) is Number and Type(y) is Object, + return x != ToPrimitive(y) +description: y is object, x is primitive number +---*/ //CHECK#1 if ((1 != new Boolean(true)) !== false) { @@ -23,4 +22,3 @@ if ((-1 != new Number(-1)) !== false) { if ((-1 != new String("-1")) !== false) { $ERROR('#3: (-1 != new String("-1")) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.6.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.6.js index 286b9d4d0..9de2cf237 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.6.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is String, - * return ToPrimitive(x) != y - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.6.js - * @description x is object, y is primitive string - */ +/*--- +info: > + If Type(x) is Object and Type(y) is String, + return ToPrimitive(x) != y +description: x is object, y is primitive string +---*/ //CHECK#1 if ((new Boolean(true) != "1") !== false) { @@ -23,4 +22,3 @@ if ((new Number(-1) != "-1") !== false) { if ((new String("x") != "x") !== false) { $ERROR('#3: (new String("x") != "x") === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.7.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.7.js index cdc8161e0..3c53f6372 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.7.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.7.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is String and Type(y) is Object, - * return x != ToPrimitive(y) - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.7.js - * @description y is object, x is primitive string - */ +/*--- +info: > + If Type(x) is String and Type(y) is Object, + return x != ToPrimitive(y) +description: y is object, x is primitive string +---*/ //CHECK#1 if (("1" != new Boolean(true)) !== false) { @@ -23,4 +22,3 @@ if (("-1" != new Number(-1)) !== false) { if (("x" != new String("x")) !== false) { $ERROR('#3: ("x" != new String("x")) === false'); } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.8.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.8.js index cf9766d79..739f4ea13 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.8.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.8.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is Object and Type(y) is primitive type, - * return ToPrimitive(x) != y - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.8.js - * @description x is object, y is primtitive - */ +/*--- +info: > + If Type(x) is Object and Type(y) is primitive type, + return ToPrimitive(x) != y +description: x is object, y is primtitive +---*/ //CHECK#1 if ((true != {valueOf: function() {return 1}}) !== false) { @@ -73,4 +72,3 @@ catch (e) { $ERROR('#8: (1 != {valueOf: function() {return {}}, toString: function() {return {}}}) throw TypeError'); } } - diff --git a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.9.js b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.9.js index c1ccc5f32..6196427be 100644 --- a/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.9.js +++ b/test/suite/ch11/11.9/11.9.2/S11.9.2_A7.9.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) is primitive type and Type(y) is Object, - * return x != ToPrimitive(y) - * - * @path ch11/11.9/11.9.2/S11.9.2_A7.9.js - * @description y is object, x is primtitive - */ +/*--- +info: > + If Type(x) is primitive type and Type(y) is Object, + return x != ToPrimitive(y) +description: y is object, x is primtitive +---*/ //CHECK#1 if (({valueOf: function() {return 1}} != true) !== false) { @@ -73,4 +72,3 @@ catch (e) { $ERROR('#8.2: ({valueOf: function() {return {}}, toString: function() {return {}}} != 1) throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A1.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A1.js index 410fe3962..28373ecfd 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A1.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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 EqualityExpression and "===" or between "===" and RelationalExpression are allowed - * - * @path ch11/11.9/11.9.4/S11.9.4_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between EqualityExpression and "===" or + between "===" and RelationalExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (!(eval("1\u0009===\u00091"))) { @@ -57,4 +57,3 @@ if (!(eval("1\u2029===\u20291"))) { if (!(eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029===\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291"))) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029===\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T1.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T1.js index b9a1958cb..3ec2e8a9d 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T1.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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.9/11.9.4/S11.9.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)) { @@ -40,5 +38,3 @@ objecty.prop = 1; if (!(objectx.prop === objecty.prop)) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop === objecty.prop'); } - - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T2.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T2.js index c0741ccd1..c39d13e28 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T2.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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.9/11.9.4/S11.9.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.9/11.9.4/S11.9.4_A2.1_T3.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T3.js index dc50a2505..c0c6bf8b6 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.1_T3.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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.9/11.9.4/S11.9.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.9/11.9.4/S11.9.4_A2.4_T1.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T1.js index f24d933b0..410bae1e1 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T1.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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.9/11.9.4/S11.9.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 = 0; @@ -19,5 +17,3 @@ var x = 0; if (x === (x = 1)) { $ERROR('#2: var x = 0; x !== (x = 1)'); } - - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T2.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T2.js index 02fe1ba7c..e2d9a7907 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T2.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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.9/11.9.4/S11.9.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.9/11.9.4/S11.9.4_A2.4_T3.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T3.js index 5b9fa7a03..d6820ed84 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A2.4_T3.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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.9/11.9.4/S11.9.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)) { $ERROR('#2: (y = 1) === y'); } - - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A3.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A3.js index 5fc2545d4..a7e2a4d37 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A3.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Boolean-s. - * Return true, if x and y are both true and both false; otherwise, return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A3.js - * @description x and y are primitive booleans - */ +/*--- +info: > + Type(x) and Type(y) are Boolean-s. + Return true, if x and y are both true and both false; otherwise, return false +description: x and y are primitive booleans +---*/ //CHECK#1 if (!(true === true)) { @@ -28,4 +27,3 @@ if (true === false) { if (false === true) { $ERROR('#4: false !== true'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.1_T1.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.1_T1.js index b742929df..eab5c2805 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.1_T1.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.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. -/** - * If x or y is NaN, return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A4.1_T1.js - * @description x is NaN - */ +/*--- +info: If x or y is NaN, return false +description: x is NaN +---*/ //CHECK#1 if (Number.NaN === true) { @@ -52,5 +50,3 @@ if (Number.NaN === "string") { if (Number.NaN === new Object()) { $ERROR('#9: NaN !== new Object()'); } - - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.1_T2.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.1_T2.js index 3cd02a9fd..66380be57 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.1_T2.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.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. -/** - * If x or y is NaN, return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A4.1_T2.js - * @description y is NaN - */ +/*--- +info: If x or y is NaN, return false +description: y is NaN +---*/ //CHECK#1 if (true === Number.NaN) { @@ -52,4 +50,3 @@ if ("string" === Number.NaN) { if (new Object() === Number.NaN) { $ERROR('#9: new Object() !== NaN'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.2.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.2.js index 7de56ed7d..1d0ed69c8 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.2.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.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 x is +0(-0) and y is -0(+0), return true - * - * @path ch11/11.9/11.9.4/S11.9.4_A4.2.js - * @description Checking all combinations - */ +/*--- +info: If x is +0(-0) and y is -0(+0), return true +description: Checking all combinations +---*/ //CHECK#1 if (!(+0 === -0)) { @@ -17,4 +15,3 @@ if (!(+0 === -0)) { if (!(-0 === +0)) { $ERROR('#2: -0 === +0'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.3.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.3.js index e13bea441..22ca139ea 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.3.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A4.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Number-s minus NaN, +0, -0. - * Return true, if x is the same number value as y; otherwise, return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A4.3.js - * @description x and y are primitive numbers - */ +/*--- +info: > + Type(x) and Type(y) are Number-s minus NaN, +0, -0. + Return true, if x is the same number value as y; otherwise, return false +description: x and y are primitive numbers +---*/ //CHECK#1 if (!(Number.POSITIVE_INFINITY === Number.POSITIVE_INFINITY)) { @@ -53,4 +52,3 @@ if (1 === 0.999999999999) { if (!(1.0 === 1)) { $ERROR('#9: 1.0 === 1'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A5.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A5.js index f32d7c5ae..3d754e32d 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A5.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are String-s. - * Return true, if x and y are exactly the same sequence of characters; otherwise, return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A5.js - * @description x and y are primitive strings - */ +/*--- +info: > + Type(x) and Type(y) are String-s. + Return true, if x and y are exactly the same sequence of characters; otherwise, return false +description: x and y are primitive strings +---*/ //CHECK#1 if (!("" === "")) { @@ -33,4 +32,3 @@ if (" string" === "string ") { if ("1.0" === "1") { $ERROR('#5: "1.0" !== "1"'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.1.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.1.js index b392d432a..a3d3ea58d 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.1.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.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 Type(x) and Type(y) are Undefined-s, return true - * - * @path ch11/11.9/11.9.4/S11.9.4_A6.1.js - * @description void 0, eval("var x") is undefined - */ +/*--- +info: If Type(x) and Type(y) are Undefined-s, return true +description: void 0, eval("var x") is undefined +---*/ //CHECK#1 if (!(undefined === undefined)) { @@ -22,4 +20,3 @@ if (!(void 0 === undefined)) { if (!(undefined === eval("var x"))) { $ERROR('#3: undefined === eval("var x")'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.2.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.2.js index 82bdbea6f..745654aad 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.2.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A6.2.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) and Type(y) are Null-s, return true - * - * @path ch11/11.9/11.9.4/S11.9.4_A6.2.js - * @description null === null - */ +/*--- +info: If Type(x) and Type(y) are Null-s, return true +description: null === null +---*/ //CHECK#1 if (!(null === null)) { $ERROR('#1: null === null'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A7.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A7.js index 0c27f3df5..f7c7fb891 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A7.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A7.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Object-s. - * Return true, if x and y are references to the same Object; otherwise, return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A7.js - * @description Checking Boolean object, Number object, String object, Object object - */ +/*--- +info: > + Type(x) and Type(y) are Object-s. + Return true, if x and y are references to the same Object; otherwise, return false +description: > + Checking Boolean object, Number object, String object, Object + object +---*/ //CHECK#1 if (new Object() === new Object()) { @@ -50,4 +51,3 @@ if (new Number(1) === new String("1")) { if (new String("1") === new Boolean(true)) { $ERROR('#8: new String("x") === new Boolean(true)'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T1.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T1.js index ce51dddef..a93ed9aef 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T1.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_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. -/** - * If Type(x) is different from Type(y), return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A8_T1.js - * @description x or y is primitive boolean - */ +/*--- +info: If Type(x) is different from Type(y), return false +description: x or y is primitive boolean +---*/ //CHECK#1 if (true === new Boolean(true)) { @@ -62,4 +60,3 @@ if (false === new String(false)) { if (true === {valueOf: function () {return true}}) { $ERROR('#11: true === {valueOf: function () {return true}}'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T2.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T2.js index c7bfa4d5b..34272fa19 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T2.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_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. -/** - * If Type(x) is different from Type(y), return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A8_T2.js - * @description x or y is primitive number - */ +/*--- +info: If Type(x) is different from Type(y), return false +description: x or y is primitive number +---*/ //CHECK#1 if (1 === new Number(1)) { @@ -62,4 +60,3 @@ if (new String(0) === 0) { if (1 === {valueOf: function () {return 1}}) { $ERROR('#11: 1 === {valueOf: function () {return 1}}'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T3.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T3.js index a448bbd70..548fb0bc8 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T3.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_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. -/** - * If Type(x) is different from Type(y), return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A8_T3.js - * @description x or y is primitive string - */ +/*--- +info: If Type(x) is different from Type(y), return false +description: x or y is primitive string +---*/ //CHECK#1 if ("1" === new String("1")) { @@ -62,4 +60,3 @@ if (false === new Number(false)) { if ("1" === {valueOf: function () {return "1"}}) { $ERROR('#11: "1" === {valueOf: function () {return "1"}}'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T4.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T4.js index 92aa846ca..44eb73840 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T4.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_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. -/** - * If Type(x) is different from Type(y), return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A8_T4.js - * @description x or y is null or undefined - */ +/*--- +info: If Type(x) is different from Type(y), return false +description: x or y is null or undefined +---*/ //CHECK#1 if (undefined === null) { @@ -77,4 +75,3 @@ if (undefined === "undefined") { if ("undefined" === undefined) { $ERROR('#14: "undefined" !== undefined'); } - diff --git a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T5.js b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T5.js index 5e6bdb2fd..4ec06d3bc 100644 --- a/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T5.js +++ b/test/suite/ch11/11.9/11.9.4/S11.9.4_A8_T5.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 Type(x) is different from Type(y), return false - * - * @path ch11/11.9/11.9.4/S11.9.4_A8_T5.js - * @description Checking with such x and y that either x or y is primitive string and the other is primitive number - */ +/*--- +info: If Type(x) is different from Type(y), return false +description: > + Checking with such x and y that either x or y is primitive string + and the other is primitive number +---*/ //CHECK#1 try { @@ -24,5 +24,4 @@ try { if (1 === e) { $ERROR('#2: 1 !== throw "1"'); } -} - +} diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A1.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A1.js index c9e88dc0c..e228f0121 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A1.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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 EqualityExpression and "!==" or between "!==" and RelationalExpression are allowed - * - * @path ch11/11.9/11.9.5/S11.9.5_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between EqualityExpression and "!==" or + between "!==" and RelationalExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009!==\u00091")) { @@ -57,4 +57,3 @@ if (eval("1\u2029!==\u20291")) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029!==\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291")) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029!==\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T1.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T1.js index 4e9c43c3b..d4f2825b1 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T1.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_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) { @@ -40,5 +38,3 @@ objecty.prop = 1; if (objectx.prop !== objecty.prop) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop === objecty.prop'); } - - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T2.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T2.js index 52637ce50..155128e41 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T2.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_A2.1_T3.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T3.js index e568cbe31..c774233f4 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.1_T3.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_A2.4_T1.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T1.js index 7ed77b440..38ad4b3b7 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T1.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_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))) { $ERROR('#2: var x = 0; x !== (x = 1)'); } - - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T2.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T2.js index b2872fcde..1782559f6 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T2.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_A2.4_T3.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T3.js index d25f15e4d..4b9fe7a51 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A2.4_T3.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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.9/11.9.5/S11.9.5_A2.4_T3.js - * @description Checking undeclarated variables - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking undeclarated variables +---*/ //CHECK#1 try { @@ -23,5 +21,3 @@ catch (e) { if ((y = 1) !== y) { $ERROR('#2: (y = 1) === y'); } - - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A3.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A3.js index f13b4574d..50b6e4c05 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A3.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Boolean-s. - * Return false, if x and y are both true or both false; otherwise, return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A3.js - * @description x and y are primitive booleans - */ +/*--- +info: > + Type(x) and Type(y) are Boolean-s. + Return false, if x and y are both true or both false; otherwise, return true +description: x and y are primitive booleans +---*/ //CHECK#1 if (true !== true) { @@ -28,4 +27,3 @@ if (!(true !== false)) { if (!(false !== true)) { $ERROR('#4: false !== true'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.1_T1.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.1_T1.js index 44548006b..fadf740f2 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.1_T1.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.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. -/** - * If x or y is NaN, return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A4.1_T1.js - * @description x is NaN - */ +/*--- +info: If x or y is NaN, return true +description: x is NaN +---*/ //CHECK#1 if (!(Number.NaN !== true)) { @@ -52,5 +50,3 @@ if (!(Number.NaN !== "string")) { if (!(Number.NaN !== new Object())) { $ERROR('#9: NaN !== new Object()'); } - - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.1_T2.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.1_T2.js index 8503f0a41..38a80b11f 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.1_T2.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.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. -/** - * If x or y is NaN, return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A4.1_T2.js - * @description y is NaN - */ +/*--- +info: If x or y is NaN, return true +description: y is NaN +---*/ //CHECK#1 if (!(true !== Number.NaN)) { @@ -52,4 +50,3 @@ if (!("string" !== Number.NaN)) { if (!(new Object() !== Number.NaN)) { $ERROR('#9: new Object() !== NaN'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.2.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.2.js index 1844bb10f..123f25975 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.2.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_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 x is +0(-0) and y is -0(+0), return false - * - * @path ch11/11.9/11.9.5/S11.9.5_A4.2.js - * @description Checking all combinations - */ +/*--- +info: If x is +0(-0) and y is -0(+0), return false +description: Checking all combinations +---*/ //CHECK#1 if (+0 !== -0) { @@ -17,4 +15,3 @@ if (+0 !== -0) { if (-0 !== +0) { $ERROR('#2: -0 === +0'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.3.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.3.js index b5469c3b3..262413209 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.3.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A4.3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Number-s minus NaN, +0, -0. - * Return false, if x is the same number value as y; otherwise, return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A4.3.js - * @description x and y are primitive numbers - */ +/*--- +info: > + Type(x) and Type(y) are Number-s minus NaN, +0, -0. + Return false, if x is the same number value as y; otherwise, return true +description: x and y are primitive numbers +---*/ //CHECK#1 if (Number.POSITIVE_INFINITY !== Number.POSITIVE_INFINITY) { @@ -53,4 +52,3 @@ if (!(1 !== 0.999999999999)) { if (1.0 !== 1) { $ERROR('#9: 1.0 === 1'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A5.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A5.js index dabb86dbc..32b53927d 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A5.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are String-s. - * Return false, if x and y are exactly the same sequence of characters; otherwise, return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A5.js - * @description x and y are primitive strings - */ +/*--- +info: > + Type(x) and Type(y) are String-s. + Return false, if x and y are exactly the same sequence of characters; otherwise, return true +description: x and y are primitive strings +---*/ //CHECK#1 if ("" !== "") { @@ -33,4 +32,3 @@ if (!(" string" !== "string ")) { if (!("1.0" !== "1")) { $ERROR('#5: "1.0" !== "1"'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.1.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.1.js index 7e89a7b6d..8edb6684c 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.1.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.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 Type(x) and Type(y) are Undefined-s, return false - * - * @path ch11/11.9/11.9.5/S11.9.5_A6.1.js - * @description void 0, eval("var x") is undefined - */ +/*--- +info: If Type(x) and Type(y) are Undefined-s, return false +description: void 0, eval("var x") is undefined +---*/ //CHECK#1 if (undefined !== undefined) { @@ -22,4 +20,3 @@ if (void 0 !== undefined) { if (undefined !== eval("var x")) { $ERROR('#3: undefined === eval("var x")'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.2.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.2.js index 9657e153f..54bf6eb65 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.2.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A6.2.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If Type(x) and Type(y) are Null-s, return false - * - * @path ch11/11.9/11.9.5/S11.9.5_A6.2.js - * @description null === null - */ +/*--- +info: If Type(x) and Type(y) are Null-s, return false +description: null === null +---*/ //CHECK#1 if (null !== null) { $ERROR('#1: null === null'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A7.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A7.js index 1102b7a12..bfd2af15d 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A7.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A7.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Type(x) and Type(y) are Object-s. - * Return false, if x and y are references to the same Object; otherwise, return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A7.js - * @description Checking Boolean object, Number object, String object, Object object - */ +/*--- +info: > + Type(x) and Type(y) are Object-s. + Return false, if x and y are references to the same Object; otherwise, return true +description: > + Checking Boolean object, Number object, String object, Object + object +---*/ //CHECK#1 if (!(new Object() !== new Object())) { @@ -50,6 +51,3 @@ if (!(new Number(1) !== new String("1"))) { if (!(new String("1") !== new Boolean(true))) { $ERROR('#8: new String("x") !== new Boolean(true)'); } - - - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T1.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T1.js index 8e342212e..4957d05f4 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T1.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_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. -/** - * If Type(x) is different from Type(y), return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A8_T1.js - * @description x or y is primitive boolean - */ +/*--- +info: If Type(x) is different from Type(y), return true +description: x or y is primitive boolean +---*/ //CHECK#1 if (!(true !== new Boolean(true))) { @@ -62,4 +60,3 @@ if (!(false !== new String(false))) { if (!(true !== {valueOf: function () {return true}})) { $ERROR('#11: true !== {valueOf: function () {return true}}'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T2.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T2.js index 780807c97..30e6f7be3 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T2.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_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. -/** - * If Type(x) is different from Type(y), return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A8_T2.js - * @description x or y is primitive number - */ +/*--- +info: If Type(x) is different from Type(y), return true +description: x or y is primitive number +---*/ //CHECK#1 if (!(1 !== new Number(1))) { @@ -62,4 +60,3 @@ if (!(new String(0) !== 0)) { if (!(1 !== {valueOf: function () {return 1}})) { $ERROR('#11: 1 !== {valueOf: function () {return 1}}'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T3.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T3.js index 3206868db..8dd17f818 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T3.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_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. -/** - * If Type(x) is different from Type(y), return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A8_T3.js - * @description x or y is primitive string - */ +/*--- +info: If Type(x) is different from Type(y), return true +description: x or y is primitive string +---*/ //CHECK#1 if (!("1" !== new String("1"))) { @@ -62,5 +60,3 @@ if (!(false !== new Number(false))) { if (!("1" !== {valueOf: function () {return "1"}})) { $ERROR('#11: "1" !== {valueOf: function () {return "1"}}'); } - - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T4.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T4.js index 004549142..f51c9b5d8 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T4.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_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. -/** - * If Type(x) is different from Type(y), return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A8_T4.js - * @description x or y is null or undefined - */ +/*--- +info: If Type(x) is different from Type(y), return true +description: x or y is null or undefined +---*/ //CHECK#1 if (!(undefined !== null)) { @@ -77,4 +75,3 @@ if (!(undefined !== "undefined")) { if (!("undefined" !== undefined)) { $ERROR('#14: "undefined" !== undefined'); } - diff --git a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T5.js b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T5.js index 3f2c4a627..1eac7b838 100644 --- a/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T5.js +++ b/test/suite/ch11/11.9/11.9.5/S11.9.5_A8_T5.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 Type(x) is different from Type(y), return true - * - * @path ch11/11.9/11.9.5/S11.9.5_A8_T5.js - * @description Checking such x and y that either x or y is primitive string and the other is primitive number - */ +/*--- +info: If Type(x) is different from Type(y), return true +description: > + Checking such x and y that either x or y is primitive string and + the other is primitive number +---*/ //CHECK#1 try { @@ -24,5 +24,4 @@ try { if (!(1 !== e)) { $ERROR('#2: 1 !== throw "1"'); } -} - +} |