diff options
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space')
45 files changed, 838 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T1.js new file mode 100644 index 000000000..4c43c3a94 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T1.js @@ -0,0 +1,39 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.1_T1; + * @section: 7.2, 7.5; + * @assertion: HORIZONTAL TAB (U+0009) between any two tokens is allowed; + * @description: Insert HORIZONTAL TAB(\u0009 and \t) between tokens of var x=1; +*/ + +// CHECK#1 +eval("\u0009var\u0009x\u0009=\u00091\u0009"); +if (x !== 1) { + $ERROR('#1: eval("\\u0009var\\u0009x\\u0009=\\u00091\\u0009"); x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval("\u0009" + "var" + "\u0009" + "x" + "\u0009" + "=" + "\u0009" + "1" + "\u0009"); +if (x !== 1) { + $ERROR('#2: eval("\\u0009" + "var" + "\\u0009" + "x" + "\\u0009" + "=" + "\\u0009" + "1" + "\\u0009"); x === 1. Actual: ' + (x)); +} + +//CHECK#3 +eval("\tvar\tx\t=\t1\t"); +if (x !== 1) { + $ERROR('#3: eval("\\tvar\\tx\\t=\\t1\\t"); x === 1. Actual: ' + (x)); +} + +//CHECK#4 +eval("\t" + "var" + "\t" + "x" + "\t" + "=" + "\t" + "1" + "\t"); +if (x !== 1) { + $ERROR('#4: eval("\\t" + "var" + "\\t" + "x" + "\\t" + "=" + "\\t" + "1" + "\\t"); x === 1. Actual: ' + (x)); +} + +//CHECK#5 +eval("\u0009" + "var" + "\t" + "x" + "\u0009" + "=" + "\t" + "1" + "\u0009"); +if (x !== 1) { + $ERROR('#5: eval("\\u0009" + "var" + "\\t" + "x" + "\\u0009" + "=" + "\\t" + "1" + "\\u0009"); x === 1. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T2.js new file mode 100644 index 000000000..97edbae91 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.1_T2; + * @section: 7.2, 7.5; + * @assertion: HORIZONTAL TAB (U+0009) between any two tokens is allowed; + * @description: Insert real HORIZONTAL TAB between tokens of var x=1; +*/ + +//CHECK#1 + var x = 1 ; +if (x !== 1) { + $ERROR('#1: var x = 1 ; x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval(" var\tx =\t2 "); +if (x !== 2) { + $ERROR('#2: var\\tx =\\t1 ; x === 2. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T1.js new file mode 100644 index 000000000..1a106dba9 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T1.js @@ -0,0 +1,39 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.2_T1; + * @section: 7.2, 7.5; + * @assertion: VERTICAL TAB (U+000B) between any two tokens is allowed; + * @description: Insert VERTICAL TAB(\u000B and \v) between tokens of var x=1; +*/ + +// CHECK#1 +eval("\u000Bvar\u000Bx\u000B=\u000B1\u000B"); +if (x !== 1) { + $ERROR('#1: eval("\\u000Bvar\\u000Bx\\u000B=\\u000B1\\u000B"); x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval("\u000B" + "var" + "\u000B" + "x" + "\u000B" + "=" + "\u000B" + "1" + "\u000B"); +if (x !== 1) { + $ERROR('#2: eval("\\u000B" + "var" + "\\u000B" + "x" + "\\u000B" + "=" + "\\u000B" + "1" + "\\u000B"); x === 1. Actual: ' + (x)); +} + +//CHECK#3 +eval("\vvar\vx\v=\v1\v"); +if (x !== 1) { + $ERROR('#3: eval("\\vvar\\vx\\v=\\v1\\v"); x === 1. Actual: ' + (x)); +} + +//CHECK#4 +eval("\v" + "var" + "\v" + "x" + "\v" + "=" + "\v" + "1" + "\v"); +if (x !== 1) { + $ERROR('#4: eval("\\v" + "var" + "\\v" + "x" + "\\v" + "=" + "\\v" + "1" + "\\v"); x === 1. Actual: ' + (x)); +} + +//CHECK#5 +eval("\u000B" + "var" + "\v" + "x" + "\u000B" + "=" + "\v" + "1" + "\u000B"); +if (x !== 1) { + $ERROR('#5: eval("\\u000B" + "var" + "\\v" + "x" + "\\u000B" + "=" + "\\v" + "1" + "\\u000B"); x === 1. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T2.js new file mode 100644 index 000000000..782139c9b --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T2.js @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.2_T2; + * @section: 7.2, 7.5; + * @assertion: VERTICAL TAB (U+000B) between any two tokens is allowed; + * @description: Insert real VERTICAL TAB between tokens of var x=1; +*/ + +//CHECK#1 +varx=1; +if (x !== 1) { + $ERROR('#1: varx=1; x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval("var\vx=\v1"); +if (x !== 1) { + $ERROR('#2: var\\vx=\\v1; x === 1. Actual: ' + (x)); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T1.js new file mode 100644 index 000000000..397bb642b --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T1.js @@ -0,0 +1,39 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.3_T1; + * @section: 7.2, 7.5; + * @assertion: FORM FEED (U+000C) between any two tokens is allowed; + * @description: Insert FORM FEED(\u000C and \f) between tokens of var x=1; +*/ + +// CHECK#1 +eval("\u000Cvar\u000Cx\u000C=\u000C1\u000C"); +if (x !== 1) { + $ERROR('#1: eval("\\u000Cvar\\u000Cx\\u000C=\\u000C1\\u000C"); x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval("\u000C" + "var" + "\u000C" + "x" + "\u000C" + "=" + "\u000C" + "1" + "\u000C"); +if (x !== 1) { + $ERROR('#2: eval("\\u000C" + "var" + "\\u000C" + "x" + "\\u000C" + "=" + "\\u000C" + "1" + "\\u000C"); x === 1. Actual: ' + (x)); +} + +//CHECK#3 +eval("\fvar\fx\f=\f1\f"); +if (x !== 1) { + $ERROR('#3: eval("\\fvar\\fx\\f=\\f1\\f"); x === 1. Actual: ' + (x)); +} + +//CHECK#4 +eval("\f" + "var" + "\f" + "x" + "\f" + "=" + "\f" + "1" + "\f"); +if (x !== 1) { + $ERROR('#4: eval("\\f" + "var" + "\\f" + "x" + "\\f" + "=" + "\\f" + "1" + "\\f"); x === 1. Actual: ' + (x)); +} + +//CHECK#5 +eval("\u000C" + "var" + "\f" + "x" + "\u000C" + "=" + "\f" + "1" + "\u000C"); +if (x !== 1) { + $ERROR('#5: eval("\\u000C" + "var" + "\\f" + "x" + "\\u000C" + "=" + "\\f" + "1" + "\\u000C"); x === 1. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T2.js new file mode 100644 index 000000000..bd474155a --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T2.js @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.3_T2; + * @section: 7.2, 7.5; + * @assertion: FORM FEED (U+000C) between any two tokens is allowed; + * @description: Insert real FORM FEED between tokens of var x=1; +*/ + +//CHECK#1 +varx=1; +if (x !== 1) { + $ERROR('#1: varx=1; x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval("var\fx=\f1"); +if (x !== 1) { + $ERROR('#2: var\\fx=\\f1; x === 1. Actual: ' + (x)); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T1.js new file mode 100644 index 000000000..bf89d59fc --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T1.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.4_T1; + * @section: 7.2, 7.5; + * @assertion: SPACE (U+0020) between any two tokens is allowed; + * @description: Insert SPACE(\u0020) between tokens of var x=1; +*/ + +// CHECK#1 +eval("\u0020var\u0020x\u0020=\u00201\u0020"); +if (x !== 1) { + $ERROR('#1: eval("\\u0020var\\u0020x\\u0020=\\u00201\\u0020"); x === 1;'); +} + +//CHECK#2 +eval("\u0020" + "var" + "\u0020" + "x" + "\u0020" + "=" + "\u0020" + "1" + "\u0020"); +if (x !== 1) { + $ERROR('#2: eval("\\u0020" + "var" + "\\u0020" + "x" + "\\u0020" + "=" + "\\u0020" + "1" + "\\u0020"); x === 1. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T2.js new file mode 100644 index 000000000..dd9e4fdae --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T2.js @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.4_T2; + * @section: 7.2, 7.5; + * @assertion: SPACE (U+0020) between any two tokens is allowed; + * @description: Insert real SPACE between tokens of var x=1; +*/ + +//CHECK#1 +eval("\u0020var x\u0020= 1\u0020"); +if (x !== 1) { + $ERROR('#1: eval("\\u0020var x\\u0020= 1\\u0020"); x === 1. Actual: ' + (x)); +} + +//CHECK#2 + var x = 1 ; +if (x !== 1) { + $ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x)); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T1.js new file mode 100644 index 000000000..ecc1a7612 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T1.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.5_T1; + * @section: 7.2, 7.5; + * @assertion: NO-BREAK SPACE (U+00A0) between any two tokens is allowed; + * @description: Insert NO-BREAK SPACE(\u00A0) between tokens of var x=1; +*/ + +// CHECK#1 +eval("\u00A0var\u00A0x\u00A0=\u00A01\u00A0"); +if (x !== 1) { + $ERROR('#1: eval("\\u00A0var\\u00A0x\\u00A0=\\u00A01\\u00A0"); x === 1. Actual: ' + (x)); +} + +//CHECK#2 +eval("\u00A0" + "var" + "\u00A0" + "x" + "\u00A0" + "=" + "\u00A0" + "1" + "\u00A0"); +if (x !== 1) { + $ERROR('#2: eval("\\u00A0" + "var" + "\\u00A0" + "x" + "\\u00A0" + "=" + "\\u00A0" + "1" + "\\u00A0"); x === 1. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T2.js new file mode 100644 index 000000000..e14741e38 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T2.js @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A1.5_T2; + * @section: 7.2, 7.5; + * @assertion: NO-BREAK SPACE (U+00A0) between any two tokens is allowed; + * @description: Insert real NO-BREAK SPACE between tokens of var x=1; +*/ + +//CHECK#1 +eval("\u00A0var x\u00A0= 1\u00A0"); +if (x !== 1) { + $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); +} + +//CHECK#2 + var x = 1 ; +if (x !== 1) { + $ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x)); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T1.js new file mode 100644 index 000000000..77f823469 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.1_T1; + * @section: 7.2, 7.8.4; + * @assertion: HORIZONTAL TAB (U+0009) may occur within strings; + * @description: Use HORIZONTAL TAB(\u0009 and \t); +*/ + +// CHECK#1 +if (eval("'\u0009str\u0009ing\u0009'") !== "\u0009str\u0009ing\u0009") { + $ERROR('#1: eval("\'\\u0009str\\u0009ing\\u0009\'") === "\\u0009str\\u0009ing\\u0009"'); +} + +//CHECK#2 +if (eval("'\tstr\ting\t'") !== "\tstr\ting\t") { + $ERROR('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T2.js new file mode 100644 index 000000000..1d21a6a8a --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.1_T2; + * @section: 7.2, 7.8.4; + * @assertion: HORIZONTAL TAB (U+0009) may occur within strings; + * @description: Use real HORIZONTAL TAB; +*/ + +//CHECK#1 +if (" str ing " !== "\u0009str\u0009ing\u0009") { + $ERROR('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T1.js new file mode 100644 index 000000000..a304f5c50 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.2_T1; + * @section: 7.2, 7.8.4; + * @assertion: VERTICAL TAB (U+000B) may occur within strings; + * @description: Use VERTICAL TAB(\u000B and \v); +*/ + +// CHECK#1 +if (eval("'\u000Bstr\u000Bing\u000B'") !== "\u000Bstr\u000Bing\u000B") { + $ERROR('#1: eval("\'\\u000Bstr\\u000Bing\\u000B\'") === "\\u000Bstr\\u000Bing\\u000B"'); +} + +//CHECK#2 +if (eval("'\vstr\ving\v'") !== "\vstr\ving\v") { + $ERROR('#2: eval("\'\\vstr\\ving\\v\'") === "\\vstr\\ving\\v"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T2.js new file mode 100644 index 000000000..02602eab5 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.2_T2; + * @section: 7.2, 7.8.4; + * @assertion: VERTICAL TAB (U+000B) may occur within strings; + * @description: Use real VERTICAL TAB; +*/ + +//CHECK#1 +if ("string" !== "\u000Bstr\u000Bing\u000B") { + $ERROR('#1: "string" === "\\u000Bstr\\u000Bing\\u000B"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T1.js new file mode 100644 index 000000000..f641cbb26 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.3_T1; + * @section: 7.2, 7.8.4; + * @assertion: FORM FEED (U+000C) may occur within strings; + * @description: Use FORM FEED(\u000C and \f); +*/ + +// CHECK#1 +if (eval("'\u000Cstr\u000Cing\u000C'") !== "\u000Cstr\u000Cing\u000C") { + $ERROR('#1: eval("\'\\u000Cstr\\u000Cing\\u000C\'") === "\\u000Cstr\\u000Cing\\u000C"'); +} + +//CHECK#2 +if (eval("'\fstr\fing\f'") !== "\fstr\fing\f") { + $ERROR('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T2.js new file mode 100644 index 000000000..f42bfcc96 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.3_T2; + * @section: 7.2, 7.8.4; + * @assertion: FORM FEED (U+000C) may occur within strings; + * @description: Use real FORM FEED; +*/ + +//CHECK#1 +if ("string" !== "\u000Cstr\u000Cing\u000C") { + $ERROR('#1: "string" === "\\u000Cstr\\u000Cing\\u000C"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T1.js new file mode 100644 index 000000000..91c0bbcc6 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.4_T1; + * @section: 7.2, 7.8.4; + * @assertion: SPACE (U+0020) may occur within strings; + * @description: Use SPACE(\u0020); +*/ + +// CHECK#1 +if (eval("'\u0020str\u0020ing\u0020'") !== "\u0020str\u0020ing\u0020") { + $ERROR('#1: eval("\'\\u0020str\\u0020ing\\u0020\'") === "\\u0020str\\u0020ing\\u0020"'); +} + +//CHECK#2 +if (eval("' str ing '") !== " str ing ") { + $ERROR('#2: eval("\' str ing \'") === " str ing "'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T2.js new file mode 100644 index 000000000..f64685a91 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.4_T2; + * @section: 7.2, 7.8.4; + * @assertion: SPACE (U+0020) may occur within strings; + * @description: Use real SPACE; +*/ + +//CHECK#1 +if (" str ing " !== "\u0020str\u0020ing\u0020") { + $ERROR('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T1.js new file mode 100644 index 000000000..57eaec8e2 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.5_T1; + * @section: 7.2, 7.8.4; + * @assertion: NO-BREAK SPACE (U+00A0) may occur within strings; + * @description: Use NO-BREAK SPACE(\u00A0); +*/ + +// CHECK#1 +if (eval("'\u00A0str\u00A0ing\u00A0'") !== "\u00A0str\u00A0ing\u00A0") { + $ERROR('#1: eval("\'\\u00A0str\\u00A0ing\\u00A0\'") === "\\u00A0str\\u00A0ing\\u00A0"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T2.js new file mode 100644 index 000000000..42bf7644d --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A2.5_T2; + * @section: 7.2, 7.8.4; + * @assertion: NO-BREAK SPACE (U+00A0) may occur within strings; + * @description: Use real NO-BREAK SPACE; +*/ + +//CHECK#1 +if (" str ing " !== "\u00A0str\u00A0ing\u00A0") { + $ERROR('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T1.js new file mode 100644 index 000000000..f579c57f7 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.1_T1; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain HORIZONTAL TAB (U+0009); + * @description: Use HORIZONTAL TAB(\u0009); + */ + +// CHECK#1 +eval("//\u0009 single line \u0009 comment \u0009"); + +//CHECK#2 +var x = 0; +eval("//\u0009 single line \u0009 comment \u0009 x = 1;"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("//\\u0009 single line \\u0009 comment \\u0009 x = 1;"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T2.js new file mode 100644 index 000000000..2535b5f5c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.1_T2; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain HORIZONTAL TAB (U+0009); + * @description: Use real HORIZONTAL TAB; + */ + +//CHECK#1 +var x = 0; +// single line comment x = 1; +if (x !== 0) { + $ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T1.js new file mode 100644 index 000000000..593f8803c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.2_T1; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain VERTICAL TAB (U+000B); + * @description: Use VERTICAL TAB(\u000B); + */ + +// CHECK#1 +eval("//\u000B single line \u000B comment \u000B"); + +//CHECK#2 +var x = 0; +eval("//\u000B single line \u000B comment \u000B x = 1;"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("//\\u000B single line \\u000B comment \\u000B x = 1;"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T2.js new file mode 100644 index 000000000..a2649d2d9 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.2_T2; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain VERTICAL TAB (U+000B); + * @description: Use real VERTICAL TAB; + */ + +//CHECK#1 +var x = 0; +//singlelinecommentx = 1; +if (x !== 0) { + $ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T1.js new file mode 100644 index 000000000..7c0fd2862 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.3_T1; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain FORM FEED (U+000C); + * @description: Use FORM FEED(\u000C); + */ + +// CHECK#1 +eval("//\u000C single line \u000C comment \u000C"); + +//CHECK#2 +var x = 0; +eval("//\u000C single line \u000C comment \u000C x = 1;"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("//\\u000C single line \\u000C comment \\u000C x = 1;"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T2.js new file mode 100644 index 000000000..7bc2c757c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.3_T2; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain FORM FEED (U+000C); + * @description: Use real FORM FEED; + */ + +//CHECK#1 +var x = 0; +//singlelinecommentx = 1; +if (x !== 0) { + $ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T1.js new file mode 100644 index 000000000..68223e118 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.4_T1; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain SPACE (U+0020); + * @description: Use SPACE(\u0020); + */ + +// CHECK#1 +eval("//\u0020 single line \u0020 comment \u0020"); + +//CHECK#2 +var x = 0; +eval("//\u0020 single line \u0020 comment \u0020 x = 1;"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("//\\u0020 single line \\u0020 comment \\u0020 x = 1;"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T2.js new file mode 100644 index 000000000..85759b101 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.4_T2; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain SPACE (U+0020); + * @description: Use real SPACE; + */ + +//CHECK#1 +var x = 0; +// single line comment x = 1; +if (x !== 0) { + $ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T1.js new file mode 100644 index 000000000..7c943523c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.5_T1; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain NO-BREAK SPACE (U+00A0); + * @description: Use NO-BREAK SPACE(\u00A0); + */ + +// CHECK#1 +eval("//\u00A0 single line \u00A0 comment \u00A0"); + +//CHECK#2 +var x = 0; +eval("//\u00A0 single line \u00A0 comment \u00A0 x = 1;"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("//\\u00A0 single line \\u00A0 comment \\u00A0 x = 1;"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T2.js new file mode 100644 index 000000000..667f58f9c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A3.5_T2; + * @section: 7.2, 7.4; + * @assertion: Single line comment can contain NO-BREAK SPACE (U+00A0); + * @description: Use real NO-BREAK SPACE; + */ + +//CHECK#1 +var x = 0; +// single line comment x = 1; +if (x !== 0) { + $ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T1.js new file mode 100644 index 000000000..cc069a819 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.1_T1; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain HORIZONTAL TAB (U+0009); + * @description: Use HORIZONTAL TAB(\u0009); + */ + +// CHECK#1 +eval("/*\u0009 multi line \u0009 comment \u0009*/"); + +//CHECK#2 +var x = 0; +eval("/*\u0009 multi line \u0009 comment \u0009 x = 1;*/"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("/*\\u0009 multi line \\u0009 comment \\u0009 x = 1;*/"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T2.js new file mode 100644 index 000000000..7112fdd93 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.1_T2; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain HORIZONTAL TAB (U+0009); + * @description: Use real HORIZONTAL TAB; + */ + +/*CHECK#1*/ +var x = 0; +/* multi line comment x = 1;*/ +if (x !== 0) { + $ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T1.js new file mode 100644 index 000000000..8eee5b15c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.2_T1; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain VERTICAL TAB (U+000B); + * @description: Use VERTICAL TAB(\u000B); + */ + +// CHECK#1 +eval("/*\u000B multi line \u000B comment \u000B*/"); + +//CHECK#2 +var x = 0; +eval("/*\u000B multi line \u000B comment \u000B x = 1;*/"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("/*\\u000B multi line \\u000B comment \\u000B x = 1;*/"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T2.js new file mode 100644 index 000000000..7ddcd3242 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.2_T2; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain VERTICAL TAB (U+000B); + * @description: Use real VERTICAL TAB; + */ + +/*CHECK#1*/ +var x = 0; +/*multilinecommentx = 1;*/ +if (x !== 0) { + $ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T1.js new file mode 100644 index 000000000..ee350ba7e --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.3_T1; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain FORM FEED (U+000C); + * @description: Use FORM FEED(\u000C); + */ + +// CHECK#1 +eval("/*\u000C multi line \u000C comment \u000C*/"); + +//CHECK#2 +var x = 0; +eval("/*\u000C multi line \u000C comment \u000C x = 1;*/"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("/*\\u000C multi line \\u000C comment \\u000C x = 1;*/"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T2.js new file mode 100644 index 000000000..45b7fcc41 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.3_T2; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain FORM FEED (U+000C); + * @description: Use real FORM FEED; + */ + +/*CHECK#1*/ +var x = 0; +/*multilinecommentx = 1;*/ +if (x !== 0) { + $ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T1.js new file mode 100644 index 000000000..56b9c63e6 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.4_T1; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain SPACE (U+0020); + * @description: Use SPACE(\u0020); + */ + +// CHECK#1 +eval("/*\u0020 multi line \u0020 comment \u0020*/"); + +//CHECK#2 +var x = 0; +eval("/*\u0020 multi line \u0020 comment \u0020 x = 1;*/"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("/*\\u0020 multi line \\u0020 comment \\u0020 x = 1;*/"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T2.js new file mode 100644 index 000000000..a6c31c785 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.4_T2; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain SPACE (U+0020); + * @description: Use real SPACE; + */ + +/*CHECK#1*/ +var x = 0; +/* multi line comment x = 1;*/ +if (x !== 0) { + $ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T1.js new file mode 100644 index 000000000..2fd57d2ce --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.5_T1; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain NO-BREAK SPACE (U+00A0); + * @description: Use NO-BREAK SPACE(\u00A0); + */ + +// CHECK#1 +eval("/*\u00A0 multi line \u00A0 comment \u00A0*/"); + +//CHECK#2 +var x = 0; +eval("/*\u00A0 multi line \u00A0 comment \u00A0 x = 1;*/"); +if (x !== 0) { + $ERROR('#1: var x = 0; eval("/*\\u00A0 multi line \\u00A0 comment \\u00A0 x = 1;*/"); x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T2.js new file mode 100644 index 000000000..148270c29 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A4.5_T2; + * @section: 7.2, 7.4; + * @assertion: Multi line comment can contain NO-BREAK SPACE (U+00A0); + * @description: Use real NO-BREAK SPACE; + */ + +/*CHECK#1*/ +var x = 0; +/* multi line comment x = 1;*/ +if (x !== 0) { + $ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x)); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T1.js new file mode 100644 index 000000000..010fda52d --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T1.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A5_T1; + * @section: 7.2; + * @assertion: White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits; + * @description: Use TAB (U+0009); + * @negative +*/ + +var\u0009x; diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T2.js new file mode 100644 index 000000000..30389c587 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T2.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A5_T2; + * @section: 7.2; + * @assertion: White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits; + * @description: Use VERTICAL TAB (U+000B); + * @negative +*/ + +var\u000Bx; diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T3.js new file mode 100644 index 000000000..991c80608 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T3.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A5_T3; + * @section: 7.2; + * @assertion: White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits; + * @description: Use FORM FEED (U+000C); + * @negative +*/ + +var\u000Cx; diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T4.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T4.js new file mode 100644 index 000000000..fb4847938 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T4.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A5_T4; + * @section: 7.2; + * @assertion: White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits; + * @description: Use SPACE (U+0020); + * @negative +*/ + +var\u0020x; diff --git a/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T5.js b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T5.js new file mode 100644 index 000000000..7368cdfaa --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T5.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S7.2_A5_T5; + * @section: 7.2; + * @assertion: White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits; + * @description: Use NO-BREAK SPACE (U+00A0); + * @negative +*/ + +var\u00A0x; |