diff --git a/test/language/line-terminators/7.3-1.js b/test/language/line-terminators/7.3-1.js deleted file mode 100644 index 40c575c4f4405c2289ea3479e099d0ae38912cf8..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/7.3-1.js +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.3-1 -description: > - 7.3 - ES5 recognizes the character <LS> (\u2028) as line - terminators when parsing statements ----*/ - - var test7_3_1, prop; - eval("test7_3_1\u2028prop = 66;"); - -assert.sameValue(prop, 66, 'prop'); -assert.sameValue((typeof test7_3_1), "undefined", '(typeof test7_3_1)'); diff --git a/test/language/line-terminators/7.3-10.js b/test/language/line-terminators/7.3-10.js deleted file mode 100644 index 91ed519db9640d71f8928e9a8db361be7fff8aec..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/7.3-10.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.3-10 -description: > - 7.3 - ES5 recognizes the character <PS> (\u2029) as a - NonEscapeCharacter ----*/ - - -assert.throws(SyntaxError, function() { - eval("var prop = \\u2029;"); -}); diff --git a/test/language/line-terminators/7.3-2.js b/test/language/line-terminators/7.3-2.js deleted file mode 100644 index 5373947ae018498574272d71dd601a8de24bf0b2..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/7.3-2.js +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.3-2 -description: > - 7.3 - ES5 recognizes the character <PS> (\u2029) as line - terminators when parsing statements ----*/ - - var test7_3_2, prop; - eval("test7_3_2\u2029prop = 66;"); - -assert.sameValue(prop, 66, 'prop'); -assert.sameValue((typeof test7_3_2), "undefined", '(typeof test7_3_2)'); diff --git a/test/language/line-terminators/7.3-3.js b/test/language/line-terminators/7.3-3.js deleted file mode 100644 index 1e176b858053cb2f9869e22bfe9e8bfc6bb69aa5..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/7.3-3.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.3-3 -description: > - 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating - SingleLineComments ----*/ - - -assert.throws(SyntaxError, function() { - eval("//Single Line Comments\u2028 var =;"); -}); diff --git a/test/language/line-terminators/7.3-4.js b/test/language/line-terminators/7.3-4.js deleted file mode 100644 index b882828e563b1b9ebaea0d90c9189bde4fa576f1..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/7.3-4.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.3-4 -description: > - 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating - SingleLineComments ----*/ - - -assert.throws(SyntaxError, function() { - eval("//Single Line Comments\u2029 var =;"); -}); diff --git a/test/language/line-terminators/7.3-9.js b/test/language/line-terminators/7.3-9.js deleted file mode 100644 index 55645b1fe2bd98366a507476009756540a4898fc..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/7.3-9.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.3-9 -description: > - 7.3 - ES5 recognizes the character <LS> (\u2028) as a - NonEscapeCharacter ----*/ - - -assert.throws(SyntaxError, function() { - eval("var prop = \\u2028;"); -}); diff --git a/test/language/line-terminators/S7.3_A1.1_T1.js b/test/language/line-terminators/S7.3_A1.1_T1.js deleted file mode 100644 index fab57101fc2eee449df80995851f284e70141799..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A1.1_T1.js +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: LINE FEED (U+000A) may occur between any two tokens -es5id: 7.3_A1.1_T1 -description: Insert LINE FEED (\u000A and \n) between tokens of var x=1 ----*/ - -var result; - -// CHECK#1 -eval("\u000Avar\u000Ax\u000A=\u000A1\u000A; result = x;"); -if (result !== 1) { - $ERROR('#1: eval("\\u000Avar\\u000Ax\\u000A=\\u000A1\\u000A; result = x;"); result === 1. Actual: ' + (result)); -} - -//CHECK#2 -eval("\u000A" + "var" + "\u000A" + "x" + "\u000A" + "=" + "\u000A" + "2" + "\u000A; result = x;"); -if (result !== 2) { - $ERROR('#2: eval("\\u000A" + "var" + "\\u000A" + "x" + "\\u000A" + "=" + "\\u000A" + "2" + "\\u000A; result = x;"); result === 2. Actual: ' + (result)); -} - -//CHECK#3 -eval("\nvar\nx\n=\n3\n; result = x;"); -if (result !== 3) { - $ERROR('#3: eval("\\nvar\\nx\\n=\\n3\\n; result = x;"); result === 3. Actual: ' + (result)); -} - -//CHECK#4 -eval("\n" + "var" + "\n" + "x" + "\n" + "=" + "\n" + "4" + "\n; result = x;"); -if (result !== 4) { - $ERROR('#4: eval("\\n" + "var" + "\\n" + "x" + "\\n" + "=" + "\\n" + "4" + "\\n; result = x;"); result === 4. Actual: ' + (result)); -} - -//CHECK#5 -eval("\u000A" + "var" + "\n" + "x" + "\u000A" + "=" + "\n" + "5" + "\u000A; result = x;"); -if (result !== 5) { - $ERROR('#5: eval("\\u000A" + "var" + "\\n" + "x" + "\\u000A" + "=" + "\\n" + "5" + "\\u000A; result = x;"); result === 5. Actual: ' + (result)); -} diff --git a/test/language/line-terminators/S7.3_A1.2_T1.js b/test/language/line-terminators/S7.3_A1.2_T1.js deleted file mode 100644 index 7d47f91d2a0b93bee31dea10afef1e61d3c65bfb..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A1.2_T1.js +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: CARRIAGE RETURN (U+000D) may occur between any two tokens -es5id: 7.3_A1.2_T1 -description: Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1 ----*/ - -var result; - -// CHECK#1 -eval("\u000Dvar\u000Dx\u000D=\u000D1\u000D; result = x;"); -if (result !== 1) { - $ERROR('#1: eval("\\u000Dvar\\u000Dx\\u000D=\\u000D1\\u000D"); result === 1. Actual: ' + (result)); -} - -//CHECK#2 -eval("\u000D" + "var" + "\u000D" + "x" + "\u000D" + "=" + "\u000D" + "2" + "\u000D; result = x;"); -if (result !== 2) { - $ERROR('#2: eval("\\u000D" + "var" + "\\u000D" + "x" + "\\u000D" + "=" + "\\u000D" + "2" + "\\u000D"); result === 2. Actual: ' + (result)); -} - -//CHECK#3 -eval("\rvar\rx\r=\r3\r; result = x;"); -if (result !== 3) { - $ERROR('#3: eval("\\rvar\\rx\\r=\\r3\\r"); result === 3. Actual: ' + (result)); -} - -//CHECK#4 -eval("\r" + "var" + "\r" + "x" + "\r" + "=" + "\r" + "4" + "\r; result = x;"); -if (result !== 4) { - $ERROR('#4: eval("\\r" + "var" + "\\r" + "x" + "\\r" + "=" + "\\r" + "4" + "\\r"); result === 4. Actual: ' + (result)); -} - -//CHECK#5 -eval("\u000D" + "var" + "\r" + "x" + "\u000D" + "=" + "\r" + "5" + "\u000D; result = x;"); -if (result !== 5) { - $ERROR('#5: eval("\\u000D" + "var" + "\\r" + "x" + "\\u000D" + "=" + "\\r" + "5" + "\\u000D"); result === 5. Actual: ' + (result)); -} diff --git a/test/language/line-terminators/S7.3_A3.1_T2.js b/test/language/line-terminators/S7.3_A3.1_T2.js deleted file mode 100644 index 2b37ae5146394d8a090e8e4176d78a5da7822333..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A3.1_T2.js +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Single line comments can not contain LINE FEED (U+000A) inside -es5id: 7.3_A3.1_T2 -description: Insert LINE FEED (\u000A) into begin of single line comment ----*/ - -assert.throws(SyntaxError, function() { - eval("//\u000A single line comment"); -}); diff --git a/test/language/line-terminators/S7.3_A3.2_T3.js b/test/language/line-terminators/S7.3_A3.2_T3.js deleted file mode 100644 index 14c6c29bb63083308ca29840a4c94b73711973e4..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A3.2_T3.js +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside -es5id: 7.3_A3.2_T3 -description: Insert real CARRIAGE RETURN into single line comment -negative: - phase: parse - type: SyntaxError ----*/ - -$DONOTEVALUATE(); - -// CHECK#1 -//single -line comment diff --git a/test/language/line-terminators/S7.3_A3.3_T2.js b/test/language/line-terminators/S7.3_A3.3_T2.js deleted file mode 100644 index fd825222018038b3b26dbdc81f1cfb240d8d86fd..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A3.3_T2.js +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Single line comments can not contain LINE SEPARATOR (U+2028) inside -es5id: 7.3_A3.3_T2 -description: Insert LINE SEPARATOR (\u2028) into begin of single line comment ----*/ - -assert.throws(SyntaxError, function() { - eval("//\u2028 single line comment"); -}); diff --git a/test/language/line-terminators/S7.3_A3.4_T2.js b/test/language/line-terminators/S7.3_A3.4_T2.js deleted file mode 100644 index 953b894a02d70a09513704a4b228fdd4f7f02e45..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A3.4_T2.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside -es5id: 7.3_A3.4_T2 -description: > - Insert PARAGRAPH SEPARATOR (\u2029) into begin of single line - comment ----*/ - -assert.throws(SyntaxError, function() { - eval("//\u2029 single line comment"); -}); diff --git a/test/language/line-terminators/S7.3_A4_T1.js b/test/language/line-terminators/S7.3_A4_T1.js deleted file mode 100644 index 5f4de83a2912334e2643dfd58fe57082bace8758..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A4_T1.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Single line comments can contain Line Terminator at the end of line -es5id: 7.3_A4_T1 -description: Insert LINE FEED (U+000A) into the end of single line comment ----*/ - -// CHECK#1 -eval("// single line comment\u000A"); - -// CHECK#2 -var x = 0; -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/language/line-terminators/S7.3_A5.1_T1.js b/test/language/line-terminators/S7.3_A5.1_T1.js deleted file mode 100644 index 95cfa678a2477a2a68a40b57087fc6e21cff6573..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A5.1_T1.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Multi line comment can contain LINE FEED (U+000A) -es5id: 7.3_A5.1_T1 -description: Insert LINE FEED (U+000A) into multi line comment ----*/ - -// CHECK#1 -eval("/*\u000A multi line \u000A comment \u000A*/"); - -//CHECK#2 -var x = 0; -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/language/line-terminators/S7.3_A5.2_T1.js b/test/language/line-terminators/S7.3_A5.2_T1.js deleted file mode 100644 index cb92ec1ccff6ad66cbc5ee8106ebfa3de0d083e0..0000000000000000000000000000000000000000 --- a/test/language/line-terminators/S7.3_A5.2_T1.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Multi line comment can contain CARRIAGE RETURN (U+000D) -es5id: 7.3_A5.2_T1 -description: Insert CARRIAGE RETURN (U+000D) into multi line comment ----*/ - -// CHECK#1 -eval("/*\u000D multi line \u000D comment \u000D*/"); - -//CHECK#2 -var x = 0; -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)); -}