diff options
Diffstat (limited to 'test/suite/ch08/8.7')
25 files changed, 338 insertions, 348 deletions
diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js index a7f5f5b2c..f94ec3e43 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.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.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-1-s.js
- * @description Strict Mode - ReferenceError is thrown if LeftHandSide evaluates to an unresolvable Reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_8_7_2_1 = 11;");
- 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 LeftHandSide evaluates + to an unresolvable Reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_8_7_2_1 = 11;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js index abbfbc7fe..65f2fcddd 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.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 ch08/8.7/8.7.2/8.7.2-2-s.js
- * @description Strict Mode - ReferenceError isn't thrown if LeftHandSide evaluates to a resolvable Reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var b = 11;
- return b === 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 - ReferenceError isn't thrown if LeftHandSide + evaluates to a resolvable Reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var b = 11; + return b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js index 7695a3cb8..c3ccf5875 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-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 ch08/8.7/8.7.2/8.7.2-3-1-s.js
- * @description eval - a property named 'eval' is permitted
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- var o = { eval: 42};
- 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: eval - a property named 'eval' is permitted +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + var o = { eval: 42}; + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js index 88dc77f61..e9ae69021 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js @@ -1,15 +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 ch08/8.7/8.7.2/8.7.2-3-a-1gs.js
- * @description Strict Mode - ReferenceError is thrown if LeftHandSide evaluate to an unresolvable Reference
- * @onlyStrict
- * @negative .
- */
-
-"use strict";
-b = 11;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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 LeftHandSide evaluate to + an unresolvable Reference +negative: . +flags: [onlyStrict] +---*/ + +"use strict"; +b = 11; diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js index 402e7dcfb..336e1da0c 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-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 ch08/8.7/8.7.2/8.7.2-3-a-2gs.js
- * @description Strict Mode - 'runtime' error is thrown before LeftHandSide evaluates to an unresolvable Reference
- * @onlyStrict
- * @negative NotEarlyError
- */
-
-"use strict";
-throw NotEarlyError;
-b = 11;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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 - 'runtime' error is thrown before LeftHandSide + evaluates to an unresolvable Reference +negative: NotEarlyError +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +b = 11; diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js index b61a53046..21a7c5f6c 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-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.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-3-s.js
- * @description Strict Mode - TypeError is thrown if LeftHandSide is a reference to a non-writable data property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_3 = {};
- Object.defineProperty(_8_7_2_3, "b", {
- writable: false
- });
-
- try {
- _8_7_2_3.b = 11;
- 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 LeftHandSide is a reference + to a non-writable data property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_3 = {}; + Object.defineProperty(_8_7_2_3, "b", { + writable: false + }); + + try { + _8_7_2_3.b = 11; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js index f8bb3cfc2..f1bdbc500 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-4-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 ch08/8.7/8.7.2/8.7.2-4-s.js
- * @description Strict Mode - TypeError is thrown if LeftHandSide is a reference to an accessor property with no setter
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_4 = {};
- var _8_7_2_4_bValue = 1;
- Object.defineProperty(_8_7_2_4, "b", {
- get: function () { return _8_7_2_4_bValue; }
- });
-
- try {
- _8_7_2_4.b = 11;
- 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 LeftHandSide is a reference + to an accessor property with no setter +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_4 = {}; + var _8_7_2_4_bValue = 1; + Object.defineProperty(_8_7_2_4, "b", { + get: function () { return _8_7_2_4_bValue; } + }); + + try { + _8_7_2_4.b = 11; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js index ece372934..c61c42878 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-5-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 ch08/8.7/8.7.2/8.7.2-5-s.js
- * @description Strict Mode - TypeError is thrown if LeftHandSide is a reference to a non-existent property of an non-extensible object
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_5 = {};
- Object.preventExtensions(_8_7_2_5);
-
- try {
- _8_7_2_5.b = 11;
- 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 LeftHandSide is a reference + to a non-existent property of an non-extensible object +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_5 = {}; + Object.preventExtensions(_8_7_2_5); + + try { + _8_7_2_5.b = 11; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js index 298485f94..184ee4b56 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-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 ch08/8.7/8.7.2/8.7.2-6-s.js
- * @description Strict Mode - TypeError isn't thrown if LeftHandSide is a reference to a writable data property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_6 = {};
- Object.defineProperty(_8_7_2_6, "b", {
- writable: true
- });
-
- _8_7_2_6.b = 11;
-
- return _8_7_2_6.b === 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 isn't thrown if LeftHandSide is a + reference to a writable data property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_6 = {}; + Object.defineProperty(_8_7_2_6, "b", { + writable: true + }); + + _8_7_2_6.b = 11; + + return _8_7_2_6.b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js index bc2f19543..965d5f66a 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-7-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 ch08/8.7/8.7.2/8.7.2-7-s.js
- * @description Strict Mode - TypeError isn't thrown if LeftHandSide is a reference to an accessor property with setter
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_7 = {};
- var _8_7_2_7_bValue = 1;
- Object.defineProperty(_8_7_2_7, "b", {
- get: function () { return _8_7_2_7_bValue; },
- set: function (value) { _8_7_2_7_bValue = value; }
- });
-
- _8_7_2_7.b = 11;
- return _8_7_2_7.b === 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 isn't thrown if LeftHandSide is a + reference to an accessor property with setter +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_7 = {}; + var _8_7_2_7_bValue = 1; + Object.defineProperty(_8_7_2_7, "b", { + get: function () { return _8_7_2_7_bValue; }, + set: function (value) { _8_7_2_7_bValue = value; } + }); + + _8_7_2_7.b = 11; + return _8_7_2_7.b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js index 1e69c3305..224150f61 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.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.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-8-s.js
- * @description Strict Mode - TypeError isn't thrown if LeftHandSide is a reference to a property of an extensible object
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_8 = {};
-
- _8_7_2_8.b = 11;
-
- return _8_7_2_8.b === 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 isn't thrown if LeftHandSide is a + reference to a property of an extensible object +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_8 = {}; + + _8_7_2_8.b = 11; + + return _8_7_2_8.b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/S8.7.1_A1.js b/test/suite/ch08/8.7/S8.7.1_A1.js index 624b2d71f..608fdbcb2 100644 --- a/test/suite/ch08/8.7/S8.7.1_A1.js +++ b/test/suite/ch08/8.7/S8.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. -/** - * Delete operator deletes pure property, so it returns true to be applyed to this.property - * - * @path ch08/8.7/S8.7.1_A1.js - * @description Try to delete this.y, where y is this.y=1 - */ +/*--- +info: > + Delete operator deletes pure property, so it returns true to be applyed + to this.property +description: Try to delete this.y, where y is this.y=1 +---*/ this.y = 1; ////////////////////////////////////////////////////////////////////////////// @@ -25,4 +25,3 @@ if (this.y !== undefined){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7.1_A2.js b/test/suite/ch08/8.7/S8.7.1_A2.js index eb9c4caff..3b367b6bc 100644 --- a/test/suite/ch08/8.7/S8.7.1_A2.js +++ b/test/suite/ch08/8.7/S8.7.1_A2.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. -/** - * Delete operator can't delete reference, so it returns false to be applyed to reference - * - * @path ch08/8.7/S8.7.1_A2.js - * @description Try to delete y, where y is var y=1 - * @noStrict - */ +/*--- +info: > + Delete operator can't delete reference, so it returns false to be applyed + to reference +description: Try to delete y, where y is var y=1 +flags: [noStrict] +---*/ var y = 1; @@ -26,4 +26,3 @@ if (y !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7.2_A1_T1.js b/test/suite/ch08/8.7/S8.7.2_A1_T1.js index c7908106d..e59dd08e2 100644 --- a/test/suite/ch08/8.7/S8.7.2_A1_T1.js +++ b/test/suite/ch08/8.7/S8.7.2_A1_T1.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. -/** - * GetValue(V) mast fail - * - * @path ch08/8.7/S8.7.2_A1_T1.js - * @description Checking if execution of "'litera'=1;" fails - * @negative - */ +/*--- +info: GetValue(V) mast fail +description: Checking if execution of "'litera'=1;" fails +flags: [negative] +---*/ 'litera'=1; - diff --git a/test/suite/ch08/8.7/S8.7.2_A1_T2.js b/test/suite/ch08/8.7/S8.7.2_A1_T2.js index 97a38cc0b..40f3194e0 100644 --- a/test/suite/ch08/8.7/S8.7.2_A1_T2.js +++ b/test/suite/ch08/8.7/S8.7.2_A1_T2.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. -/** - * GetValue(V) mast fail - * - * @path ch08/8.7/S8.7.2_A1_T2.js - * @description Checking if execution of "1=1" fails - * @negative - */ +/*--- +info: GetValue(V) mast fail +description: Checking if execution of "1=1" fails +flags: [negative] +---*/ 1=1; - diff --git a/test/suite/ch08/8.7/S8.7.2_A2.js b/test/suite/ch08/8.7/S8.7.2_A2.js index 53f3a8d5b..69471e5f3 100644 --- a/test/suite/ch08/8.7/S8.7.2_A2.js +++ b/test/suite/ch08/8.7/S8.7.2_A2.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. -/** - * x++ calls GetValue then PutValue so after applying postfix increment(actually conrete operator type is unimportant) - * we must have reference to defined value - * - * @path ch08/8.7/S8.7.2_A2.js - * @description Execute x++, where x is var x - */ +/*--- +info: > + x++ calls GetValue then PutValue so after applying postfix increment(actually conrete operator type is unimportant) + we must have reference to defined value +description: Execute x++, where x is var x +---*/ var x; ////////////////////////////////////////////////////////////////////////////// @@ -25,4 +24,3 @@ if (x === undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7.2_A3.js b/test/suite/ch08/8.7/S8.7.2_A3.js index 7877e4e2b..315eaa19f 100644 --- a/test/suite/ch08/8.7/S8.7.2_A3.js +++ b/test/suite/ch08/8.7/S8.7.2_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. -/** - * this.x++ calls GetValue then PutValue so after applying postfix increment(actually conrete operator type is unimportan) - * we must have reference to defined value - * - * @path ch08/8.7/S8.7.2_A3.js - * @description Execute this.x++, where this.x is undefined - */ +/*--- +info: > + this.x++ calls GetValue then PutValue so after applying postfix increment(actually conrete operator type is unimportan) + we must have reference to defined value +description: Execute this.x++, where this.x is undefined +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -24,4 +23,3 @@ if (x === undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A1.js b/test/suite/ch08/8.7/S8.7_A1.js index 7743600bb..a5ce3fa97 100644 --- a/test/suite/ch08/8.7/S8.7_A1.js +++ b/test/suite/ch08/8.7/S8.7_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. -/** - * Multiple Variables should Referring to a Single Object - * - * @path ch08/8.7/S8.7_A1.js - * @description Create object and refers to the other object, modify a property in the original object. - * We now see that that change is represented in both variables - */ +/*--- +info: Multiple Variables should Referring to a Single Object +description: > + Create object and refers to the other object, modify a property in + the original object. We now see that that change is represented + in both variables +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -27,4 +27,3 @@ if(objRef.oneProperty !== true){ }; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A2.js b/test/suite/ch08/8.7/S8.7_A2.js index 8e1e1e933..09e9fedfb 100644 --- a/test/suite/ch08/8.7/S8.7_A2.js +++ b/test/suite/ch08/8.7/S8.7_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. -/** - * Reference to Self-Modifying Object remain the integrity - * - * @path ch08/8.7/S8.7_A2.js - * @description Create a reference to the array, and change original array - */ +/*--- +info: Reference to Self-Modifying Object remain the integrity +description: Create a reference to the array, and change original array +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -39,4 +37,3 @@ if( itemsRef[1] !== "duo"){ }; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A3.js b/test/suite/ch08/8.7/S8.7_A3.js index b7266bee7..0af98c812 100644 --- a/test/suite/ch08/8.7/S8.7_A3.js +++ b/test/suite/ch08/8.7/S8.7_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. -/** - * Changing the Reference of an Object While Maintaining Integrity - * - * @path ch08/8.7/S8.7_A3.js - * @description Create a reference to the array, and redefine original array with new array - */ +/*--- +info: Changing the Reference of an Object While Maintaining Integrity +description: > + Create a reference to the array, and redefine original array with + new array +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -26,4 +26,3 @@ if( items == itemsRef ){ }; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A4.js b/test/suite/ch08/8.7/S8.7_A4.js index f2c7b4562..bc36b9497 100644 --- a/test/suite/ch08/8.7/S8.7_A4.js +++ b/test/suite/ch08/8.7/S8.7_A4.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. -/** - * Object Modification Resulting in a New Object for Not a Self-Modified Object leads to loss of integrity - * - * @path ch08/8.7/S8.7_A4.js - * @description Create a reference to the string, and Concatenate some new text onto the string object - */ +/*--- +info: > + Object Modification Resulting in a New Object for Not a Self-Modified + Object leads to loss of integrity +description: > + Create a reference to the string, and Concatenate some new text + onto the string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -25,4 +27,3 @@ if( item == itemRef ){ }; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A5_T1.js b/test/suite/ch08/8.7/S8.7_A5_T1.js index 32796bdd3..4a2032c9f 100644 --- a/test/suite/ch08/8.7/S8.7_A5_T1.js +++ b/test/suite/ch08/8.7/S8.7_A5_T1.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. -/** - * Delete unary operator can't delete object to be referenced - * - * @path ch08/8.7/S8.7_A5_T1.js - * @description Delete referenced object, var __ref = obj - * @noStrict - */ +/*--- +info: Delete unary operator can't delete object to be referenced +description: Delete referenced object, var __ref = obj +flags: [noStrict] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -51,4 +49,3 @@ if (typeof(obj) !== "object"){ }; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A5_T2.js b/test/suite/ch08/8.7/S8.7_A5_T2.js index a76b36c19..6fd34c3c2 100644 --- a/test/suite/ch08/8.7/S8.7_A5_T2.js +++ b/test/suite/ch08/8.7/S8.7_A5_T2.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. -/** - * Delete unary operator can't delete object to be referenced - * - * @path ch08/8.7/S8.7_A5_T2.js - * @description Delete referenced object, __ref = obj - * @noStrict - */ +/*--- +info: Delete unary operator can't delete object to be referenced +description: Delete referenced object, __ref = obj +flags: [noStrict] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -51,4 +49,3 @@ if (typeof(obj) !== "object"){ }; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch08/8.7/S8.7_A6.js b/test/suite/ch08/8.7/S8.7_A6.js index 40882f1a5..05fd81dd4 100644 --- a/test/suite/ch08/8.7/S8.7_A6.js +++ b/test/suite/ch08/8.7/S8.7_A6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Passing arguments by value differs from by reference and do not change values to be passed - * - * @path ch08/8.7/S8.7_A6.js - * @description Adding original variable with referenced one inside function - */ +/*--- +info: > + Passing arguments by value differs from by reference and do not change + values to be passed +description: Adding original variable with referenced one inside function +---*/ var n = 1; var m = n; @@ -23,5 +23,3 @@ if (m !== 1) { // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch08/8.7/S8.7_A7.js b/test/suite/ch08/8.7/S8.7_A7.js index 17e8eb59c..1fb94632b 100644 --- a/test/suite/ch08/8.7/S8.7_A7.js +++ b/test/suite/ch08/8.7/S8.7_A7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Passing arguments by reference do change values of reference to be passed - * - * @path ch08/8.7/S8.7_A7.js - * @description Add new property to original variable inside function - */ +/*--- +info: Passing arguments by reference do change values of reference to be passed +description: Add new property to original variable inside function +---*/ var n = {}; var m = n; @@ -31,5 +29,3 @@ if (n.age !== 50) { // ////////////////////////////////////////////////////////////////////////////// - - |