mirror of https://github.com/tc39/test262.git
Remove external folder
This commit is contained in:
parent
5278df4721
commit
e30c0b3183
|
@ -1,39 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// 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));
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// 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));
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// 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));
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// 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));
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
// 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"');
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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"');
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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"');
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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"');
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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"');
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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"');
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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 "');
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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"');
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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"');
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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"');
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// 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));
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @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;
|
|
@ -1,39 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A1.1_T1;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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");
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: eval("\\u000Avar\\u000Ax\\u000A=\\u000A1\\u000A"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
eval("\u000A" + "var" + "\u000A" + "x" + "\u000A" + "=" + "\u000A" + "1" + "\u000A");
|
||||
if (x !== 1) {
|
||||
$ERROR('#2: eval("\\u000A" + "var" + "\\u000A" + "x" + "\\u000A" + "=" + "\\u000A" + "1" + "\\u000A"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
eval("\nvar\nx\n=\n1\n");
|
||||
if (x !== 1) {
|
||||
$ERROR('#3: eval("\\nvar\\nx\\n=\\n1\\n"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
eval("\n" + "var" + "\n" + "x" + "\n" + "=" + "\n" + "1" + "\n");
|
||||
if (x !== 1) {
|
||||
$ERROR('#4: eval("\\n" + "var" + "\\n" + "x" + "\\n" + "=" + "\\n" + "1" + "\\n"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
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));
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A1.1_T2;
|
||||
* @section: 7.3;
|
||||
* @assertion: LINE FEED (U+000A) may occur between any two tokens;
|
||||
* @description: Insert real LINE FEED between tokens of var x=1;
|
||||
*/
|
||||
|
||||
//CHECK#1
|
||||
var
|
||||
x
|
||||
=
|
||||
1;
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A1.2_T1;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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");
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: eval("\\u000Dvar\\u000Dx\\u000D=\\u000D1\\u000D"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
eval("\u000D" + "var" + "\u000D" + "x" + "\u000D" + "=" + "\u000D" + "1" + "\u000D");
|
||||
if (x !== 1) {
|
||||
$ERROR('#2: eval("\\u000D" + "var" + "\\u000D" + "x" + "\\u000D" + "=" + "\\u000D" + "1" + "\\u000D"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
eval("\rvar\rx\r=\r1\r");
|
||||
if (x !== 1) {
|
||||
$ERROR('#3: eval("\\rvar\\rx\\r=\\r1\\r"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
eval("\r" + "var" + "\r" + "x" + "\r" + "=" + "\r" + "1" + "\r");
|
||||
if (x !== 1) {
|
||||
$ERROR('#4: eval("\\r" + "var" + "\\r" + "x" + "\\r" + "=" + "\\r" + "1" + "\\r"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
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));
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A1.2_T2;
|
||||
* @section: 7.3;
|
||||
* @assertion: CARRIAGE RETURN (U+000D) may occur between any two tokens;
|
||||
* @description: Insert real CARRIAGE RETURN between tokens of var x=1;
|
||||
*/
|
||||
//CHECK#1
var
x
|
||||
=
1;
if (x !== 1) {
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
}
|
|
@ -1,22 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A1.3;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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");
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: eval("\\u2028var\\u2028x\\u2028=\\u20281\\u2028"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
eval("\u2028" + "var" + "\u2028" + "x" + "\u2028" + "=" + "\u2028" + "1" + "\u2028");
|
||||
if (x !== 1) {
|
||||
$ERROR('#2: eval("\\u2028" + "var" + "\\u2028" + "x" + "\\u2028" + "=" + "\\u2028" + "1" + "\\u2028"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A1.4;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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");
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: eval("\\u2029var\\u2029x\\u2029=\\u20291\\u2029"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
eval("\u2029" + "var" + "\u2029" + "x" + "\u2029" + "=" + "\u2029" + "1" + "\u2029");
|
||||
if (x !== 1) {
|
||||
$ERROR('#2: eval("\\u2029" + "var" + "\\u2029" + "x" + "\\u2029" + "=" + "\\u2029" + "1" + "\\u2029"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A2.1_T1;
|
||||
* @section: 7.3;
|
||||
* @assertion: LINE FEED (U+000A) within strings is not allowed;
|
||||
* @description: Insert LINE FEED (\u000A) into string;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u000Astr\u000Aing\u000A'") === "\u000Astr\u000Aing\u000A") {
|
||||
$ERROR('#1: eval("\'\\u000Astr\\u000Aing\\u000A\'") === "\\u000Astr\\u000Aing\\u000A"');
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A2.1_T2;
|
||||
* @section: 7.3;
|
||||
* @assertion: LINE FEED (U+000A) within strings is not allowed;
|
||||
* @description: Use real LINE FEED into string;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
//CHECK#1
|
||||
"
|
||||
str
|
||||
ing
|
||||
";
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A2.2_T1;
|
||||
* @section: 7.3;
|
||||
* @assertion: CARRIAGE RETURN (U+000D) within strings is not allowed;
|
||||
* @description: Insert CARRIAGE RETURN (\u000D) into string;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u000Dstr\u000Ding\u000D'") === "\u000Dstr\u000Ding\u000D") {
|
||||
$ERROR('#1: eval("\'\\u000Dstr\\u000Ding\\u000D\'") === "\\u000Dstr\\u000Ding\\u000D"');
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A2.2_T2;
|
||||
* @section: 7.3;
|
||||
* @assertion: CARRIAGE RETURN (U+000D) within strings is not allowed;
|
||||
* @description: Insert real CARRIAGE RETURN into string;
|
||||
* @negative
|
||||
*/
|
||||
//CHECK#1
"
str
ing
";
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A2.3;
|
||||
* @section: 7.3;
|
||||
* @assertion: LINE SEPARATOR (U+2028) within strings is not allowed;
|
||||
* @description: Insert LINE SEPARATOR (\u2028) into string;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u2028str\u2028ing\u2028'") === "\u2028str\u2028ing\u2028") {
|
||||
$ERROR('#1: eval("\'\\u2028str\\u2028ing\\u2028\'") === "\\u2028str\\u2028ing\\u2028"');
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A2.4;
|
||||
* @section: 7.3;
|
||||
* @assertion: PARAGRAPH SEPARATOR (U+2029) within strings is not allowed;
|
||||
* @description: Insert PARAGRAPH SEPARATOR (\u2029) into string;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u2029str\u2029ing\u2029'") === "\u2029str\u2029ing\u2029") {
|
||||
$ERROR('#1: eval("\'\\u2029str\\u2029ing\\u2029\'") === "\\u2029str\\u2029ing\\u2029"');
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.1_T1;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain LINE FEED (U+000A) inside;
* @description: Insert LINE FEED (\u000A) into single line comment;
* @negative
*/
// CHECK#1
eval("// single line \u000A comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.1_T2;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain LINE FEED (U+000A) inside;
* @description: Insert LINE FEED (\u000A) into begin of single line comment;
* @negative
*/
// CHECK#1
eval("//\u000A single line comment");
|
|
@ -1,7 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.1_T3;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain LINE FEED (U+000A) inside;
* @description: Insert real LINE FEED into single line comment;
* @negative
*/
|
||||
// CHECK#1
|
||||
//single
|
||||
line comment
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.2_T1;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain CARRIAGE RETURN (U+000D) inside;
* @description: Insert CARRIAGE RETURN (\u000D) into single line comment;
* @negative
*/
// CHECK#1
eval("// single line \u000D comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.2_T2;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain CARRIAGE RETURN (U+000D) inside;
* @description: Insert CARRIAGE RETURN (\u000D) into begin of single line comment;
* @negative
*/
// CHECK#1
eval("//\u000D single line comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.2_T3;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain CARRIAGE RETURN (U+000D) inside;
* @description: Insert real CARRIAGE RETURN into single line comment;
* @negative
*/
// CHECK#1
//single
line comment
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.3_T1;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain LINE SEPARATOR (U+2028) inside;
* @description: Insert LINE SEPARATOR (\u2028) into single line comment;
* @negative
*/
// CHECK#1
eval("// single line \u2028 comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.3_T2;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain LINE SEPARATOR (U+2028) inside;
* @description: Insert LINE SEPARATOR (\u2028) into begin of single line comment;
* @negative
*/
// CHECK#1
eval("//\u2028 single line comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.4_T1;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside;
* @description: Insert PARAGRAPH SEPARATOR (\u2029) into single line comment;
* @negative
*/
// CHECK#1
eval("// single line \u2029 comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A3.4_T2;
* @section: 7.3, 7.4;
* @assertion: Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside;
* @description: Insert PARAGRAPH SEPARATOR (\u2029) into begin of single line comment;
* @negative
*/
// CHECK#1
eval("//\u2029 single line comment");
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A4_T1;
* @section: 7.3, 7.4;
* @assertion: 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");
// 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));
}
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A4_T2;
* @section: 7.3, 7.4;
* @assertion: 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");
// CHECK#2
var x = 0;
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));
}
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A4_T3;
* @section: 7.3, 7.4;
* @assertion: 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");
// CHECK#2
var x = 0;
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));
}
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
* @name: S7.3_A4_T4;
* @section: 7.3, 7.4;
* @assertion: 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");
// CHECK#2
var x = 0;
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));
}
|
|
@ -1,19 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A5.1_T1;
|
||||
* @section: 7.3, 7.4;
|
||||
* @assertion: 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*/");
|
||||
|
||||
//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));
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A5.1_T2;
|
||||
* @section: 7.3, 7.4;
|
||||
* @assertion: Multi line comment can contain LINE FEED (U+000A);
|
||||
* @description: Insert real LINE FEED into multi line comment;
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
/*
|
||||
multi
|
||||
line
|
||||
comment
|
||||
x = 1;
|
||||
*/
|
||||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; /*\\nmulti\\nline\\ncomment\\nx = 1;\\n*/ x === 0. Actual: ' + (x));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A5.2_T1;
|
||||
* @section: 7.3, 7.4;
|
||||
* @assertion: 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*/");
|
||||
|
||||
//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));
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A5.2_T2;
|
||||
* @section: 7.3, 7.4;
|
||||
* @assertion: Multi line comment can contain CARRIAGE RETURN (U+000D);
|
||||
* @description: Insert real CARRIAGE RETURN into multi line comment;
|
||||
*/
|
||||
/*CHECK#1*/
var x = 0;
/*
multi
line
comment
x = 1;
*/
if (x !== 0) {
$ERROR('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x));
}
|
|
@ -1,19 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A5.3;
|
||||
* @section: 7.3, 7.4;
|
||||
* @assertion: 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*/");
|
||||
|
||||
//CHECK#2
|
||||
var x = 0;
|
||||
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));
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A5.4;
|
||||
* @section: 7.3, 7.4;
|
||||
* @assertion: 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*/");
|
||||
|
||||
//CHECK#2
|
||||
var x = 0;
|
||||
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));
|
||||
}
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A6_T1;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
var\u000Ax;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A6_T2;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
var\u000Dx;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A6_T3;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
var\u2028x;
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A6_T4;
|
||||
* @section: 7.3;
|
||||
* @assertion: 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;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
var\u2029x;
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T1;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y+z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=2;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
+
|
||||
z
|
||||
;
|
||||
if (x !== 5) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n+\\nz\\n; x === 5. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=2;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
+
|
||||
z
|
||||
;
|
||||
if (x !== 5) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n+\\nz\\n; x === 5. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=2;
|
||||
var z=3;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028+\u2028z\u2028");
|
||||
if (x !== 5) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028+\\u2028z\\u2028"); x === 5. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=2;
|
||||
var z=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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T2;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y-z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=3;
|
||||
var z=2;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
-
|
||||
z
|
||||
;
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n-\\nz\\n; x === 1. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=3;
|
||||
var z=2;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
-
|
||||
z
|
||||
;
|
||||
if (x !== 1) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n-\\nz\\n; x === 1. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=3;
|
||||
var z=2;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028-\u2028z\u2028");
|
||||
if (x !== 1) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028-\\u2028z\\u2028"); x === 1. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=3;
|
||||
var z=2;
|
||||
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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T3;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y*z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=3;
|
||||
var z=2;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
*
|
||||
z
|
||||
;
|
||||
if (x !== 6) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n*\\nz\\n; x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=3;
|
||||
var z=2;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
*
|
||||
z
|
||||
;
|
||||
if (x !== 6) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n*\\nz\\n; x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=3;
|
||||
var z=2;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028*\u2028z\u2028");
|
||||
if (x !== 6) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028*\\u2028z\\u2028"); x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=3;
|
||||
var z=2;
|
||||
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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T4;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y/z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=12;
|
||||
var z=2;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
/
|
||||
z
|
||||
;
|
||||
if (x !== 6) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n/\\nz\\n; x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=12;
|
||||
var z=2;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
/
|
||||
z
|
||||
;
|
||||
if (x !== 6) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n/\\nz\\n; x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=12;
|
||||
var z=2;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028/\u2028z\u2028");
|
||||
if (x !== 6) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028/\\u2028z\\u2028"); x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=12;
|
||||
var z=2;
|
||||
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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T5;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y%z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=16;
|
||||
var z=10;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
%
|
||||
z
|
||||
;
|
||||
if (x !== 6) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n%\\nz\\n; x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=16;
|
||||
var z=10;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
%
|
||||
z
|
||||
;
|
||||
if (x !== 6) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n%\\nz\\n; x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=16;
|
||||
var z=10;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028%\u2028z\u2028");
|
||||
if (x !== 6) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028%\\u2028z\\u2028"); x === 6. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=16;
|
||||
var z=10;
|
||||
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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T6;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y>>z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=16;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
>>
|
||||
z
|
||||
;
|
||||
if (x !== 2) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n>>\\nz\\n; x === 2. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=16;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
>>
|
||||
z
|
||||
;
|
||||
if (x !== 2) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n>>\\nz\\n; x === 2. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=16;
|
||||
var z=3;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028>>\u2028z\u2028");
|
||||
if (x !== 2) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028>>\\u2028z\\u2028"); x === 2. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=16;
|
||||
var z=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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T7;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y<<z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=2;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
<<
|
||||
z
|
||||
;
|
||||
if (x !== 16) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n<<\\nz\\n; x === 16. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=2;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
<<
|
||||
z
|
||||
;
|
||||
if (x !== 16) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n<<\\nz\\n; x ===16 ');
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=2;
|
||||
var z=3;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028<<\u2028z\u2028");
|
||||
if (x !== 16) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028<<\\u2028z\\u2028"); x === 16. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=2;
|
||||
var z=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));
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.3_A7_T8;
|
||||
* @section: 7.3;
|
||||
* @assertion: Line Terminators between operators are allowed;
|
||||
* @description: Insert Line Terminator in var x=y<z;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
var y=2;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
<
|
||||
z
|
||||
;
|
||||
if (x !== true) {
|
||||
$ERROR('#1: var\\nx\\n=\\ny\\n<\\nz\\n; x === true. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#2
|
||||
var y=2;
|
||||
var z=3;
|
||||
var
|
||||
x
|
||||
=
|
||||
y
|
||||
<
|
||||
z
|
||||
;
|
||||
if (x !== true) {
|
||||
$ERROR('#2: var\\nx\\n=\\ny\\n<\\nz\\n; x === true. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#3
|
||||
var y=2;
|
||||
var z=3;
|
||||
eval("\u2028var\u2028x\u2028=\u2028y\u2028<\u2028z\u2028");
|
||||
if (x !== true) {
|
||||
$ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028<\\u2028z\\u2028"); x === true. Actual: ' + (x));
|
||||
}
|
||||
x=0;
|
||||
|
||||
// CHECK#4
|
||||
var y=2;
|
||||
var z=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));
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A1_T1;
|
||||
* @section: 7.4;
|
||||
* @assertion: Correct interpretation of single line comments;
|
||||
* @description: Create comments with any code;
|
||||
*/
|
||||
|
||||
//CHECK#1
|
||||
// $ERROR('#1: Correct interpretation single line comments');
|
||||
|
||||
//CHECK#2
|
||||
var x = 0;
|
||||
// x = 1;
|
||||
if (x !== 0) {
|
||||
$ERROR('#2: var x = 0; // x = 1; x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
var // y = 1;
|
||||
y;
|
||||
if (y !== undefined) {
|
||||
$ERROR('#3: var // y = 1; \\n y; y === undefined. Actual: ' + (y));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
//$ERROR('#4: Correct interpretation single line comments') //$ERROR('#4: Correct interpretation single line comments'); //
|
||||
|
||||
////CHECK#5
|
||||
//var x = 1;
|
||||
//if (x === 1) {
|
||||
// $ERROR('#5: Correct interpretation single line comments');
|
||||
//}
|
||||
|
||||
//CHECK#6
|
||||
//var this.y = 1;
|
||||
this.y++;
|
||||
if (isNaN(y) !== true) {
|
||||
$ERROR('#6: //var this.y = 1; \\n this.y++; y === Not-a-Number. Actual: ' + (y));
|
||||
}
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A1_T2;
|
||||
* @section: 7.4;
|
||||
* @assertion: Correct interpretation of single line comments;
|
||||
* @description: Simple test, create empty comment: ///;
|
||||
*/
|
||||
|
||||
//CHECK#1
|
||||
///
|
|
@ -1,77 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A2_T1;
|
||||
* @section: 7.4;
|
||||
* @assertion: Correct interpretation of multi line comments;
|
||||
* @description: Create comments with any code;
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
/* $ERROR('#1: Correct interpretation multi line comments');
|
||||
*/
|
||||
|
||||
/*CHECK#2*/
|
||||
var x = 0;
|
||||
/* x = 1;*/
|
||||
if (x !== 0) {
|
||||
$ERROR('#2: var x = 0; /* x = 1;*/ x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
var /* y = 1;*/
|
||||
y;
|
||||
if (y !== undefined) {
|
||||
$ERROR('#3: var /* y = 1; */ \\n y; y === undefined. Actual: ' + (y));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
var /* y = 1;*/ y;
|
||||
if (y !== undefined) {
|
||||
$ERROR('#4: var /* y = 1; */ y; y === undefined. Actual: ' + (y));
|
||||
}
|
||||
|
||||
/*CHECK#5*/
|
||||
/*var x = 1;
|
||||
if (x === 1) {
|
||||
$ERROR('#5: Correct interpretation multi line comments');
|
||||
}
|
||||
*/
|
||||
|
||||
/*CHECK#6*/
|
||||
/*var this.y = 1;*/
|
||||
this.y++;
|
||||
if (isNaN(y) !== true) {
|
||||
$ERROR('#6: /*var this.y = 1;*/ \\n this.y++; y === Not-a-Number. Actual: ' + (y));
|
||||
}
|
||||
|
||||
//CHECK#7
|
||||
var string = "/*var y = 0*/" /* y = 1;*/
|
||||
if (string !== "/*var y = 0*/") {
|
||||
$ERROR('#7: var string = "/*var y = 0*/" /* y = 1;*/ string === "//var y = 0"');
|
||||
}
|
||||
|
||||
//CHECK#8
|
||||
var string = "/*var y = 0" /* y = 1;*/
|
||||
if (string !== "/*var y = 0") {
|
||||
$ERROR('#8: var string = "/*var y = 0" /* y = 1;*/ string === "//var y = 0"');
|
||||
}
|
||||
|
||||
/*CHECK#9*/
|
||||
/** $ERROR('#9: Correct interpretation multi line comments');
|
||||
*/
|
||||
|
||||
/*CHECK#10*/
|
||||
/* $ERROR('#10: Correct interpretation multi line comments');
|
||||
**/
|
||||
|
||||
/*CHECK#11*/
|
||||
/****** $ERROR('#11: Correct interpretation multi line comments');*********
|
||||
***********
|
||||
*
|
||||
|
||||
|
||||
**********
|
||||
**/
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A2_T2;
|
||||
* @section: 7.4;
|
||||
* @assertion: Correct interpretation of multi line comments;
|
||||
* @description: Try use /*CHECK#1/. This is not closed multi line comment;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
/*CHECK#1/
|
|
@ -1,19 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A3;
|
||||
* @section: 7.4;
|
||||
* @assertion: Multi line comments cannot nest;
|
||||
* @description: Try use nested comments;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
/*
|
||||
var
|
||||
|
||||
/* x */
|
||||
= 1;
|
||||
*/
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A4_T1;
|
||||
* @section: 7.4;
|
||||
* @assertion: Single and Multi line comments are used together;
|
||||
* @description: Try use 2 close comment tags;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
/* var*/
|
||||
x*/
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A4_T2;
|
||||
* @section: 7.4;
|
||||
* @assertion: Single and Multi line comments are used together;
|
||||
* @description: Fist Multi line comment, then Single line comment;
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
/* var
|
||||
*///x*/
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A4_T3;
|
||||
* @section: 7.4;
|
||||
* @assertion: Single and Multi line comments are used together;
|
||||
* @description: Insert Single line comment into Multi line comment;
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
/* var
|
||||
//x
|
||||
*/
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A4_T4;
|
||||
* @section: 7.4;
|
||||
* @assertion: Single and Multi line comments are used together;
|
||||
* @description: Try to open Multi line comment at the end of Single comment;
|
||||
* @negative
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
// var /*
|
||||
x*/
|
|
@ -1,13 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A4_T5;
|
||||
* @section: 7.4;
|
||||
* @assertion: Single and Multi line comments are used together;
|
||||
* @description: Insert Multi line comment into Single line comment;
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
// var /* x */
|
|
@ -1,13 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S7.4_A4_T6;
|
||||
* @section: 7.4;
|
||||
* @assertion: Single and Multi line comments are used together;
|
||||
* @description: Insert Multi line comment with two closed tags into Single line comment;
|
||||
*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
// var /* x / = */ 1 */
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue