diff options
Diffstat (limited to 'test/suite/ch12/12.6/12.6.3')
60 files changed, 846 insertions, 857 deletions
diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-1.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-1.js index a0aa03156..0399ea202 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-1.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-1.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is an Object with value false
- */
-
-
-function testcase() {
- var accessed = false;
- var obj = { value: false };
- for (var i = 0; obj; ) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is an Object with value false +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var obj = { value: false }; + for (var i = 0; obj; ) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-10.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-10.js index cc1cb63d6..f70ca0e65 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-10.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-10.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-10.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a String object (value is '1')
- */
-
-
-function testcase() {
- var accessed = false;
- var strObj = new String("1");
- for (var i = 0; strObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a String object (value is '1') +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var strObj = new String("1"); + for (var i = 0; strObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-11.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-11.js index 2bccf56df..945e111af 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-11.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-11.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is undefined
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; undefined;) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; undefined;) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-12.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-12.js index 6698b966b..166c0d55a 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-12.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-12.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-12.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is null
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; null;) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is null +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; null;) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-13.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-13.js index 4e7d39333..5eb6f1376 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-13.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-13.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-13.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a boolean (value is false)
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; false;) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a boolean (value is false) +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; false;) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-14.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-14.js index 865f68d77..b63c01866 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-14.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-14.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-14.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a number (value is NaN)
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; NaN;) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a number (value is NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; NaN;) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-15.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-15.js index 8f85811f3..0ec3102da 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-15.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-15.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-15.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a number (value is +0)
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; +0;) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a number (value is +0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; +0;) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-16.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-16.js index 20d03326e..128b13e8a 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-16.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-16.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-16.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a number (value is -0)
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; -0;) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a number (value is -0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; -0;) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-17.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-17.js index faca41566..5f10dda2d 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-17.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-17.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-17.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a number (value is a positive)
- */
-
-
-function testcase() {
- var accessed = false;
- for (var i = 0; 2;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a number (value is a positive) +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + for (var i = 0; 2;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-18.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-18.js index 8fc6251de..abb993f83 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-18.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-18.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-18.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a string (value is empty string)
- */
-
-
-function testcase() {
- var count = 0;
- for (var i = 0; "";) {
- count++;
- }
- return count === 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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a string (value is empty string) +includes: [runTestCase.js] +---*/ + +function testcase() { + var count = 0; + for (var i = 0; "";) { + count++; + } + return count === 0; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-19.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-19.js index 19dc79e05..f6d780366 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-19.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-19.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-19.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a string (value is 'undefined')
- */
-
-
-function testcase() {
- var accessed = false;
- for (var i = 0; "undefined";) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a string (value is 'undefined') +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + for (var i = 0; "undefined";) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-2.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-2.js index eaf600c6e..4808a731d 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-2.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-2.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-2.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a Boolean object
- */
-
-
-function testcase() {
- var accessed = false;
- var boolObj = new Boolean(false);
- for (var i = 0; boolObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a Boolean object +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var boolObj = new Boolean(false); + for (var i = 0; boolObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-20.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-20.js index 6c8e61c59..d415b1ab0 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-20.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-20.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-20.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a string (value is 'null')
- */
-
-
-function testcase() {
- var accessed = false;
- for (var i = 0; "null";) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a string (value is 'null') +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + for (var i = 0; "null";) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-21.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-21.js index d83bd0b18..3d67a3267 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-21.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-21.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-21.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a string (value is '1')
- */
-
-
-function testcase() {
- var accessed = false;
- for (var i = 0; "1";) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a string (value is '1') +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + for (var i = 0; "1";) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-3.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-3.js index 76f27f8bd..4ee23b491 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-3.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-3.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a Number object (value is NaN)
- */
-
-
-function testcase() {
- var accessed = false;
- var numObj = new Number(NaN);
- for (var i = 0; numObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a Number object (value is NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var numObj = new Number(NaN); + for (var i = 0; numObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-4.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-4.js index 81599d37b..159ba9cb7 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-4.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-4.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a Number object (value is +0)
- */
-
-
-function testcase() {
- var accessed = false;
- var numObj = new Number(+0);
- for (var i = 0; numObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a Number object (value is +0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var numObj = new Number(+0); + for (var i = 0; numObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-5.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-5.js index 5a3199947..a7cb8e415 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-5.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-5.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-5.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a Number object (value is -0)
- */
-
-
-function testcase() {
- var accessed = false;
- var numObj = new Number(-0);
- for (var i = 0; numObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a Number object (value is -0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var numObj = new Number(-0); + for (var i = 0; numObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-6.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-6.js index 6f8ed9cd3..ed45462a2 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-6.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-6.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-6.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a Number object (value is a positive)
- */
-
-
-function testcase() {
- var accessed = false;
- var numObj = new Number(12);
- for (var i = 0; numObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a Number object (value is a positive) +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var numObj = new Number(12); + for (var i = 0; numObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-7.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-7.js index 920911c94..859432461 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-7.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-7.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-7.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a String object (value is empty string)
- */
-
-
-function testcase() {
- var accessed = false;
- var strObj = new String("");
- for (var i = 0; strObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a String object (value is empty string) +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var strObj = new String(""); + for (var i = 0; strObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-8.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-8.js index f087aa207..72ef6d326 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-8.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-8.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-8.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a String object (value is 'undefined')
- */
-
-
-function testcase() {
- var accessed = false;
- var strObj = new String("undefined");
- for (var i = 0; strObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a String object (value is 'undefined') +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var strObj = new String("undefined"); + for (var i = 0; strObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-9.js b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-9.js index 45ed58923..9d3ce47c0 100644 --- a/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-9.js +++ b/test/suite/ch12/12.6/12.6.3/12.6.3_2-3-a-ii-9.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.
-/**
- * Refer 12.6.3;
- * The production
- * IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement
- * is evaluated as follows:
- *
- * @path ch12/12.6/12.6.3/12.6.3_2-3-a-ii-9.js
- * @description The for Statement - (normal, V, empty) will be returned when first Expression is a String object (value is 'null')
- */
-
-
-function testcase() {
- var accessed = false;
- var strObj = new String("null");
- for (var i = 0; strObj;) {
- accessed = true;
- break;
- }
- return accessed;
- }
-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 12.6.3; + The production + IterationStatement : for ( var VariableDeclarationListNoIn ; Expressionopt ; Expressionopt ) Statement + is evaluated as follows: +description: > + The for Statement - (normal, V, empty) will be returned when first + Expression is a String object (value is 'null') +includes: [runTestCase.js] +---*/ + +function testcase() { + var accessed = false; + var strObj = new String("null"); + for (var i = 0; strObj;) { + accessed = true; + break; + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A1.js index dd200559c..6ab102582 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.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. -/** - * The "for {;;}" for Statement with empty expressions is allowed and leads to performing an infinite loop - * - * @path ch12/12.6/12.6.3/S12.6.3_A1.js - * @description Breaking an infinite loop by throwing exception - */ +/*--- +info: > + The "for {;;}" for Statement with empty expressions is allowed and leads + to performing an infinite loop +description: Breaking an infinite loop by throwing exception +---*/ var __in__for = 0; @@ -32,5 +32,3 @@ if (__in__for !== 101) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.1.js index 13bfc59ff..478eaa052 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.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. -/** - * Nested "var-loops" nine blocks depth is evaluated properly - * - * @path ch12/12.6/12.6.3/S12.6.3_A10.1.js - * @description Checking if executing nested "var-loops" nine blocks depth is evaluated properly - */ +/*--- +info: Nested "var-loops" nine blocks depth is evaluated properly +description: > + Checking if executing nested "var-loops" nine blocks depth is + evaluated properly +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -108,4 +108,3 @@ if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.js index fb17b0b2c..a06592a1f 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A10.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Nested "var-loops" nine blocks depth is evaluated properly - * - * @path ch12/12.6/12.6.3/S12.6.3_A10.js - * @description Checking if executing nested "var-loops" nine blocks depth is evaluated properly - */ +/*--- +info: Nested "var-loops" nine blocks depth is evaluated properly +description: > + Checking if executing nested "var-loops" nine blocks depth is + evaluated properly +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -48,4 +48,3 @@ if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T1.js index d050b3dbc..4aa6f7540 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_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 (Evaluate Statement).type is "continue" and (Evaluate Statement).target is in the current label set, iteration of labeled "var-loop" breaks - * - * @path ch12/12.6/12.6.3/S12.6.3_A11.1_T1.js - * @description Using "continue" in order to continue a loop - */ +/*--- +info: > + If (Evaluate Statement).type is "continue" and (Evaluate + Statement).target is in the current label set, iteration of labeled + "var-loop" breaks +description: Using "continue" in order to continue a loop +---*/ __str="" @@ -18,4 +19,3 @@ for(var index=0; index<10; index+=1) { if (__str!=="56789") { $ERROR('#1: __str === "56789". Actual: __str ==='+ __str ); } - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T2.js index cc0233d41..0d171277a 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_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 (Evaluate Statement).type is "continue" and (Evaluate Statement).target is in the current label set, iteration of labeled "var-loop" breaks - * - * @path ch12/12.6/12.6.3/S12.6.3_A11.1_T2.js - * @description Embedded loops - */ +/*--- +info: > + If (Evaluate Statement).type is "continue" and (Evaluate + Statement).target is in the current label set, iteration of labeled + "var-loop" breaks +description: Embedded loops +---*/ __str=""; @@ -57,7 +58,3 @@ if (__str !== "001011202122303133") { } // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T3.js index d02abf292..f192f69c2 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11.1_T3.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. -/** - * If (Evaluate Statement).type is "continue" and (Evaluate Statement).target is in the current label set, iteration of labeled "var-loop" breaks - * - * @path ch12/12.6/12.6.3/S12.6.3_A11.1_T3.js - * @description Trying to continue non-existent label - * @negative - */ +/*--- +info: > + If (Evaluate Statement).type is "continue" and (Evaluate + Statement).target is in the current label set, iteration of labeled + "var-loop" breaks +description: Trying to continue non-existent label +flags: [negative] +---*/ __str=""; @@ -21,7 +22,3 @@ outer:for(var index=0;index<4;index+=1){ } // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T1.js index 192f1ebd5..6657bed06 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_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 (Evaluate Statement).type is "continue" and (Evaluate Statement).target is in the current label set, iteration of labeled loop breaks - * - * @path ch12/12.6/12.6.3/S12.6.3_A11_T1.js - * @description Simple test of continue loop with using "continue" - */ +/*--- +info: > + If (Evaluate Statement).type is "continue" and (Evaluate + Statement).target is in the current label set, iteration of labeled loop + breaks +description: Simple test of continue loop with using "continue" +---*/ __str="" @@ -18,4 +19,3 @@ for(index=0; index<10; index+=1) { if (__str!=="56789") { $ERROR('#1: __str === "56789". Actual: __str ==='+ __str ); } - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T2.js index cdc606b5c..daf2b1cd7 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_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 (Evaluate Statement).type is "continue" and (Evaluate Statement).target is in the current label set, iteration of labeled loop breaks - * - * @path ch12/12.6/12.6.3/S12.6.3_A11_T2.js - * @description Embedded loops - */ +/*--- +info: > + If (Evaluate Statement).type is "continue" and (Evaluate + Statement).target is in the current label set, iteration of labeled loop + breaks +description: Embedded loops +---*/ __str=""; @@ -57,7 +58,3 @@ if (__str !== "001011202122303133") { } // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T3.js index 2807bc86f..7836fd5b8 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A11_T3.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. -/** - * If (Evaluate Statement).type is "continue" and (Evaluate Statement).target is in the current label set, iteration of labeled loop breaks - * - * @path ch12/12.6/12.6.3/S12.6.3_A11_T3.js - * @description Trying to continue non-existent label - * @negative - */ +/*--- +info: > + If (Evaluate Statement).type is "continue" and (Evaluate + Statement).target is in the current label set, iteration of labeled loop + breaks +description: Trying to continue non-existent label +flags: [negative] +---*/ __str=""; @@ -21,7 +22,3 @@ outer:for(index=0;index<4;index+=1){ } // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T1.js index 48fc3b30c..11b372496 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_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 (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a "var-loop" - * - * @path ch12/12.6/12.6.3/S12.6.3_A12.1_T1.js - * @description Breaking a loop with "break" - */ +/*--- +info: > + If (Evaluate Statement).type is "break" and (Evaluate Statement).target + is in the current label set, (normal, (Evaluate Statement), empty) is + returned while evaluating a "var-loop" +description: Breaking a loop with "break" +---*/ __str="" @@ -18,4 +19,3 @@ for(var index=0; index<10; index+=1) { if (__str!=="012345") { $ERROR('#1: __str === "012345". Actual: __str ==='+ __str ); } - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T2.js index 939fd991d..f50c262e3 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_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 (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a "var-loop" - * - * @path ch12/12.6/12.6.3/S12.6.3_A12.1_T2.js - * @description Embedded loops - */ +/*--- +info: > + If (Evaluate Statement).type is "break" and (Evaluate Statement).target + is in the current label set, (normal, (Evaluate Statement), empty) is + returned while evaluating a "var-loop" +description: Embedded loops +---*/ __str=""; @@ -58,7 +59,3 @@ if (__str !== "00101120213031") { } // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T3.js index 96a5accd9..bddfe803b 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T3.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. -/** - * If (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a "var-loop" - * - * @path ch12/12.6/12.6.3/S12.6.3_A12.1_T3.js - * @description Trying to break non-existent label - * @negative - */ +/*--- +info: > + If (Evaluate Statement).type is "break" and (Evaluate Statement).target + is in the current label set, (normal, (Evaluate Statement), empty) is + returned while evaluating a "var-loop" +description: Trying to break non-existent label +flags: [negative] +---*/ __str=""; @@ -21,4 +22,3 @@ outer:for(var index=0;index<4;index+=1){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T1.js index 55031321d..9d13c8785 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_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 (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a loop - * - * @path ch12/12.6/12.6.3/S12.6.3_A12_T1.js - * @description Breaking a loop with "break" - */ +/*--- +info: > + If (Evaluate Statement).type is "break" and (Evaluate Statement).target + is in the current label set, (normal, (Evaluate Statement), empty) is + returned while evaluating a loop +description: Breaking a loop with "break" +---*/ __str="" @@ -18,4 +19,3 @@ for(index=0; index<10; index+=1) { if (__str!=="012345") { $ERROR('#1:__str === "012345". Actual: __str ==='+__str ); } - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T2.js index e97dc7da3..bba72cd13 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_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 (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a loop - * - * @path ch12/12.6/12.6.3/S12.6.3_A12_T2.js - * @description Embedded loops - */ +/*--- +info: > + If (Evaluate Statement).type is "break" and (Evaluate Statement).target + is in the current label set, (normal, (Evaluate Statement), empty) is + returned while evaluating a loop +description: Embedded loops +---*/ __str=""; @@ -58,7 +59,3 @@ if (__str !== "00101120213031") { } // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T3.js index 67fd236cd..4e97d47fd 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A12_T3.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. -/** - * If (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a loop - * - * @path ch12/12.6/12.6.3/S12.6.3_A12_T3.js - * @description Trying to break non-existent label - * @negative - */ +/*--- +info: > + If (Evaluate Statement).type is "break" and (Evaluate Statement).target + is in the current label set, (normal, (Evaluate Statement), empty) is + returned while evaluating a loop +description: Trying to break non-existent label +flags: [negative] +---*/ __str=""; @@ -21,7 +22,3 @@ outer:for(index=0;index<4;index+=1){ }; // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A13.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A13.js index 452902537..f7476724c 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A13.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A13.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * VariableDeclaration in "var VariableDeclarationListNoIn" of for IterationStatement is allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A13.js - * @description Declaring variable in "for" ExpressionNoIn - */ +/*--- +info: > + VariableDeclaration in "var VariableDeclarationListNoIn" of for + IterationStatement is allowed +description: Declaring variable in "for" ExpressionNoIn +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,4 +22,3 @@ try { for(var index=0; index<6; index++) { ; } - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A14.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A14.js index 182482dd9..01fa4ead5 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A14.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A14.js @@ -1,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 IterationStatement: "for (var VariableDeclarationListNoIn; Expression; Expression) Statement" - * - * @path ch12/12.6/12.6.3/S12.6.3_A14.js - * @description Using +,*,/, as the second Expression - */ +/*--- +info: > + The production IterationStatement: "for (var VariableDeclarationListNoIn; + Expression; Expression) Statement" +description: Using +,*,/, as the second Expression +---*/ //CHECK#1 for(var i=0;i<10;i++){} @@ -43,4 +43,3 @@ for(var i=2;i<10;i*=i){ } if (i!==16) $ERROR('#5.1: i === 16. Actual: i ==='+ i ); if (j!==2) $ERROR('#5.2: j === 2. Actual: j ==='+ j ); - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A15.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A15.js index 4ec6147b9..7f9ef917a 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A15.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A15.js @@ -1,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 IterationStatement: "for (var VariableDeclarationListNoIn; Expression; Expression) Statement" - * - * @path ch12/12.6/12.6.3/S12.6.3_A15.js - * @description Statement must be evaluated before second Expression is evaluated - */ +/*--- +info: > + The production IterationStatement: "for (var VariableDeclarationListNoIn; + Expression; Expression) Statement" +description: Statement must be evaluated before second Expression is evaluated +---*/ //CHECK#1 for(var i=0;i<10;i++){ @@ -20,5 +20,3 @@ for(var i=0;i<10;i++){ i*=2; if (i===3) $ERROR('#2: i !== 3'); } - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.1.js index 78372a2d7..61328a35d 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.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. -/** - * While evaluating "for (ExpressionNoIn ; ; Expression) Statement", Statement is evaulated first - * - * @path ch12/12.6/12.6.3/S12.6.3_A2.1.js - * @description Using "(function(){throw "NoInExpression"})()" as ExpressionNoIn - */ +/*--- +info: > + While evaluating "for (ExpressionNoIn ; ; Expression) Statement", + Statement is evaulated first +description: Using "(function(){throw "NoInExpression"})()" as ExpressionNoIn +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,4 +22,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.2.js index f6391e2f7..897c9d3cc 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.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. -/** - * While evaluating "for (ExpressionNoIn;;) Statement", Statement is evaulated first - * - * @path ch12/12.6/12.6.3/S12.6.3_A2.2.js - * @description Using "(function(){throw "NoInExpression"})()" as ExpressionNoIn - */ +/*--- +info: > + While evaluating "for (ExpressionNoIn;;) Statement", Statement is + evaulated first +description: Using "(function(){throw "NoInExpression"})()" as ExpressionNoIn +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,4 +22,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.js index 86718d9d1..c6c145fff 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_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. -/** - * While evaluating "for (ExpressionNoIn; Expression; Expression) Statement", ExpressionNoIn is evaulated first - * - * @path ch12/12.6/12.6.3/S12.6.3_A2.js - * @description Using "(function(){throw "NoInExpression"})()" as ExpressionNoIn - */ +/*--- +info: > + While evaluating "for (ExpressionNoIn; Expression; Expression) + Statement", ExpressionNoIn is evaulated first +description: Using "(function(){throw "NoInExpression"})()" as ExpressionNoIn +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -30,4 +30,3 @@ if (in_for !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A3.js index 2c46dbfbb..67995c6c3 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A3.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. -/** - * While evaluating "for (ExpressionNoIn; FirstExpression; SecondExpression) Statement", ExpressionNoIn is evaulated first, FirstExpressoin is evaluated second - * - * @path ch12/12.6/12.6.3/S12.6.3_A3.js - * @description Using "(function(){throw "FirstExpression"})()" as FirstExpression - */ +/*--- +info: > + While evaluating "for (ExpressionNoIn; FirstExpression; SecondExpression) + Statement", ExpressionNoIn is evaulated first, FirstExpressoin is + evaluated second +description: Using "(function(){throw "FirstExpression"})()" as FirstExpression +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -38,4 +39,3 @@ if (typeof __in__for !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A4.1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A4.1.js index a64935274..44244f323 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A4.1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A4.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. -/** - * "in"-expression is not allowed as a ExpressionNoIn in "for (ExpressionNoIn; FirstExpression; SecondExpression) Statement" IterationStatement - * - * @path ch12/12.6/12.6.3/S12.6.3_A4.1.js - * @description Checking if execution of "for (var a in arr;1;){}" fails - * @negative - */ +/*--- +info: > + "in"-expression is not allowed as a ExpressionNoIn in "for + (ExpressionNoIn; FirstExpression; SecondExpression) Statement" + IterationStatement +description: Checking if execution of "for (var a in arr;1;){}" fails +flags: [negative] +---*/ arr = [1,2,3,4,5]; @@ -18,5 +19,3 @@ for (var a in arr;1;){ } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T1.js index 48e56c4b1..bcfb8ff31 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T1.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. -/** - * "in"-expression is not allowed as a ExpressionNoIn in "for (ExpressionNoIn; FirstExpression; SecondExpression) Statement" IterationStatement - * - * @path ch12/12.6/12.6.3/S12.6.3_A4_T1.js - * @description Checking if execution of "for (a in arr;1;){}" fails - * @negative - */ +/*--- +info: > + "in"-expression is not allowed as a ExpressionNoIn in "for + (ExpressionNoIn; FirstExpression; SecondExpression) Statement" + IterationStatement +description: Checking if execution of "for (a in arr;1;){}" fails +flags: [negative] +---*/ arr = [1,2,3,4,5]; @@ -18,5 +19,3 @@ for (a in arr;1;){ } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T2.js index 2a292a808..77b703792 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T2.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. -/** - * "in"-expression is not allowed as a ExpressionNoIn in "for (ExpressionNoIn; FirstExpression; SecondExpression) Statement" IterationStatement - * - * @path ch12/12.6/12.6.3/S12.6.3_A4_T2.js - * @description Checking if execution of "for (1 in arr;1;){}" fails - * @negative - */ +/*--- +info: > + "in"-expression is not allowed as a ExpressionNoIn in "for + (ExpressionNoIn; FirstExpression; SecondExpression) Statement" + IterationStatement +description: Checking if execution of "for (1 in arr;1;){}" fails +flags: [negative] +---*/ arr = [1,2,3,4,5]; @@ -18,5 +19,3 @@ for(1 in arr;1;) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A5.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A5.js index 6cab0f017..78206c179 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A5.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A5.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. -/** - * "in"-expression wrapped into "eval" statement is allowed as a ExpressionNoIn in "for (ExpressionNoIn; FirstExpression; SecondExpression) Statement" IterationStatement - * - * @path ch12/12.6/12.6.3/S12.6.3_A5.js - * @description Using eval "for(eval("i in arr");1;)" - */ +/*--- +info: > + "in"-expression wrapped into "eval" statement is allowed as a + ExpressionNoIn in "for (ExpressionNoIn; FirstExpression; + SecondExpression) Statement" IterationStatement +description: Using eval "for(eval("i in arr");1;)" +---*/ arr = [1,2,3,4,5]; i = 1; @@ -39,4 +40,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A6.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A6.js index 1dfd5b457..d00ae353f 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A6.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_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. -/** - * While evaluating "for ( ; ; Expression) Statement", Statement is evaluated first and then Expression is evaluated - * - * @path ch12/12.6/12.6.3/S12.6.3_A6.js - * @description Using "(function(){throw "SecondExpression";})()" as an Expression - */ +/*--- +info: > + While evaluating "for ( ; ; Expression) Statement", Statement is + evaluated first and then Expression is evaluated +description: Using "(function(){throw "SecondExpression";})()" as an Expression +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -30,4 +30,3 @@ if (__in__for !== "reached") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T1.js index f8b2fdbd0..bf8c17313 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T1.js @@ -1,18 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Only three expressions and two semicolons in "for(with var)" braces are allowed. - * Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError - * - * @path ch12/12.6/12.6.3/S12.6.3_A7.1_T1.js - * @description Checking if execution of "for(var index=0; index<10; index++; index--)" fails - * @negative - */ +/*--- +info: > + Only three expressions and two semicolons in "for(with var)" braces are allowed. + Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError +description: > + Checking if execution of "for(var index=0; index<10; index++; + index--)" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 for(var index=0; index<10; index++; index--); // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T2.js index 550b14b19..014bc2284 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7.1_T2.js @@ -1,18 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Only three expressions and two semicolons in "for(with var)" braces are allowed. - * Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError - * - * @path ch12/12.6/12.6.3/S12.6.3_A7.1_T2.js - * @description Checking if execution of "for(var index=0; index<10; index+=4; index++; index--)" fails - * @negative - */ +/*--- +info: > + Only three expressions and two semicolons in "for(with var)" braces are allowed. + Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError +description: > + Checking if execution of "for(var index=0; index<10; index+=4; + index++; index--)" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 for(var index=0; index<10; index+=4; index++; index--) ; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T1.js index 39dcc1c6a..9cef2b12a 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T1.js @@ -1,18 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Only three expressions and two semicolons in "for" braces are allowed. - * Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError - * - * @path ch12/12.6/12.6.3/S12.6.3_A7_T1.js - * @description Checking if execution of "for(index=0; index<10; index++; index--)" fails - * @negative - */ +/*--- +info: > + Only three expressions and two semicolons in "for" braces are allowed. + Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError +description: > + Checking if execution of "for(index=0; index<10; index++; + index--)" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 for(index=0; index<10; index++; index--) ; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T2.js index 2f22dbf3c..dbb1ab424 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A7_T2.js @@ -1,18 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Only three expressions and two semicolons in "for" braces are allowed. - * Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError - * - * @path ch12/12.6/12.6.3/S12.6.3_A7_T2.js - * @description Checking if execution of "for(index=0; index<10; index+=4; index++; index--)" fails - * @negative - */ +/*--- +info: > + Only three expressions and two semicolons in "for" braces are allowed. + Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError +description: > + Checking if execution of "for(index=0; index<10; index+=4; + index++; index--)" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 for(index=0; index<10; index+=4; index++; index--) ; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T1.js index ddd3c30e4..9560278df 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_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. -/** - * Blocks within "for(with var)" braces are not allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A8.1_T1.js - * @description Checking if execution of "for(var index=0; index<100; {index++; index*2;}) { arr.add(""+index);}" fails - * @negative - */ +/*--- +info: Blocks within "for(with var)" braces are not allowed +description: > + Checking if execution of "for(var index=0; index<100; {index++; + index*2;}) { arr.add(""+index);}" fails +flags: [negative] +---*/ var arr = []; @@ -16,4 +16,3 @@ var arr = []; for(var index=0; index<100; {index++; index*2;}) { arr.add(""+index);}; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T2.js index 81cbed22b..01d03c1e5 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_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. -/** - * Blocks within "for(with var)" braces are not allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A8.1_T2.js - * @description Checking if execution of "for(var index=0; {index++;index<100;}; index*2;) { arr.add(""+index);}" fails - * @negative - */ +/*--- +info: Blocks within "for(with var)" braces are not allowed +description: > + Checking if execution of "for(var index=0; {index++;index<100;}; + index*2;) { arr.add(""+index);}" fails +flags: [negative] +---*/ var arr = []; @@ -16,7 +16,3 @@ var arr = []; for(var index=0; {index++;index<100;}; index*2;) { arr.add(""+index);}; // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T3.js index 8c26060e3..c41114522 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.1_T3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8.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. -/** - * Blocks within "for(with var)" braces are not allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A8.1_T3.js - * @description Checking if execution of "for({var index=0; index+=1;} index++<=10; index*2;) { arr.add(""+index);}" fails - * @negative - */ +/*--- +info: Blocks within "for(with var)" braces are not allowed +description: > + Checking if execution of "for({var index=0; index+=1;} + index++<=10; index*2;) { arr.add(""+index);}" fails +flags: [negative] +---*/ var arr = []; @@ -16,7 +16,3 @@ var arr = []; for({var index=0; index+=1;} index++<=10; index*2;) { arr.add(""+index);}; // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T1.js index 8f9ce29d6..09fef90b0 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_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. -/** - * Blocks within "for" braces are not allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A8_T1.js - * @description Checking if execution of "for(index=0; index<100; {index++; index*2;}) { arr.add(""+index);}" fails - * @negative - */ +/*--- +info: Blocks within "for" braces are not allowed +description: > + Checking if execution of "for(index=0; index<100; {index++; + index*2;}) { arr.add(""+index);}" fails +flags: [negative] +---*/ var arr = []; @@ -16,4 +16,3 @@ var arr = []; for(index=0; index<100; {index++; index*2;}) { arr.add(""+index);}; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T2.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T2.js index 406d23bbb..3c114311c 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T2.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_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. -/** - * Blocks within "for" braces are not allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A8_T2.js - * @description Checking if execution of "for(index=0; {index++;index<100;}; index*2;) { arr.add(""+index);}" fails - * @negative - */ +/*--- +info: Blocks within "for" braces are not allowed +description: > + Checking if execution of "for(index=0; {index++;index<100;}; + index*2;) { arr.add(""+index);}" fails +flags: [negative] +---*/ var arr = []; @@ -16,4 +16,3 @@ var arr = []; for(index=0; {index++;index<100;}; index*2;) { arr.add(""+index);}; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T3.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T3.js index 9843a3229..58e9c2d62 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_T3.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A8_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. -/** - * Blocks within "for" braces are not allowed - * - * @path ch12/12.6/12.6.3/S12.6.3_A8_T3.js - * @description Checking if execution of "for({index=0; index+=1;} index++<=10; index*2;) { arr.add(""+index);}" fails - * @negative - */ +/*--- +info: Blocks within "for" braces are not allowed +description: > + Checking if execution of "for({index=0; index+=1;} index++<=10; + index*2;) { arr.add(""+index);}" fails +flags: [negative] +---*/ var arr = []; @@ -16,7 +16,3 @@ var arr = []; for({index=0; index+=1;} index++<=10; index*2;) { arr.add(""+index);}; // ////////////////////////////////////////////////////////////////////////////// - - - - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.1.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.1.js index c2031c9ab..ec3417302 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.1.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.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 evaluating "for( ExpNoIn;Exp;Exp)" loop is returning (normal, evalValue, empty) - * - * @path ch12/12.6/12.6.3/S12.6.3_A9.1.js - * @description Using eval - */ +/*--- +info: > + The result of evaluating "for( ExpNoIn;Exp;Exp)" loop is returning + (normal, evalValue, empty) +description: Using eval +---*/ supreme=5; @@ -22,4 +22,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.js b/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.js index 11b88316f..0df1fdd0a 100644 --- a/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.js +++ b/test/suite/ch12/12.6/12.6.3/S12.6.3_A9.js @@ -1,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 evaluating "for(var ExpNoIn;Exp;Exp)" loop is returning (normal, evalValue, empty) - * - * @path ch12/12.6/12.6.3/S12.6.3_A9.js - * @description Using eval - */ +/*--- +info: > + The result of evaluating "for(var ExpNoIn;Exp;Exp)" loop is returning + (normal, evalValue, empty) +description: Using eval +---*/ supreme=5; @@ -22,4 +22,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - |