diff options
Diffstat (limited to 'test/suite/ch07/7.3')
59 files changed, 420 insertions, 512 deletions
diff --git a/test/suite/ch07/7.3/7.3-1.js b/test/suite/ch07/7.3/7.3-1.js index 3309e649a..e3ad73a9b 100644 --- a/test/suite/ch07/7.3/7.3-1.js +++ b/test/suite/ch07/7.3/7.3-1.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-1.js
- * @description 7.3 - ES5 recognizes the character <LS> (\u2028) as line terminators when parsing statements
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <LS> (\u2028) as line + terminators when parsing statements +includes: [runTestCase.js] +---*/ + function testcase() {
eval("var test7_3_1\u2028prop = 66;");
return (prop === 66) && ((typeof test7_3_1) === "undefined");
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-10.js b/test/suite/ch07/7.3/7.3-10.js index 141841b9c..a0c8afb8b 100644 --- a/test/suite/ch07/7.3/7.3-10.js +++ b/test/suite/ch07/7.3/7.3-10.js @@ -1,14 +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 ch07/7.3/7.3-10.js
- * @description 7.3 - ES5 recognizes the character <PS> (\u2029) as a NonEscapeCharacter
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <PS> (\u2029) as a + NonEscapeCharacter +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("var prop = \\u2029;");
@@ -17,4 +19,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-11.js b/test/suite/ch07/7.3/7.3-11.js index 42116da20..e8e025378 100644 --- a/test/suite/ch07/7.3/7.3-11.js +++ b/test/suite/ch07/7.3/7.3-11.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-11.js
- * @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <LS> (\u2028) must be treated as a single line terminator for the purposes of semicolon insertion
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 specifies that a multiline comment that contains a line + terminator character <LS> (\u2028) must be treated as a single + line terminator for the purposes of semicolon insertion +includes: [runTestCase.js] +---*/ + function testcase() {
/*MultiLine
Comments
@@ -16,4 +19,4 @@ function testcase() { */
return true;
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-12.js b/test/suite/ch07/7.3/7.3-12.js index b993f5bde..6ad70ba46 100644 --- a/test/suite/ch07/7.3/7.3-12.js +++ b/test/suite/ch07/7.3/7.3-12.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-12.js
- * @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <PS> (\u2029) must be treated as a single line terminator for the purposes of semicolon insertion
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 specifies that a multiline comment that contains a line + terminator character <PS> (\u2029) must be treated as a single + line terminator for the purposes of semicolon insertion +includes: [runTestCase.js] +---*/ + function testcase() {
/*MultiLine
Comments
@@ -16,4 +19,4 @@ function testcase() { */
return true;
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-13.js b/test/suite/ch07/7.3/7.3-13.js index d7f941c38..fc9c864d8 100644 --- a/test/suite/ch07/7.3/7.3-13.js +++ b/test/suite/ch07/7.3/7.3-13.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-13.js
- * @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <CR> (\u000D) must be treated as a single line terminator for the purposes of semicolon insertion
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 specifies that a multiline comment that contains a line + terminator character <CR> (\u000D) must be treated as a single + line terminator for the purposes of semicolon insertion +includes: [runTestCase.js] +---*/ + function testcase() {
/*MultiLine
Comments
@@ -16,4 +19,4 @@ function testcase() { */
return true;
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-14.js b/test/suite/ch07/7.3/7.3-14.js index 8f973ae06..04bf9ccb4 100644 --- a/test/suite/ch07/7.3/7.3-14.js +++ b/test/suite/ch07/7.3/7.3-14.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-14.js
- * @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <LF> (\u000A) must be treated as a single line terminator for the purposes of semicolon insertion
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 specifies that a multiline comment that contains a line + terminator character <LF> (\u000A) must be treated as a single + line terminator for the purposes of semicolon insertion +includes: [runTestCase.js] +---*/ + function testcase() {
/*MultiLine
Comments
@@ -16,4 +19,4 @@ function testcase() { */
return true;
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-15.js b/test/suite/ch07/7.3/7.3-15.js index 7dc88a644..4acb94d33 100644 --- a/test/suite/ch07/7.3/7.3-15.js +++ b/test/suite/ch07/7.3/7.3-15.js @@ -1,16 +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 ch07/7.3/7.3-15.js
- * @description 7.3 - ES5 recognize <BOM> (\uFFFF) as a whitespace character
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: 7.3 - ES5 recognize <BOM> (\uFFFF) as a whitespace character +includes: [runTestCase.js] +---*/ + function testcase() {
var prop = "a\uFFFFa";
return prop.length === 3 && prop !== "aa" && prop[1] === "\uFFFF";
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-2.js b/test/suite/ch07/7.3/7.3-2.js index 95fb24280..c9604b97a 100644 --- a/test/suite/ch07/7.3/7.3-2.js +++ b/test/suite/ch07/7.3/7.3-2.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-2.js
- * @description 7.3 - ES5 recognizes the character <PS> (\u2029) as line terminators when parsing statements
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <PS> (\u2029) as line + terminators when parsing statements +includes: [runTestCase.js] +---*/ + function testcase() {
eval("var test7_3_2\u2029prop = 66;");
return (prop===66) && ((typeof test7_3_2) === "undefined");
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-3.js b/test/suite/ch07/7.3/7.3-3.js index 5a05cd16e..ae46dbac8 100644 --- a/test/suite/ch07/7.3/7.3-3.js +++ b/test/suite/ch07/7.3/7.3-3.js @@ -1,14 +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 ch07/7.3/7.3-3.js
- * @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating SingleLineComments
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating + SingleLineComments +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("//Single Line Comments\u2028 var =;");
@@ -17,4 +19,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-4.js b/test/suite/ch07/7.3/7.3-4.js index 41285cb46..9c0d34a96 100644 --- a/test/suite/ch07/7.3/7.3-4.js +++ b/test/suite/ch07/7.3/7.3-4.js @@ -1,14 +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 ch07/7.3/7.3-4.js
- * @description 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating SingleLineComments
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating + SingleLineComments +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("//Single Line Comments\u2029 var =;");
@@ -17,4 +19,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-5.js b/test/suite/ch07/7.3/7.3-5.js index ad65ebbf2..141187551 100644 --- a/test/suite/ch07/7.3/7.3-5.js +++ b/test/suite/ch07/7.3/7.3-5.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-5.js
- * @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating string literal
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating + string literal +includes: [runTestCase.js] +---*/ + function testcase() {
var prop = "66\u2028123";
return prop === "66\u2028123" && prop[2] === "\u2028" && prop.length === 6;
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-6.js b/test/suite/ch07/7.3/7.3-6.js index 5035eae1c..1394d90fb 100644 --- a/test/suite/ch07/7.3/7.3-6.js +++ b/test/suite/ch07/7.3/7.3-6.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.3/7.3-6.js
- * @description 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating string literal
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating + string literal +includes: [runTestCase.js] +---*/ + function testcase() {
var prop = "66\u2029123";
return prop === "66\u2029123" && prop[2] === "\u2029" && prop.length === 6;
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-7.js b/test/suite/ch07/7.3/7.3-7.js index 641117ddf..aee7b75d1 100644 --- a/test/suite/ch07/7.3/7.3-7.js +++ b/test/suite/ch07/7.3/7.3-7.js @@ -1,14 +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 ch07/7.3/7.3-7.js
- * @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating regular expression literals
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating + regular expression literals +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("var regExp = /[\u2028]/");
@@ -18,4 +20,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-8.js b/test/suite/ch07/7.3/7.3-8.js index 7ac4481b1..aa158b419 100644 --- a/test/suite/ch07/7.3/7.3-8.js +++ b/test/suite/ch07/7.3/7.3-8.js @@ -1,14 +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 ch07/7.3/7.3-8.js
- * @description 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating regular expression literals
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating + regular expression literals +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("var regExp = /[\u2029]/");
@@ -18,4 +20,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/7.3-9.js b/test/suite/ch07/7.3/7.3-9.js index 53e964491..c89552e65 100644 --- a/test/suite/ch07/7.3/7.3-9.js +++ b/test/suite/ch07/7.3/7.3-9.js @@ -1,14 +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 ch07/7.3/7.3-9.js
- * @description 7.3 - ES5 recognizes the character <LS> (\u2028) as a NonEscapeCharacter
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + 7.3 - ES5 recognizes the character <LS> (\u2028) as a + NonEscapeCharacter +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("var prop = \\u2028;");
@@ -17,4 +19,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.3/S7.3_A1.1_T1.js b/test/suite/ch07/7.3/S7.3_A1.1_T1.js index b5814c2e0..8e406af5a 100644 --- a/test/suite/ch07/7.3/S7.3_A1.1_T1.js +++ b/test/suite/ch07/7.3/S7.3_A1.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * LINE FEED (U+000A) may occur between any two tokens - * - * @path ch07/7.3/S7.3_A1.1_T1.js - * @description Insert LINE FEED (\u000A and \n) between tokens of var x=1 - */ +/*--- +info: LINE FEED (U+000A) may occur between any two tokens +description: Insert LINE FEED (\u000A and \n) between tokens of var x=1 +---*/ // CHECK#1 eval("\u000Avar\u000Ax\u000A=\u000A1\u000A"); @@ -37,4 +35,3 @@ eval("\u000A" + "var" + "\n" + "x" + "\u000A" + "=" + "\n" + "1" + "\u000A"); if (x !== 1) { $ERROR('#5: eval("\\u000A" + "var" + "\\n" + "x" + "\\u000A" + "=" + "\\n" + "1" + "\\u000A"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A1.1_T2.js b/test/suite/ch07/7.3/S7.3_A1.1_T2.js index b4780361b..a48992768 100644 --- a/test/suite/ch07/7.3/S7.3_A1.1_T2.js +++ b/test/suite/ch07/7.3/S7.3_A1.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * LINE FEED (U+000A) may occur between any two tokens - * - * @path ch07/7.3/S7.3_A1.1_T2.js - * @description Insert real LINE FEED between tokens of var x=1 - */ +/*--- +info: LINE FEED (U+000A) may occur between any two tokens +description: Insert real LINE FEED between tokens of var x=1 +---*/ //CHECK#1 var @@ -16,4 +14,3 @@ x if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A1.2_T1.js b/test/suite/ch07/7.3/S7.3_A1.2_T1.js index bb11122f7..8d13112f3 100644 --- a/test/suite/ch07/7.3/S7.3_A1.2_T1.js +++ b/test/suite/ch07/7.3/S7.3_A1.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CARRIAGE RETURN (U+000D) may occur between any two tokens - * - * @path ch07/7.3/S7.3_A1.2_T1.js - * @description Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1 - */ +/*--- +info: CARRIAGE RETURN (U+000D) may occur between any two tokens +description: Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1 +---*/ // CHECK#1 eval("\u000Dvar\u000Dx\u000D=\u000D1\u000D"); @@ -37,4 +35,3 @@ eval("\u000D" + "var" + "\r" + "x" + "\u000D" + "=" + "\r" + "1" + "\u000D"); if (x !== 1) { $ERROR('#5: eval("\\u000D" + "var" + "\\r" + "x" + "\\u000D" + "=" + "\\r" + "1" + "\\u000D"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A1.2_T2.js b/test/suite/ch07/7.3/S7.3_A1.2_T2.js index 52fb9b52a..fc50eea77 100644 --- a/test/suite/ch07/7.3/S7.3_A1.2_T2.js +++ b/test/suite/ch07/7.3/S7.3_A1.2_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CARRIAGE RETURN (U+000D) may occur between any two tokens - * - * @path ch07/7.3/S7.3_A1.2_T2.js - * @description Insert real CARRIAGE RETURN between tokens of var x=1 - */ +/*--- +info: CARRIAGE RETURN (U+000D) may occur between any two tokens +description: Insert real CARRIAGE RETURN between tokens of var x=1 +---*/ //CHECK#1 var @@ -16,4 +14,3 @@ x if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A1.3.js b/test/suite/ch07/7.3/S7.3_A1.3.js index bf8281937..99275cb8e 100644 --- a/test/suite/ch07/7.3/S7.3_A1.3.js +++ b/test/suite/ch07/7.3/S7.3_A1.3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * LINE SEPARATOR (U+2028) may occur between any two tokens - * - * @path ch07/7.3/S7.3_A1.3.js - * @description Insert LINE SEPARATOR (\u2028) between tokens of var x=1 - */ +/*--- +info: LINE SEPARATOR (U+2028) may occur between any two tokens +description: Insert LINE SEPARATOR (\u2028) between tokens of var x=1 +---*/ // CHECK#1 eval("\u2028var\u2028x\u2028=\u20281\u2028"); @@ -19,5 +17,3 @@ eval("\u2028" + "var" + "\u2028" + "x" + "\u2028" + "=" + "\u2028" + "1" + "\u20 if (x !== 1) { $ERROR('#2: eval("\\u2028" + "var" + "\\u2028" + "x" + "\\u2028" + "=" + "\\u2028" + "1" + "\\u2028"); x === 1. Actual: ' + (x)); } - - diff --git a/test/suite/ch07/7.3/S7.3_A1.4.js b/test/suite/ch07/7.3/S7.3_A1.4.js index f761d0376..24691e10d 100644 --- a/test/suite/ch07/7.3/S7.3_A1.4.js +++ b/test/suite/ch07/7.3/S7.3_A1.4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens - * - * @path ch07/7.3/S7.3_A1.4.js - * @description Insert PARAGRAPH SEPARATOR (\u2029) between tokens of var x=1 - */ +/*--- +info: PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens +description: Insert PARAGRAPH SEPARATOR (\u2029) between tokens of var x=1 +---*/ // CHECK#1 eval("\u2029var\u2029x\u2029=\u20291\u2029"); @@ -19,7 +17,3 @@ eval("\u2029" + "var" + "\u2029" + "x" + "\u2029" + "=" + "\u2029" + "1" + "\u20 if (x !== 1) { $ERROR('#2: eval("\\u2029" + "var" + "\\u2029" + "x" + "\\u2029" + "=" + "\\u2029" + "1" + "\\u2029"); x === 1. Actual: ' + (x)); } - - - - diff --git a/test/suite/ch07/7.3/S7.3_A2.1_T1.js b/test/suite/ch07/7.3/S7.3_A2.1_T1.js index 16cb25e69..acc1d6542 100644 --- a/test/suite/ch07/7.3/S7.3_A2.1_T1.js +++ b/test/suite/ch07/7.3/S7.3_A2.1_T1.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * LINE FEED (U+000A) within strings is not allowed - * - * @path ch07/7.3/S7.3_A2.1_T1.js - * @description Insert LINE FEED (\u000A) into string - * @negative - */ +/*--- +info: LINE FEED (U+000A) within strings is not allowed +description: Insert LINE FEED (\u000A) into string +flags: [negative] +---*/ // CHECK#1 if (eval("'\u000Astr\u000Aing\u000A'") === "\u000Astr\u000Aing\u000A") { $ERROR('#1: eval("\'\\u000Astr\\u000Aing\\u000A\'") === "\\u000Astr\\u000Aing\\u000A"'); } - diff --git a/test/suite/ch07/7.3/S7.3_A2.1_T2.js b/test/suite/ch07/7.3/S7.3_A2.1_T2.js index f587ec97e..a1708b729 100644 --- a/test/suite/ch07/7.3/S7.3_A2.1_T2.js +++ b/test/suite/ch07/7.3/S7.3_A2.1_T2.js @@ -1,17 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * LINE FEED (U+000A) within strings is not allowed - * - * @path ch07/7.3/S7.3_A2.1_T2.js - * @description Use real LINE FEED into string - * @negative - */ +/*--- +info: LINE FEED (U+000A) within strings is not allowed +description: Use real LINE FEED into string +flags: [negative] +---*/ //CHECK#1 " str ing "; - diff --git a/test/suite/ch07/7.3/S7.3_A2.2_T1.js b/test/suite/ch07/7.3/S7.3_A2.2_T1.js index b58d20227..cb1abe57e 100644 --- a/test/suite/ch07/7.3/S7.3_A2.2_T1.js +++ b/test/suite/ch07/7.3/S7.3_A2.2_T1.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CARRIAGE RETURN (U+000D) within strings is not allowed - * - * @path ch07/7.3/S7.3_A2.2_T1.js - * @description Insert CARRIAGE RETURN (\u000D) into string - * @negative - */ +/*--- +info: CARRIAGE RETURN (U+000D) within strings is not allowed +description: Insert CARRIAGE RETURN (\u000D) into string +flags: [negative] +---*/ // CHECK#1 if (eval("'\u000Dstr\u000Ding\u000D'") === "\u000Dstr\u000Ding\u000D") { $ERROR('#1: eval("\'\\u000Dstr\\u000Ding\\u000D\'") === "\\u000Dstr\\u000Ding\\u000D"'); } - diff --git a/test/suite/ch07/7.3/S7.3_A2.2_T2.js b/test/suite/ch07/7.3/S7.3_A2.2_T2.js index 9e8c5e30d..fe4b5f10c 100644 --- a/test/suite/ch07/7.3/S7.3_A2.2_T2.js +++ b/test/suite/ch07/7.3/S7.3_A2.2_T2.js @@ -1,17 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CARRIAGE RETURN (U+000D) within strings is not allowed - * - * @path ch07/7.3/S7.3_A2.2_T2.js - * @description Insert real CARRIAGE RETURN into string - * @negative - */ +/*--- +info: CARRIAGE RETURN (U+000D) within strings is not allowed +description: Insert real CARRIAGE RETURN into string +flags: [negative] +---*/ //CHECK#1 " str ing "; - diff --git a/test/suite/ch07/7.3/S7.3_A2.3.js b/test/suite/ch07/7.3/S7.3_A2.3.js index 645dfaaf3..32fb860c6 100644 --- a/test/suite/ch07/7.3/S7.3_A2.3.js +++ b/test/suite/ch07/7.3/S7.3_A2.3.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * LINE SEPARATOR (U+2028) within strings is not allowed - * - * @path ch07/7.3/S7.3_A2.3.js - * @description Insert LINE SEPARATOR (\u2028) into string - * @negative - */ +/*--- +info: LINE SEPARATOR (U+2028) within strings is not allowed +description: Insert LINE SEPARATOR (\u2028) into string +flags: [negative] +---*/ // CHECK#1 if (eval("'\u2028str\u2028ing\u2028'") === "\u2028str\u2028ing\u2028") { $ERROR('#1: eval("\'\\u2028str\\u2028ing\\u2028\'") === "\\u2028str\\u2028ing\\u2028"'); } - diff --git a/test/suite/ch07/7.3/S7.3_A2.4.js b/test/suite/ch07/7.3/S7.3_A2.4.js index 00e185037..f39935845 100644 --- a/test/suite/ch07/7.3/S7.3_A2.4.js +++ b/test/suite/ch07/7.3/S7.3_A2.4.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * PARAGRAPH SEPARATOR (U+2029) within strings is not allowed - * - * @path ch07/7.3/S7.3_A2.4.js - * @description Insert PARAGRAPH SEPARATOR (\u2029) into string - * @negative - */ +/*--- +info: PARAGRAPH SEPARATOR (U+2029) within strings is not allowed +description: Insert PARAGRAPH SEPARATOR (\u2029) into string +flags: [negative] +---*/ // CHECK#1 if (eval("'\u2029str\u2029ing\u2029'") === "\u2029str\u2029ing\u2029") { $ERROR('#1: eval("\'\\u2029str\\u2029ing\\u2029\'") === "\\u2029str\\u2029ing\\u2029"'); } - diff --git a/test/suite/ch07/7.3/S7.3_A3.1_T1.js b/test/suite/ch07/7.3/S7.3_A3.1_T1.js index f44c153cf..7f016d7e9 100644 --- a/test/suite/ch07/7.3/S7.3_A3.1_T1.js +++ b/test/suite/ch07/7.3/S7.3_A3.1_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain LINE FEED (U+000A) inside - * - * @path ch07/7.3/S7.3_A3.1_T1.js - * @description Insert LINE FEED (\u000A) into single line comment - * @negative - */ +/*--- +info: Single line comments can not contain LINE FEED (U+000A) inside +description: Insert LINE FEED (\u000A) into single line comment +flags: [negative] +---*/ // CHECK#1 eval("// single line \u000A comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.1_T2.js b/test/suite/ch07/7.3/S7.3_A3.1_T2.js index cb808a87a..80867161b 100644 --- a/test/suite/ch07/7.3/S7.3_A3.1_T2.js +++ b/test/suite/ch07/7.3/S7.3_A3.1_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain LINE FEED (U+000A) inside - * - * @path ch07/7.3/S7.3_A3.1_T2.js - * @description Insert LINE FEED (\u000A) into begin of single line comment - * @negative - */ +/*--- +info: Single line comments can not contain LINE FEED (U+000A) inside +description: Insert LINE FEED (\u000A) into begin of single line comment +flags: [negative] +---*/ // CHECK#1 eval("//\u000A single line comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.1_T3.js b/test/suite/ch07/7.3/S7.3_A3.1_T3.js index 6394c939c..d048bec12 100644 --- a/test/suite/ch07/7.3/S7.3_A3.1_T3.js +++ b/test/suite/ch07/7.3/S7.3_A3.1_T3.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain LINE FEED (U+000A) inside - * - * @path ch07/7.3/S7.3_A3.1_T3.js - * @description Insert real LINE FEED into single line comment - * @negative - */ +/*--- +info: Single line comments can not contain LINE FEED (U+000A) inside +description: Insert real LINE FEED into single line comment +flags: [negative] +---*/ // CHECK#1 //single line comment - diff --git a/test/suite/ch07/7.3/S7.3_A3.2_T1.js b/test/suite/ch07/7.3/S7.3_A3.2_T1.js index 2fa270693..4339daa18 100644 --- a/test/suite/ch07/7.3/S7.3_A3.2_T1.js +++ b/test/suite/ch07/7.3/S7.3_A3.2_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain CARRIAGE RETURN (U+000D) inside - * - * @path ch07/7.3/S7.3_A3.2_T1.js - * @description Insert CARRIAGE RETURN (\u000D) into single line comment - * @negative - */ +/*--- +info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside +description: Insert CARRIAGE RETURN (\u000D) into single line comment +flags: [negative] +---*/ // CHECK#1 eval("// single line \u000D comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.2_T2.js b/test/suite/ch07/7.3/S7.3_A3.2_T2.js index 9ffdc5cf9..d7c922aeb 100644 --- a/test/suite/ch07/7.3/S7.3_A3.2_T2.js +++ b/test/suite/ch07/7.3/S7.3_A3.2_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain CARRIAGE RETURN (U+000D) inside - * - * @path ch07/7.3/S7.3_A3.2_T2.js - * @description Insert CARRIAGE RETURN (\u000D) into begin of single line comment - * @negative - */ +/*--- +info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside +description: Insert CARRIAGE RETURN (\u000D) into begin of single line comment +flags: [negative] +---*/ // CHECK#1 eval("//\u000D single line comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.2_T3.js b/test/suite/ch07/7.3/S7.3_A3.2_T3.js index d16ee33be..1f4cf3bfc 100644 --- a/test/suite/ch07/7.3/S7.3_A3.2_T3.js +++ b/test/suite/ch07/7.3/S7.3_A3.2_T3.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain CARRIAGE RETURN (U+000D) inside - * - * @path ch07/7.3/S7.3_A3.2_T3.js - * @description Insert real CARRIAGE RETURN into single line comment - * @negative - */ +/*--- +info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside +description: Insert real CARRIAGE RETURN into single line comment +flags: [negative] +---*/ // CHECK#1 //single line comment - diff --git a/test/suite/ch07/7.3/S7.3_A3.3_T1.js b/test/suite/ch07/7.3/S7.3_A3.3_T1.js index ae926c456..76c6a0637 100644 --- a/test/suite/ch07/7.3/S7.3_A3.3_T1.js +++ b/test/suite/ch07/7.3/S7.3_A3.3_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain LINE SEPARATOR (U+2028) inside - * - * @path ch07/7.3/S7.3_A3.3_T1.js - * @description Insert LINE SEPARATOR (\u2028) into single line comment - * @negative - */ +/*--- +info: Single line comments can not contain LINE SEPARATOR (U+2028) inside +description: Insert LINE SEPARATOR (\u2028) into single line comment +flags: [negative] +---*/ // CHECK#1 eval("// single line \u2028 comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.3_T2.js b/test/suite/ch07/7.3/S7.3_A3.3_T2.js index 43ff45843..c3ec79f11 100644 --- a/test/suite/ch07/7.3/S7.3_A3.3_T2.js +++ b/test/suite/ch07/7.3/S7.3_A3.3_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain LINE SEPARATOR (U+2028) inside - * - * @path ch07/7.3/S7.3_A3.3_T2.js - * @description Insert LINE SEPARATOR (\u2028) into begin of single line comment - * @negative - */ +/*--- +info: Single line comments can not contain LINE SEPARATOR (U+2028) inside +description: Insert LINE SEPARATOR (\u2028) into begin of single line comment +flags: [negative] +---*/ // CHECK#1 eval("//\u2028 single line comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.4_T1.js b/test/suite/ch07/7.3/S7.3_A3.4_T1.js index 1a8fae53f..617d65aa6 100644 --- a/test/suite/ch07/7.3/S7.3_A3.4_T1.js +++ b/test/suite/ch07/7.3/S7.3_A3.4_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside - * - * @path ch07/7.3/S7.3_A3.4_T1.js - * @description Insert PARAGRAPH SEPARATOR (\u2029) into single line comment - * @negative - */ +/*--- +info: Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside +description: Insert PARAGRAPH SEPARATOR (\u2029) into single line comment +flags: [negative] +---*/ // CHECK#1 eval("// single line \u2029 comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A3.4_T2.js b/test/suite/ch07/7.3/S7.3_A3.4_T2.js index 8a6c59d8d..4eac8e87b 100644 --- a/test/suite/ch07/7.3/S7.3_A3.4_T2.js +++ b/test/suite/ch07/7.3/S7.3_A3.4_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside - * - * @path ch07/7.3/S7.3_A3.4_T2.js - * @description Insert PARAGRAPH SEPARATOR (\u2029) into begin of single line comment - * @negative - */ +/*--- +info: Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside +description: > + Insert PARAGRAPH SEPARATOR (\u2029) into begin of single line + comment +flags: [negative] +---*/ // CHECK#1 eval("//\u2029 single line comment"); - diff --git a/test/suite/ch07/7.3/S7.3_A4_T1.js b/test/suite/ch07/7.3/S7.3_A4_T1.js index df523f9a3..52b1a337b 100644 --- a/test/suite/ch07/7.3/S7.3_A4_T1.js +++ b/test/suite/ch07/7.3/S7.3_A4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can contain Line Terminator at the end of line - * - * @path ch07/7.3/S7.3_A4_T1.js - * @description Insert LINE FEED (U+000A) into the end of single line comment - */ +/*--- +info: Single line comments can contain Line Terminator at the end of line +description: Insert LINE FEED (U+000A) into the end of single line comment +---*/ // CHECK#1 eval("// single line comment\u000A"); @@ -17,4 +15,3 @@ eval("// single line comment\u000A x = 1;"); if (x !== 1) { $ERROR('#1: var x = 0; eval("// single line comment\\u000A x = 1;"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A4_T2.js b/test/suite/ch07/7.3/S7.3_A4_T2.js index d99dc7dc1..9081f4fc5 100644 --- a/test/suite/ch07/7.3/S7.3_A4_T2.js +++ b/test/suite/ch07/7.3/S7.3_A4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can contain Line Terminator at the end of line - * - * @path ch07/7.3/S7.3_A4_T2.js - * @description Insert CARRIAGE RETURN (U+000D) into the end of single line comment - */ +/*--- +info: Single line comments can contain Line Terminator at the end of line +description: Insert CARRIAGE RETURN (U+000D) into the end of single line comment +---*/ // CHECK#1 eval("// single line comment\u000D"); @@ -17,4 +15,3 @@ eval("// single line comment\u000D x = 1;"); if (x !== 1) { $ERROR('#1: var x = 0; eval("// single line comment\\u000D x = 1;"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A4_T3.js b/test/suite/ch07/7.3/S7.3_A4_T3.js index 5677bc0cd..f5f7bfe40 100644 --- a/test/suite/ch07/7.3/S7.3_A4_T3.js +++ b/test/suite/ch07/7.3/S7.3_A4_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can contain Line Terminator at the end of line - * - * @path ch07/7.3/S7.3_A4_T3.js - * @description Insert LINE SEPARATOR (U+2028) into the end of single line comment - */ +/*--- +info: Single line comments can contain Line Terminator at the end of line +description: Insert LINE SEPARATOR (U+2028) into the end of single line comment +---*/ // CHECK#1 eval("// single line comment\u2028"); @@ -17,4 +15,3 @@ eval("// single line comment\u2028 x = 1;"); if (x !== 1) { $ERROR('#1: var x = 0; eval("// single line comment\\u2028 x = 1;"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A4_T4.js b/test/suite/ch07/7.3/S7.3_A4_T4.js index c34f0e15e..f384be7e4 100644 --- a/test/suite/ch07/7.3/S7.3_A4_T4.js +++ b/test/suite/ch07/7.3/S7.3_A4_T4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Single line comments can contain Line Terminator at the end of line - * - * @path ch07/7.3/S7.3_A4_T4.js - * @description Insert PARAGRAPH SEPARATOR (U+2029) into the end of single line comment - */ +/*--- +info: Single line comments can contain Line Terminator at the end of line +description: > + Insert PARAGRAPH SEPARATOR (U+2029) into the end of single line + comment +---*/ // CHECK#1 eval("// single line comment\u2029"); @@ -17,4 +17,3 @@ eval("// single line comment\u2029 x = 1;"); if (x !== 1) { $ERROR('#1: var x = 0; eval("// single line comment\\u2029 x = 1;"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A5.1_T1.js b/test/suite/ch07/7.3/S7.3_A5.1_T1.js index fe8d7173e..3fd7dd416 100644 --- a/test/suite/ch07/7.3/S7.3_A5.1_T1.js +++ b/test/suite/ch07/7.3/S7.3_A5.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Multi line comment can contain LINE FEED (U+000A) - * - * @path ch07/7.3/S7.3_A5.1_T1.js - * @description Insert LINE FEED (U+000A) into multi line comment - */ +/*--- +info: Multi line comment can contain LINE FEED (U+000A) +description: Insert LINE FEED (U+000A) into multi line comment +---*/ // CHECK#1 eval("/*\u000A multi line \u000A comment \u000A*/"); @@ -17,4 +15,3 @@ eval("/*\u000A multi line \u000A comment \u000A x = 1;*/"); if (x !== 0) { $ERROR('#1: var x = 0; eval("/*\\u000A multi line \\u000A comment \\u000A x = 1;*/"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A5.1_T2.js b/test/suite/ch07/7.3/S7.3_A5.1_T2.js index 661df860e..3cc636647 100644 --- a/test/suite/ch07/7.3/S7.3_A5.1_T2.js +++ b/test/suite/ch07/7.3/S7.3_A5.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Multi line comment can contain LINE FEED (U+000A) - * - * @path ch07/7.3/S7.3_A5.1_T2.js - * @description Insert real LINE FEED into multi line comment - */ +/*--- +info: Multi line comment can contain LINE FEED (U+000A) +description: Insert real LINE FEED into multi line comment +---*/ /*CHECK#1*/ var x = 0; @@ -19,4 +17,3 @@ x = 1; if (x !== 0) { $ERROR('#1: var x = 0; /*\\nmulti\\nline\\ncomment\\nx = 1;\\n*/ x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A5.2_T1.js b/test/suite/ch07/7.3/S7.3_A5.2_T1.js index 20c5dd194..be0dc4681 100644 --- a/test/suite/ch07/7.3/S7.3_A5.2_T1.js +++ b/test/suite/ch07/7.3/S7.3_A5.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Multi line comment can contain CARRIAGE RETURN (U+000D) - * - * @path ch07/7.3/S7.3_A5.2_T1.js - * @description Insert CARRIAGE RETURN (U+000D) into multi line comment - */ +/*--- +info: Multi line comment can contain CARRIAGE RETURN (U+000D) +description: Insert CARRIAGE RETURN (U+000D) into multi line comment +---*/ // CHECK#1 eval("/*\u000D multi line \u000D comment \u000D*/"); @@ -17,4 +15,3 @@ eval("/*\u000D multi line \u000D comment \u000D x = 1;*/"); if (x !== 0) { $ERROR('#1: var x = 0; eval("/*\\u000D multi line \\u000D comment \\u000D x = 1;*/"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A5.2_T2.js b/test/suite/ch07/7.3/S7.3_A5.2_T2.js index a83a2be2d..6dd674169 100644 --- a/test/suite/ch07/7.3/S7.3_A5.2_T2.js +++ b/test/suite/ch07/7.3/S7.3_A5.2_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Multi line comment can contain CARRIAGE RETURN (U+000D) - * - * @path ch07/7.3/S7.3_A5.2_T2.js - * @description Insert real CARRIAGE RETURN into multi line comment - */ +/*--- +info: Multi line comment can contain CARRIAGE RETURN (U+000D) +description: Insert real CARRIAGE RETURN into multi line comment +---*/ /*CHECK#1*/ var x = 0; @@ -19,4 +17,3 @@ x = 1; if (x !== 0) { $ERROR('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A5.3.js b/test/suite/ch07/7.3/S7.3_A5.3.js index 501392bc0..fe33f06d6 100644 --- a/test/suite/ch07/7.3/S7.3_A5.3.js +++ b/test/suite/ch07/7.3/S7.3_A5.3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Multi line comment can contain LINE SEPARATOR (U+2028) - * - * @path ch07/7.3/S7.3_A5.3.js - * @description Insert LINE SEPARATOR (U+2028) into multi line comment - */ +/*--- +info: Multi line comment can contain LINE SEPARATOR (U+2028) +description: Insert LINE SEPARATOR (U+2028) into multi line comment +---*/ // CHECK#1 eval("/*\u2028 multi line \u2028 comment \u2028*/"); @@ -17,4 +15,3 @@ eval("/*\u2028 multi line \u2028 comment \u2028 x = 1;*/"); if (x !== 0) { $ERROR('#1: var x = 0; eval("/*\\u2028 multi line \\u2028 comment \\u2028 x = 1;*/"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A5.4.js b/test/suite/ch07/7.3/S7.3_A5.4.js index 8f8597477..b793e5e46 100644 --- a/test/suite/ch07/7.3/S7.3_A5.4.js +++ b/test/suite/ch07/7.3/S7.3_A5.4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Multi line comment can contain LINE SEPARATOR (U+2029) - * - * @path ch07/7.3/S7.3_A5.4.js - * @description Insert PARAGRAPH SEPARATOR (U+2029) into multi line comment - */ +/*--- +info: Multi line comment can contain LINE SEPARATOR (U+2029) +description: Insert PARAGRAPH SEPARATOR (U+2029) into multi line comment +---*/ // CHECK#1 eval("/*\u2029 multi line \u2029 comment \u2029*/"); @@ -17,4 +15,3 @@ eval("/*\u2029 multi line \u2029 comment \u2029 x = 1;*/"); if (x !== 0) { $ERROR('#1: var x = 0; eval("/*\\u2029 multi line \\u2029 comment \\u2029 x = 1;*/"); x === 0. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A6_T1.js b/test/suite/ch07/7.3/S7.3_A6_T1.js index 89b3751f6..85c2c8ce1 100644 --- a/test/suite/ch07/7.3/S7.3_A6_T1.js +++ b/test/suite/ch07/7.3/S7.3_A6_T1.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. -/** - * Line Terminator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits - * - * @path ch07/7.3/S7.3_A6_T1.js - * @description Insert LINE FEED (U+000A) in var x - * @negative - */ +/*--- +info: > + Line Terminator cannot be expressed as a Unicode escape sequence + consisting of six characters, namely \u plus four hexadecimal digits +description: Insert LINE FEED (U+000A) in var x +flags: [negative] +---*/ var\u000Ax; - diff --git a/test/suite/ch07/7.3/S7.3_A6_T2.js b/test/suite/ch07/7.3/S7.3_A6_T2.js index 3dc52d206..31e5082a5 100644 --- a/test/suite/ch07/7.3/S7.3_A6_T2.js +++ b/test/suite/ch07/7.3/S7.3_A6_T2.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. -/** - * Line Terminator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits - * - * @path ch07/7.3/S7.3_A6_T2.js - * @description Insert CARRIAGE RETURN (U+000D) in var x - * @negative - */ +/*--- +info: > + Line Terminator cannot be expressed as a Unicode escape sequence + consisting of six characters, namely \u plus four hexadecimal digits +description: Insert CARRIAGE RETURN (U+000D) in var x +flags: [negative] +---*/ var\u000Dx; - diff --git a/test/suite/ch07/7.3/S7.3_A6_T3.js b/test/suite/ch07/7.3/S7.3_A6_T3.js index 62d6ef10f..f8046aea9 100644 --- a/test/suite/ch07/7.3/S7.3_A6_T3.js +++ b/test/suite/ch07/7.3/S7.3_A6_T3.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. -/** - * Line Terminator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits - * - * @path ch07/7.3/S7.3_A6_T3.js - * @description Insert LINE SEPARATOR (U+2028) in var x - * @negative - */ +/*--- +info: > + Line Terminator cannot be expressed as a Unicode escape sequence + consisting of six characters, namely \u plus four hexadecimal digits +description: Insert LINE SEPARATOR (U+2028) in var x +flags: [negative] +---*/ var\u2028x; - diff --git a/test/suite/ch07/7.3/S7.3_A6_T4.js b/test/suite/ch07/7.3/S7.3_A6_T4.js index cd5d2d40a..e0be43aa4 100644 --- a/test/suite/ch07/7.3/S7.3_A6_T4.js +++ b/test/suite/ch07/7.3/S7.3_A6_T4.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. -/** - * Line Terminator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits - * - * @path ch07/7.3/S7.3_A6_T4.js - * @description Insert PARAGRAPH SEPARATOR (U+2029) in var x - * @negative - */ +/*--- +info: > + Line Terminator cannot be expressed as a Unicode escape sequence + consisting of six characters, namely \u plus four hexadecimal digits +description: Insert PARAGRAPH SEPARATOR (U+2029) in var x +flags: [negative] +---*/ var\u2029x; - diff --git a/test/suite/ch07/7.3/S7.3_A7_T1.js b/test/suite/ch07/7.3/S7.3_A7_T1.js index 861b737e4..600cd16d7 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T1.js +++ b/test/suite/ch07/7.3/S7.3_A7_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T1.js - * @description Insert Line Terminator in var x=y+z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y+z +---*/ // CHECK#1 var y=2; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029+\u2029z\u2029"); if (x !== 5) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029+\\u2029z\\u2029"); x === 5. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T2.js b/test/suite/ch07/7.3/S7.3_A7_T2.js index cdc5801c9..9cc232786 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T2.js +++ b/test/suite/ch07/7.3/S7.3_A7_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T2.js - * @description Insert Line Terminator in var x=y-z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y-z +---*/ // CHECK#1 var y=3; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029-\u2029z\u2029"); if (x !== 1) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029-\\u2029z\\u2029"); x === 1. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T3.js b/test/suite/ch07/7.3/S7.3_A7_T3.js index 1c83956da..74f2c0c51 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T3.js +++ b/test/suite/ch07/7.3/S7.3_A7_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T3.js - * @description Insert Line Terminator in var x=y*z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y*z +---*/ // CHECK#1 var y=3; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029*\u2029z\u2029"); if (x !== 6) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029*\\u2029z\\u2029"); x === 6. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T4.js b/test/suite/ch07/7.3/S7.3_A7_T4.js index fad60b4cb..7e81a7efe 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T4.js +++ b/test/suite/ch07/7.3/S7.3_A7_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T4.js - * @description Insert Line Terminator in var x=y/z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y/z +---*/ // CHECK#1 var y=12; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029/\u2029z\u2029"); if (x !== 6) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029/\\u2029z\\u2029"); x === 6. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T5.js b/test/suite/ch07/7.3/S7.3_A7_T5.js index f7aff0122..7b6540ad8 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T5.js +++ b/test/suite/ch07/7.3/S7.3_A7_T5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T5.js - * @description Insert Line Terminator in var x=y%z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y%z +---*/ // CHECK#1 var y=16; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029%\u2029z\u2029"); if (x !== 6) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029%\\u2029z\\u2029"); x === 6. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T6.js b/test/suite/ch07/7.3/S7.3_A7_T6.js index 9dc8c0141..58f647e3a 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T6.js +++ b/test/suite/ch07/7.3/S7.3_A7_T6.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T6.js - * @description Insert Line Terminator in var x=y>>z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y>>z +---*/ // CHECK#1 var y=16; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029>>\u2029z\u2029"); if (x !== 2) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029>>\\u2029z\\u2029"); x === 2. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T7.js b/test/suite/ch07/7.3/S7.3_A7_T7.js index 510b958c4..7432fdbdb 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T7.js +++ b/test/suite/ch07/7.3/S7.3_A7_T7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T7.js - * @description Insert Line Terminator in var x=y<<z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y<<z +---*/ // CHECK#1 var y=2; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029<<\u2029z\u2029"); if (x !== 16) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029<<\\u2029z\\u2029"); x === 16. Actual: ' + (x)); } - diff --git a/test/suite/ch07/7.3/S7.3_A7_T8.js b/test/suite/ch07/7.3/S7.3_A7_T8.js index 1b55b96ce..fd2cce1cf 100644 --- a/test/suite/ch07/7.3/S7.3_A7_T8.js +++ b/test/suite/ch07/7.3/S7.3_A7_T8.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Line Terminators between operators are allowed - * - * @path ch07/7.3/S7.3_A7_T8.js - * @description Insert Line Terminator in var x=y<z - */ +/*--- +info: Line Terminators between operators are allowed +description: Insert Line Terminator in var x=y<z +---*/ // CHECK#1 var y=2; @@ -54,4 +52,3 @@ eval("\u2029var\u2029x\u2029=\u2029y\u2029<\u2029z\u2029"); if (x !== true) { $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029<\\u2029z\\u2029"); x === true. Actual: ' + (x)); } - |