mirror of https://github.com/tc39/test262.git
Merge.
This commit is contained in:
commit
d8d5a15271
test/suite
SputnikGlobalScope.js
sputnik_converted/07_Lexical_Conventions
7.2_White_Space
S7.2_A1.1_T1.jsS7.2_A1.1_T2.jsS7.2_A1.2_T1.jsS7.2_A1.2_T2.jsS7.2_A1.3_T1.jsS7.2_A1.3_T2.jsS7.2_A1.4_T1.jsS7.2_A1.4_T2.jsS7.2_A1.5_T1.jsS7.2_A1.5_T2.jsS7.2_A2.1_T1.jsS7.2_A2.1_T2.jsS7.2_A2.2_T1.jsS7.2_A2.2_T2.jsS7.2_A2.3_T1.jsS7.2_A2.3_T2.jsS7.2_A2.4_T1.jsS7.2_A2.4_T2.jsS7.2_A2.5_T1.jsS7.2_A2.5_T2.jsS7.2_A3.1_T1.jsS7.2_A3.1_T2.jsS7.2_A3.2_T1.jsS7.2_A3.2_T2.jsS7.2_A3.3_T1.jsS7.2_A3.3_T2.jsS7.2_A3.4_T1.jsS7.2_A3.4_T2.jsS7.2_A3.5_T1.jsS7.2_A3.5_T2.jsS7.2_A4.1_T1.jsS7.2_A4.1_T2.jsS7.2_A4.2_T1.jsS7.2_A4.2_T2.jsS7.2_A4.3_T1.jsS7.2_A4.3_T2.jsS7.2_A4.4_T1.jsS7.2_A4.4_T2.jsS7.2_A4.5_T1.jsS7.2_A4.5_T2.jsS7.2_A5_T1.jsS7.2_A5_T2.jsS7.2_A5_T3.jsS7.2_A5_T4.jsS7.2_A5_T5.js
7.3_Line_Terminators
S7.3_A1.1_T1.jsS7.3_A1.1_T2.jsS7.3_A1.2_T1.jsS7.3_A1.2_T2.jsS7.3_A1.3.jsS7.3_A1.4.jsS7.3_A2.1_T1.jsS7.3_A2.1_T2.jsS7.3_A2.2_T1.jsS7.3_A2.2_T2.jsS7.3_A2.3.jsS7.3_A2.4.jsS7.3_A3.1_T1.jsS7.3_A3.1_T2.jsS7.3_A3.1_T3.jsS7.3_A3.2_T1.jsS7.3_A3.2_T2.jsS7.3_A3.2_T3.jsS7.3_A3.3_T1.jsS7.3_A3.3_T2.jsS7.3_A3.4_T1.jsS7.3_A3.4_T2.jsS7.3_A4_T1.jsS7.3_A4_T2.jsS7.3_A4_T3.jsS7.3_A4_T4.jsS7.3_A5.1_T1.jsS7.3_A5.1_T2.jsS7.3_A5.2_T1.jsS7.3_A5.2_T2.jsS7.3_A5.3.jsS7.3_A5.4.jsS7.3_A6_T1.jsS7.3_A6_T2.jsS7.3_A6_T3.jsS7.3_A6_T4.jsS7.3_A7_T1.jsS7.3_A7_T2.jsS7.3_A7_T3.jsS7.3_A7_T4.jsS7.3_A7_T5.jsS7.3_A7_T6.jsS7.3_A7_T7.jsS7.3_A7_T8.js
7.4_Comments
|
@ -1,366 +0,0 @@
|
|||
this.GlobalScopeTests = this.GlobalScopeTests || {};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T1.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T2.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T3.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T4.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A5_T5.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.1_T1.js"]={"assertion":"LINE FEED (U+000A) within strings is not allowed","description":"Insert LINE FEED (\\u000A) into string","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.1_T2.js"]={"assertion":"LINE FEED (U+000A) within strings is not allowed","description":"Use real LINE FEED into string","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.2_T1.js"]={"assertion":"CARRIAGE RETURN (U+000D) within strings is not allowed","description":"Insert CARRIAGE RETURN (\\u000D) into string","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.2_T2.js"]={"assertion":"CARRIAGE RETURN (U+000D) within strings is not allowed","description":"Insert real CARRIAGE RETURN into string","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.3.js"]={"assertion":"LINE SEPARATOR (U+2028) within strings is not allowed","description":"Insert LINE SEPARATOR (\\u2028) into string","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.4.js"]={"assertion":"PARAGRAPH SEPARATOR (U+2029) within strings is not allowed","description":"Insert PARAGRAPH SEPARATOR (\\u2029) into string","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.1_T1.js"]={"assertion":"Single line comments can not contain LINE FEED (U+000A) inside","description":"Insert LINE FEED (\\u000A) into single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.1_T2.js"]={"assertion":"Single line comments can not contain LINE FEED (U+000A) inside","description":"Insert LINE FEED (\\u000A) into begin of single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.1_T3.js"]={"assertion":"Single line comments can not contain LINE FEED (U+000A) inside","description":"Insert real LINE FEED into single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.2_T1.js"]={"assertion":"Single line comments can not contain CARRIAGE RETURN (U+000D) inside","description":"Insert CARRIAGE RETURN (\\u000D) into single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.2_T2.js"]={"assertion":"Single line comments can not contain CARRIAGE RETURN (U+000D) inside","description":"Insert CARRIAGE RETURN (\\u000D) into begin of single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.2_T3.js"]={"assertion":"Single line comments can not contain CARRIAGE RETURN (U+000D) inside","description":"Insert real CARRIAGE RETURN into single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.3_T1.js"]={"assertion":"Single line comments can not contain LINE SEPARATOR (U+2028) inside","description":"Insert LINE SEPARATOR (\\u2028) into single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.3_T2.js"]={"assertion":"Single line comments can not contain LINE SEPARATOR (U+2028) inside","description":"Insert LINE SEPARATOR (\\u2028) into begin of single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.4_T1.js"]={"assertion":"Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside","description":"Insert PARAGRAPH SEPARATOR (\\u2029) into single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A3.4_T2.js"]={"assertion":"Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside","description":"Insert PARAGRAPH SEPARATOR (\\u2029) into begin of single line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A6_T1.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A6_T2.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A6_T3.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A6_T4.js"]={"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":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A2_T2.js"]={"assertion":"Correct interpretation of multi line comments","description":"Try use \/*CHECK#1\/. This is not closed multi line comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A3.js"]={"assertion":"Multi line comments cannot nest","description":"Try use nested comments","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A4_T1.js"]={"assertion":"Single and Multi line comments are used together","description":"Try use 2 close comment tags","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A4_T4.js"]={"assertion":"Single and Multi line comments are used together","description":"Try to open Multi line comment at the end of Single comment","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.1_Reserved_Words/S7.5.1_A1.1.js"]={"assertion":"The \"null\" token can not be used as identifier","description":"Checking if execution of \"null = 1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.1_Reserved_Words/S7.5.1_A1.2.js"]={"assertion":"The \"true\" token can not be used as identifier","description":"Checking if execution of \"true=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.1_Reserved_Words/S7.5.1_A1.3.js"]={"assertion":"The \"false\" token can not be used as identifier","description":"Checking if execution of \"false=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.1.js"]={"assertion":"The \"break\" token can not be used as identifier","description":"Checking if execution of \"break=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.10.js"]={"assertion":"The \"for\" token can not be used as identifier","description":"Checking if execution of \"for=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.11.js"]={"assertion":"The \"function\" token can not be used as identifier","description":"Checking if execution of \"function=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.12.js"]={"assertion":"The \"if\" token can not be used as identifier","description":"Checking if execution of \"if=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.13.js"]={"assertion":"The \"in\" token can not be used as identifier","description":"Checking if execution of \"in=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.14.js"]={"assertion":"The \"instanceof\" token can not be used as identifier","description":"Checking if execution of \"instanceof=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.15.js"]={"assertion":"The \"new\" token can not be used as identifier","description":"Checking if execution of \"new=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.16.js"]={"assertion":"The \"return\" token can not be used as identifier","description":"Checking if execution of \"return=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.17.js"]={"assertion":"The \"switch\" token can not be used as identifier","description":"Checking if execution of \"switch=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.18.js"]={"assertion":"The \"this\" token can not be used as identifier","description":"Checking if execution of \"this=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.19.js"]={"assertion":"The \"throw\" token can not be used as identifier","description":"Checking if execution of \"throw=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.2.js"]={"assertion":"The \"case\" token can not be used as identifier","description":"Checking if execution of \"case=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.20.js"]={"assertion":"The \"try\" token can not be used as identifier","description":"Checking if execution of \"try=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.21.js"]={"assertion":"The \"typeof\" token can not be used as identifier","description":"Checking if execution of \"typeof=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.22.js"]={"assertion":"The \"var\" token can not be used as identifier","description":"Checking if execution of \"var=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.23.js"]={"assertion":"The \"void\" token can not be used as identifier","description":"Checking if execution of \"void=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.24.js"]={"assertion":"The \"while\" token can not be used as identifier","description":"Checking if execution of \"while=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.25.js"]={"assertion":"The \"with\" token can not be used as identifier","description":"Checking if execution of \"with=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.3.js"]={"assertion":"The \"catch\" token can not be used as identifier","description":"Checking if execution of \"catch=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.4.js"]={"assertion":"The \"continue\" token can not be used as identifier","description":"Checking if execution of \"contunue=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.5.js"]={"assertion":"The \"default\" token can not be used as identifier","description":"Checking if execution of \"default=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.6.js"]={"assertion":"The \"delete\" token can not be used as identifier","description":"Checking if execution of \"delete=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.7.js"]={"assertion":"The \"do\" token can not be used as identifier","description":"Checking if execution of \"do=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.8.js"]={"assertion":"The \"else\" token can not be used as identifier","description":"Checking if execution of \"else=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.2_Keywords/S7.5.2_A1.9.js"]={"assertion":"The \"finally\" token can not be used as identifier","description":"Checking if execution of \"finally=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.10.js"]={"assertion":"The \"export\" token can not be used as identifier","description":"Checking if execution of \"export=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.11.js"]={"assertion":"The \"extends\" token can not be used as identifier","description":"Checking if execution of \"extends=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.15.js"]={"assertion":"The \"implements\" token can not be used as identifier in strict code","description":"Checking if execution of \"implements=1\" fails in strict code","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.16.js"]={"assertion":"The \"import\" token can not be used as identifier","description":"Checking if execution of \"import=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.18.js"]={"assertion":"The \"interface\" token can not be used as identifier in strict code","description":"Checking if execution of \"interface = 1\" fails in","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.21.js"]={"assertion":"The \"package\" token can not be used as identifier in strict code","description":"Checking if execution of \"package=1\" fails in strict code","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.22.js"]={"assertion":"The \"private\" token can not be used as identifier in strict code","description":"Checking if execution of \"private=1\" fails in strict code","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.23.js"]={"assertion":"The \"protected\" token can not be used as identifier in strict code","description":"Checking if execution of \"protected=1\" fails in","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.24.js"]={"assertion":"The \"public\" token can not be used as identifier in strict code","description":"Checking if execution of \"public=1\" fails in strict code","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.26.js"]={"assertion":"The \"static\" token can not be used as identifier in strict code","description":"Checking if execution of \"static=1\" fails in strict code","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.27.js"]={"assertion":"The \"super\" token can not be used as identifier","description":"Checking if execution of \"super=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.5.js"]={"assertion":"The \"class\" token can not be used as identifier","description":"Checking if execution of \"class=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.6.js"]={"assertion":"The \"const\" token can not be used as identifier","description":"Checking if execution of \"const=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.7.js"]={"assertion":"The \"debugger\" token can not be used as identifier","description":"Checking if execution of \"debugger=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.9.js"]={"assertion":"The \"enum\" token can not be used as identifier","description":"Checking if execution of \"enum=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T1.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use {} as a Unicode \\u007B\\u007D","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T10.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use \/ as a Unicode \\u002F","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T2.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use () as Unicode \\u00281\\u0029","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T3.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use [] as a Unicode \\u005B\\u005D","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T4.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use ; as a Unicode \\u003B","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T5.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use . as a Unicode \\u002E","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T6.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use , as a Unicode \\u002C","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T7.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use + as a Unicode \\u002B","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T8.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use - as a Unicode \\u002D","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.7_Punctuators/S7.7_A2_T9.js"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use * as a Unicode \\u002A","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T1.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: e DecimalDigits","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T2.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: E DecimalDigits","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T3.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: e DecimalDigits","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T4.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: E DecimalDigits","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T5.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: e DecimalDigits","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T6.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: E DecimalDigits","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T7.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: e 0","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A4.1_T8.js"]={"assertion":"DecimalLiteral :: ExponentPart is incorrect","description":"ExponentPart :: E 0","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A6.1_T1.js"]={"assertion":"HexIntegerLiteral :: 0(x\/X) is incorrect","description":"Checking if execution of \"0x\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A6.1_T2.js"]={"assertion":"HexIntegerLiteral :: 0(x\/X) is incorrect","description":"Checking if execution of \"0X\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A6.2_T1.js"]={"assertion":"0xG is incorrect","description":"Checking if execution of \"0xG\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A6.2_T2.js"]={"assertion":"0xG is incorrect","description":"Checking if execution of \"0xg\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A1.1_T1.js"]={"assertion":"StringLiteral :: \"DoubleStringCharacters_opt\"","description":"DoubleStringCharacter :: SourceCharacter but not double-quote \" or LineTerminator","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A1.1_T2.js"]={"assertion":"StringLiteral :: \"DoubleStringCharacters_opt\"","description":"DoubleStringCharacter :: SourceCharacter but not double-quote \" or LineTerminator","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A1.2_T1.js"]={"assertion":"StringLiteral :: 'SingleStringCharacters_opt'","description":"SingleStringCharacter :: SourceCharacter but not single-quote ' or LineTerminator","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A1.2_T2.js"]={"assertion":"StringLiteral :: 'SingleStringCharacters_opt'","description":"SingleStringCharacter :: SourceCharacter but not single-quote ' or LineTerminator","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A3.1_T1.js"]={"assertion":"StringLiteral :: \"\\\" or '\\' is not correct","description":"Checking if execution of \"\\\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A3.1_T2.js"]={"assertion":"StringLiteral :: \"\\\" or '\\' is not correct","description":"Checking if execution of \"'\\'\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A3.2_T1.js"]={"assertion":"StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct","description":"Checking if execution of \"\\\\\\\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A3.2_T2.js"]={"assertion":"StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct","description":"Checking if execution of '\\\\\\' fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T1.js"]={"assertion":"NonEscapeSequence is not EscapeCharacter","description":"EscapeCharacter :: DecimalDigits :: 1","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T2.js"]={"assertion":"NonEscapeSequence is not EscapeCharacter","description":"EscapeCharacter :: DecimalDigits :: 7","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T3.js"]={"assertion":"NonEscapeSequence is not EscapeCharacter","description":"EscapeCharacter :: DecimalDigits :: 8","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T4.js"]={"assertion":"NonEscapeSequence is not EscapeCharacter","description":"EscapeCharacter :: DecimalDigits :: 9","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T5.js"]={"assertion":"NonEscapeSequence is not EscapeCharacter","description":"EscapeCharacter :: u","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T6.js"]={"assertion":"NonEscapeSequence is not EscapeCharacter","description":"EscapeCharacter :: x","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.1_T4.js"]={"assertion":"EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit","description":"HexEscapeSequence :: x0G is incorrect","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.2_T1.js"]={"assertion":"HexEscapeSequence :: x HexDigit is incorrect","description":"HexDigit :: 1","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.2_T2.js"]={"assertion":"HexEscapeSequence :: x HexDigit is incorrect","description":"HexDigit :: A","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.4_T1.js"]={"assertion":"HexEscapeSequence \\X HexDigit HexDigit is incorrect","description":"Checking if execution of \"\\X01\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.4_T2.js"]={"assertion":"HexEscapeSequence \\X HexDigit HexDigit is incorrect","description":"Checking if execution of \"\\X0A\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.1_T4.js"]={"assertion":"EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit","description":"UnicodeEscapeSequence :: u000G is incorrect","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.2_T1.js"]={"assertion":"UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect","description":":: HexDigit :: 1","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.2_T2.js"]={"assertion":"UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect","description":":: HexDigit :: A","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.2_T3.js"]={"assertion":"UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect","description":":: HexDigit :: 1","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.2_T4.js"]={"assertion":"UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect","description":":: HexDigit :: A","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.2_T5.js"]={"assertion":"UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect","description":":: HexDigit :: 1","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.2_T6.js"]={"assertion":"UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect","description":":: HexDigit :: A","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.4_T1.js"]={"assertion":"UnicodeEscapeSequence \\U HexDigit HexDigit HexDigit HexDigit is incorrect","description":"Checking if execution of \"\\U0001\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.4_T2.js"]={"assertion":"UnicodeEscapeSequence \\U HexDigit HexDigit HexDigit HexDigit is incorrect","description":"Checking if execution of \"\\U000A\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.2_T1.js"]={"assertion":"RegularExpressionFirstChar :: * or \\ or \/ or [empty] is incorrect","description":"*","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.2_T2.js"]={"assertion":"RegularExpressionFirstChar :: * or \\ or \/ or [empty] is incorrect","description":"\\","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.2_T3.js"]={"assertion":"RegularExpressionFirstChar :: * or \\ or \/ or [empty] is incorrect","description":"\/","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.2_T4.js"]={"assertion":"RegularExpressionFirstChar :: * or \\ or \/ or [empty] is incorrect","description":"[empty]","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.3_T1.js"]={"assertion":"RegularExpressionFirstChar :: LineTerminator is incorrect","description":"Line Feed, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.3_T3.js"]={"assertion":"RegularExpressionFirstChar :: LineTerminator is incorrect","description":"Carriage Return, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.5_T1.js"]={"assertion":"RegularExpressionFirstChar :: BackslashSequence :: \\LineTerminator is incorrect","description":"Line Feed, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A1.5_T3.js"]={"assertion":"RegularExpressionFirstChar :: BackslashSequence :: \\LineTerminator is incorrect","description":"Carriage Return, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A2.2_T1.js"]={"assertion":"RegularExpressionChar :: \\ or \/ is incorrect","description":"\\","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A2.2_T2.js"]={"assertion":"RegularExpressionChar :: \\ or \/ is incorrect","description":"\/","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A2.3_T1.js"]={"assertion":"RegularExpressionChar :: LineTerminator is incorrect","description":"Line Feed, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A2.3_T3.js"]={"assertion":"RegularExpressionChar :: LineTerminator is incorrect","description":"Carriage Return, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A2.5_T1.js"]={"assertion":"RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect","description":"Line Feed, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A2.5_T3.js"]={"assertion":"RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect","description":"Carriage Return, without eval","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A10_T2.js"]={"assertion":"Check {} for automatic semicolon insertion","description":"Checking if execution of \"{}*1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A10_T4.js"]={"assertion":"Check {} for automatic semicolon insertion","description":"Checking if execution of \"({};)*1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A10_T6.js"]={"assertion":"Check {} for automatic semicolon insertion","description":"Checking if execution of \"{} \\n * 1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A10_T8.js"]={"assertion":"Check {} for automatic semicolon insertion","description":"Checking if execution of \"{1 2} 3\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A11_T4.js"]={"assertion":"Check If Statement for automatic semicolon insertion","description":"Checking if execution of \"if (false) x = 1 else x = -1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A11_T8.js"]={"assertion":"Check If Statement for automatic semicolon insertion","description":"Use if (false) {x = 1}; \\n else x=-1 and check x","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A4.js"]={"assertion":"Check Throw Statement for automatic semicolon insertion","description":"Try use Throw \\n Expression construction","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A5.1_T1.js"]={"assertion":"Check Postfix Increment Operator for automatic semicolon insertion","description":"Try use Variable \\n ++ construction","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A5.3_T1.js"]={"assertion":"Check Postfix Decrement Operator for automatic semicolon insertion","description":"Try use Variable \\n -- construction","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A5.7_T1.js"]={"assertion":"Since LineTerminator(LT) between Postfix Increment\/Decrement Operator(I\/DO) and operand is not allowed, two IO(just as two DO and their combination)","description":"Try use Variable1 \\n ++ \\n ++ \\n Variable2 construction","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T1.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (semicolon \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T10.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n false \\n semicolon)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T2.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n semicolon \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T3.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n semicolon)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T4.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n \\n semicolon)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T5.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (false semicolon false\\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T6.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (false semicolon \\n false)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T7.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (false \\n semicolon \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T8.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (false \\n semicolon false \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.2_T9.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n semicolon false)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T1.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T2.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T3.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n \\n \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T4.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n false \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T5.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (false \\n false \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T6.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n false \\n false \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.3_T7.js"]={"assertion":"Check For Statement for automatic semicolon insertion.","description":"For header is (\\n false \\n false \\n false \\n)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.4_T1.js"]={"assertion":"Check For Statement for automatic semicolon insertion","description":"Three semicolons. For header is (false semicolon false semicolon false semicolon)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A6.4_T2.js"]={"assertion":"Check For Statement for automatic semicolon insertion","description":"Three semicolons. For header is (false semicolon false two semicolons false)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A7_T7.js"]={"assertion":"Check Var Statement for automatic semicolon insertion","description":"Checking if execution of \"var x \\n y\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A9_T6.js"]={"assertion":"Check Do-While Statement for automatic semicolon insertion","description":"Execute do \\n while(false)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A9_T7.js"]={"assertion":"Check Do-While Statement for automatic semicolon insertion","description":"Execute do \\n\\n while(false)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/S7.9_A9_T8.js"]={"assertion":"Check Do-While Statement for automatic semicolon insertion","description":"Execute do {}; \\n while(false)","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/7.9.2_Examples_of_Automatic_Semicolon_Insertion/S7.9.2_A1_T1.js"]={"assertion":"Check examples for automatic semicolon insertion from the Standart","description":"{ 1 2 } 3 is not a valid sentence in the ECMAScript grammar","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/7.9.2_Examples_of_Automatic_Semicolon_Insertion/S7.9.2_A1_T3.js"]={"assertion":"Check examples for automatic semicolon insertion from the Standart","description":"for( a ; b \\n ) is not a valid sentence in the ECMAScript grammar","negative":"."};
|
||||
GlobalScopeTests["TestCases/07_Lexical_Conventions/7.9_Automatic_Semicolon_Insertion/7.9.2_Examples_of_Automatic_Semicolon_Insertion/S7.9.2_A1_T6.js"]={"assertion":"Check examples for automatic semicolon insertion from the Standart","description":"if(a>b) \\n else c=d is not a valid sentence in the ECMAScript grammar","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.2_The_Null_Type/S8.2_A2.js"]={"assertion":"The null is resrved word","description":"Checking if execution of \"var null\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.3_The_Boolean_Type/S8.3_A2.1.js"]={"assertion":"The true is reserved word","description":"Checking if execution of \"true=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.3_The_Boolean_Type/S8.3_A2.2.js"]={"assertion":"The false is reserved word","description":"Checking if execution of \"false=0\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A13_T1.js"]={"assertion":"When appears not closed single-quote program failes","description":"Try to create variable using 3 single-quote","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A13_T2.js"]={"assertion":"When appears not closed single-quote program failes","description":"Try to create variable using 1 single-quote","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A13_T3.js"]={"assertion":"When appears not closed single-quote program failes","description":"Try to create variable using 4 single-quote","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A14_T1.js"]={"assertion":"When appears not closed double-quote program failes","description":"Try to create variable using 1 double-quote","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A14_T2.js"]={"assertion":"When appears not closed double-quote program failes","description":"Try to create variable using 3 double-quote","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A14_T3.js"]={"assertion":"When appears not closed double-quote program failes","description":"Try to create variable using 4 double-quote","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A7.1.js"]={"assertion":"<LF> between chunks of one string not allowed","description":"Insert <LF> between chunks of one string","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A7.2.js"]={"assertion":"<CR> between chunks of one string not allowed","description":"Insert <CR> between chunks of one string","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A7.3.js"]={"assertion":"<PS> between chunks of one string not allowed","description":"Insert <PS> between chunks of one string","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.4_The_String_Type/S8.4_A7.4.js"]={"assertion":"<LS> between chunks of one string not allowed","description":"Insert <LS> between chunks of one string","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2_A7.js"]={"assertion":"Objects that implement internal method [[Construct]] are called constructors. Math object is NOT constructor","description":"Checking if execution of \"var objMath=new Math\" passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.7_The_Reference_Type/S8.7.2_A1_T1.js"]={"assertion":"GetValue(V) mast fail","description":"Checking if execution of \"'litera'=1;\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/08_Types/8.7_The_Reference_Type/S8.7.2_A1_T2.js"]={"assertion":"GetValue(V) mast fail","description":"Checking if execution of \"1=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.1_Simple_Assignment/S11.13.1_A2.1_T3.js"]={"assertion":"Operator x = y uses GetValue and PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError)","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T1.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x *= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T10.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x ^= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T11.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x |= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T2.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x \/= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T3.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x %= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T4.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x += y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T5.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x -= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T6.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x <<= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T7.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x >>= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T8.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x >>>= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A2.2_T9.js"]={"assertion":"Operator uses PutValue","description":"If Type(LeftHandSideExpression) is not Reference, throw ReferenceError (or SyntaxError). Check operator is \"x &= y\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A1.js"]={"assertion":"The \"this\" is reserved word","description":"Checking if execution of \"this=1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.1_Primary_Expressions/11.1.5_Object_Initializer/S11.1.5_A4.1.js"]={"assertion":"The PropertyName is not BooleanLiteral","description":"Checking if execution of \"var object = {true : 1}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.1_Primary_Expressions/11.1.5_Object_Initializer/S11.1.5_A4.2.js"]={"assertion":"The PropertyName is not nullLiteral","description":"Checking if execution of \"var object = {null : true}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.2_Left_Hand_Side_Expressions/11.2.4_Argument_Lists/S11.2.4_A1.3_T1.js"]={"assertion":"Arguments : (ArgumentList : ArgumentList,, AssignmentExpression) is a bad syntax","description":"incorrect syntax","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.1_Postfix_Increment_Operator/S11.3.1_A1.1_T1.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"++\" is not allowed","description":"Checking Line Feed","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.1_Postfix_Increment_Operator/S11.3.1_A1.1_T2.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"++\" is not allowed","description":"Carriage Return","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.1_Postfix_Increment_Operator/S11.3.1_A1.1_T3.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"++\" is not allowed","description":"Checking Line Seprator","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.1_Postfix_Increment_Operator/S11.3.1_A1.1_T4.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"++\" is not allowed","description":"Checking Paragraph separator","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.1_Postfix_Increment_Operator/S11.3.1_A2.1_T3.js"]={"assertion":"Operator x++ uses GetValue and PutValue","description":"If Type(x) is not Reference, throw ReferenceError (or SyntaxError)","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.2_Postfix_Decrement_Operator/S11.3.2_A1.1_T1.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"--\" is not allowed","description":"Checking Line Feed","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.2_Postfix_Decrement_Operator/S11.3.2_A1.1_T2.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"--\" is not allowed","description":"Checking Carriage Return","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.2_Postfix_Decrement_Operator/S11.3.2_A1.1_T3.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"--\" is not allowed","description":"Checking Page separator","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.2_Postfix_Decrement_Operator/S11.3.2_A1.1_T4.js"]={"assertion":"Line Terminator between LeftHandSideExpression and \"--\" is not allowed","description":"Checking Line separator","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.3_PostfixExpressions/11.3.2_Postfix_Decrement_Operator/S11.3.2_A2.1_T3.js"]={"assertion":"Operator x-- uses GetValue and PutValue","description":"If Type(x) is not Reference, throw ReferenceError (or SyntaxError)","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.4_Unary_Operators/11.4.2_The_void_Operator/S11.4.2_A2_T2.js"]={"assertion":"Operator \"void\" uses GetValue","description":"If GetBase(x) is null, throw ReferenceError","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T3.js"]={"assertion":"Operator ++x uses GetValue and PutValue","description":"If Type(x) is not Reference, throw ReferenceError (or SyntaxError)","negative":"."};
|
||||
GlobalScopeTests["TestCases/11_Expressions/11.4_Unary_Operators/11.4.5_Prefix_Decrement_Operator/S11.4.5_A2.1_T3.js"]={"assertion":"Operator --x uses GetValue and PutValue","description":"If Type(x) is not Reference, throw ReferenceError (or SyntaxError)","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.11_The_switch_Statement/S12.11_A2_T1.js"]={"assertion":"There can be only one DefaultClause","description":"Duplicate DefaultClause","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.11_The_switch_Statement/S12.11_A3_T1.js"]={"assertion":"Syntax constructions of switch statement","description":"Checking if execution of \"switch() {}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.11_The_switch_Statement/S12.11_A3_T2.js"]={"assertion":"Syntax constructions of switch statement","description":"Checking if execution of \"switch {}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.11_The_switch_Statement/S12.11_A3_T3.js"]={"assertion":"Syntax constructions of switch statement","description":"Checking if execution of \"switch(value)\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.11_The_switch_Statement/S12.11_A3_T4.js"]={"assertion":"Syntax constructions of switch statement","description":"Using \"case\" that has no Expresson after it. \"CaseClause: case Expression : [StatementList]\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.11_The_switch_Statement/S12.11_A3_T5.js"]={"assertion":"Syntax constructions of switch statement","description":"Introducing statement not followed by \"case\" keyword","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.13_The_throw_statement/S12.13_A1.js"]={"assertion":"Sanity test for throw statement","description":"Trying to throw exception with \"throw\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T1.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if pure \"try\" syntax construction passes","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T10.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Catch: \"catch (Identifier ) Block\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T11.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Catch and Finally are placed into the Block of \"try\" (whitle expected outside)","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T12.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Embedded \"try\" statements followed by two \"catch\" statements","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T13.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Catch: \"catch (Identifier ) Block\". Checking if execution of \"22\" passes at the place of Identifier of \"catch\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T14.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if passing argument to \"try\" statement fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T15.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Finally: \"finally Block\". Checking if passing argument to \"try\" statement fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T2.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if execution of \"catch\" with no \"try\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T3.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if execution of \"finally\" with no \"try\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T4.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Catch: \"catch (Identifier ) Block\". Checking if execution of \"catch\" that takes no arguments fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T5.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Catch: \"catch (Identifier ) Block\". Checking if execution of \"catch\" with no Block fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T6.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Checking if execution of \"try{ catch{}{}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T7.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Checking if execution of \"try{} catch(){\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T8.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Catch: \"catch (Identifier ) Block\". Checking if execution of \"try{} catch(){finally{}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.14_The_try_Statement/S12.14_A16_T9.js"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if execution of \"catch(){} finally{}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.1_Block/S12.1_A1.js"]={"assertion":"The production Block { } in strict code can't contain function declaration","description":"Trying to declare function at the Block statement","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.1_Block/S12.1_A4_T1.js"]={"assertion":"The production Block can't be inside of expression","description":"Checking if execution of \"y={__func}()\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.1_Block/S12.1_A4_T2.js"]={"assertion":"The production Block can't be inside of expression","description":"Checking if execution of \"y={x}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T1.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x += 1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T2.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x | true\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T3.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x && 1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T4.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x++\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T5.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var --x\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T6.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x*1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T7.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x>>1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.2_Variable_Statement/S12.2_A8_T8.js"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x in __arr\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.4_Expression_Statement/S12.4_A1.js"]={"assertion":"An ExpressionStatement can not start with the function keyword because that might make it ambiguous with a FunctionDeclaration","description":"Checking if execution of \"function(){}()\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A11.js"]={"assertion":"{} within the \"if\" expression is not allowed","description":"Checking if execution of \"if({1})\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A2.js"]={"assertion":"In the \"if\" Statement eval in Expression is admitted","description":"Checking by using eval \"eval(\"true\")\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A6_T1.js"]={"assertion":"In the If statement expression must be enclosed in braces","description":"Checking if execution of \"if true\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A6_T2.js"]={"assertion":"In the If statement expression must be enclosed in braces","description":"Checking if execution of \"if false\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A8.js"]={"assertion":"In the \"if\" Statement empty expression is not allowed","description":"Checking if execution of \"if()\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A9_T1.js"]={"assertion":"Function declaration within an \"if\" statement in strict code is not allowed","description":"Declaring function within an \"if\" statement","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js"]={"assertion":"Function declaration within an \"if\" statement in strict code is not allowed","description":"Declaring function within an \"if\" that is declared within the strict function","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.5_The_if_Statement/S12.5_A9_T3.js"]={"assertion":"Function declaration within an \"if\" statement is not allowed","description":"Declaring function within an \"if\" statement that is declared within the function declaration","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A12.js"]={"assertion":"Any statement within \"do-while\" construction must be a compound","description":"Checking if execution of \"do var x=1; var y =2; while (0)\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js"]={"assertion":"FunctionDeclaration within a \"do-while\" Block in strict code is not allowed","description":"Declaring function within a \"do-while\" loop","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js"]={"assertion":"FunctionDeclaration within a \"do-while\" Block in strict code is not allowed","description":"Declaring a function within a \"do-while\" loop that is within a strict function","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T3.js"]={"assertion":"FunctionDeclaration within a \"do-while\" Block is not allowed","description":"Declaring a function within a \"do-while\" loop that is within a function declaration itself","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A15.js"]={"assertion":"Block within a \"do-while\" Expression is not allowed","description":"Using \"{0}\" Block as an Expression","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A6_T1.js"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{} while 1\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A6_T2.js"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{} while 0\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A6_T3.js"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{}while true\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A6_T4.js"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{}while false\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A6_T5.js"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{}while ''\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A6_T6.js"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{}while 'hood'\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A13_T1.js"]={"assertion":"FunctionDeclaration within a \"while\" Statement is not allowed","description":"Checking if declaring a function within a \"while\" Statement leads to an exception","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A13_T2.js"]={"assertion":"FunctionDeclaration within a \"while\" Statement is not allowed","description":"Checking if declaring a function within a \"while\" Statement that is in a function call leads to an exception","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A13_T3.js"]={"assertion":"FunctionDeclaration within a \"while\" Statement is not allowed","description":"Checking if declaring a function within a \"while\" Statement that is in a function body leads to an exception","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A15.js"]={"assertion":"Block within a \"while\" Expression is not allowed","description":"Expression is \"{0}\"","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A6_T1.js"]={"assertion":"Expression in \"while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"while 1 break\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A6_T2.js"]={"assertion":"Expression in \"while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"while 0 break\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A6_T3.js"]={"assertion":"Expression in \"while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"while true break\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A6_T4.js"]={"assertion":"Expression in \"while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"while false break\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A6_T5.js"]={"assertion":"Expression in \"while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"while '' break\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.2_The_while_statement/S12.6.2_A6_T6.js"]={"assertion":"Expression in \"while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"while 'hood' break\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A11.1_T3.js"]={"assertion":"If (Evaluate Statement).type is \"continue\" and (Evaluate Statement).target is in the current label set, iteration of labeled \"var-loop\" breaks","description":"Trying to continue non-existent label","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A11_T3.js"]={"assertion":"If (Evaluate Statement).type is \"continue\" and (Evaluate Statement).target is in the current label set, iteration of labeled loop breaks","description":"Trying to continue non-existent label","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A12.1_T3.js"]={"assertion":"If (Evaluate Statement).type is \"break\" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a \"var-loop\"","description":"Trying to break non-existent label","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A12_T3.js"]={"assertion":"If (Evaluate Statement).type is \"break\" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a loop","description":"Trying to break non-existent label","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A4.1.js"]={"assertion":"\"in\"-expression is not allowed as a ExpressionNoIn in \"for (ExpressionNoIn; FirstExpression; SecondExpression) Statement\" IterationStatement","description":"Checking if execution of \"for (var a in arr;1;){}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A4_T1.js"]={"assertion":"\"in\"-expression is not allowed as a ExpressionNoIn in \"for (ExpressionNoIn; FirstExpression; SecondExpression) Statement\" IterationStatement","description":"Checking if execution of \"for (a in arr;1;){}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A4_T2.js"]={"assertion":"\"in\"-expression is not allowed as a ExpressionNoIn in \"for (ExpressionNoIn; FirstExpression; SecondExpression) Statement\" IterationStatement","description":"Checking if execution of \"for (1 in arr;1;){}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A7.1_T1.js"]={"assertion":"Only three expressions and two semicolons in \"for(with var)\" braces are allowed.","description":"Checking if execution of \"for(var index=0; index<10; index++; index--)\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A7.1_T2.js"]={"assertion":"Only three expressions and two semicolons in \"for(with var)\" braces are allowed.","description":"Checking if execution of \"for(var index=0; index<10; index+=4; index++; index--)\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A7_T1.js"]={"assertion":"Only three expressions and two semicolons in \"for\" braces are allowed.","description":"Checking if execution of \"for(index=0; index<10; index++; index--)\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A7_T2.js"]={"assertion":"Only three expressions and two semicolons in \"for\" braces are allowed.","description":"Checking if execution of \"for(index=0; index<10; index+=4; index++; index--)\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A8.1_T1.js"]={"assertion":"Blocks within \"for(with var)\" braces are not allowed","description":"Checking if execution of \"for(var index=0; index<100; {index++; index*2;}) { arr.add(\"\"+index);}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A8.1_T2.js"]={"assertion":"Blocks within \"for(with var)\" braces are not allowed","description":"Checking if execution of \"for(var index=0; {index++;index<100;}; index*2;) { arr.add(\"\"+index);}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A8.1_T3.js"]={"assertion":"Blocks within \"for(with var)\" braces are not allowed","description":"Checking if execution of \"for({var index=0; index+=1;} index++<=10; index*2;) { arr.add(\"\"+index);}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A8_T1.js"]={"assertion":"Blocks within \"for\" braces are not allowed","description":"Checking if execution of \"for(index=0; index<100; {index++; index*2;}) { arr.add(\"\"+index);}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A8_T2.js"]={"assertion":"Blocks within \"for\" braces are not allowed","description":"Checking if execution of \"for(index=0; {index++;index<100;}; index*2;) { arr.add(\"\"+index);}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.3_The_for_Statement/S12.6.3_A8_T3.js"]={"assertion":"Blocks within \"for\" braces are not allowed","description":"Checking if execution of \"for({index=0; index+=1;} index++<=10; index*2;) { arr.add(\"\"+index);}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A13_T1.js"]={"assertion":"FunctionDeclaration within a \"for-in\" Statement is not allowed","description":"Declaring function within a \"for-in\" Statement","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A13_T2.js"]={"assertion":"FunctionDeclaration within a \"for-in\" Statement is not allowed","description":"Declaring function within a \"for-in\" Statement that is within a function call","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A13_T3.js"]={"assertion":"FunctionDeclaration within a \"for-in\" Statement is not allowed","description":"Declaring function within a \"for-in\" Statement that is within function declaration","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A15.js"]={"assertion":"Block within a \"for-in\" Expression is not allowed","description":"Using block within \"for-in\" Expression","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A1_T1.js"]={"assertion":"Appearing of continue without an IterationStatement leads to syntax error","description":"Checking if execution of single \"continue\" without any IterationStatement fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A1_T2.js"]={"assertion":"Appearing of continue without an IterationStatement leads to syntax error","description":"Checking if single \"continue\" with Label but without any IterationStatement fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A1_T3.js"]={"assertion":"Appearing of continue without an IterationStatement leads to syntax error","description":"Checking if laballed \"continue\" with no IterationStatement, placed into a block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A1_T4.js"]={"assertion":"Appearing of continue without an IterationStatement leads to syntax error","description":"Checking if execution of \"continue\" with no IterationStatement, placed into a block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A5_T1.js"]={"assertion":"When \"continue Identifier\" is evaluated Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement","description":"Trying to continue another labeled loop","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A5_T2.js"]={"assertion":"When \"continue Identifier\" is evaluated Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement","description":"Identifier is a function name","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A5_T3.js"]={"assertion":"When \"continue Identifier\" is evaluated Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement","description":"Identifier is within loop label","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A6.js"]={"assertion":"Appearing of \"continue\" within a function call that is within an IterationStatement yields SyntaxError","description":"Using labaled \"continue Identifier\" within a function body","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A8_T1.js"]={"assertion":"Appearing of \"continue\" within a \"try\/catch\" Block yields SyntaxError","description":"Checking if execution of \"continue Identifier\" within catch Block fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.7_The_continue_Statement/S12.7_A8_T2.js"]={"assertion":"Appearing of \"continue\" within a \"try\/catch\" Block yields SyntaxError","description":"Checking if execution of \"continue\" within catch Block fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A1_T1.js"]={"assertion":"Appearing of break without an IterationStatement leads to syntax error","description":"Checking if break statement with no loop fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A1_T2.js"]={"assertion":"Appearing of break without an IterationStatement leads to syntax error","description":"Checking if break Identifier with no loop fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A1_T3.js"]={"assertion":"Appearing of break without an IterationStatement leads to syntax error","description":"Checking if break statement with no loop, placed into a block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A1_T4.js"]={"assertion":"Appearing of break without an IterationStatement leads to syntax error","description":"Checking if break Identifier with no loop, placed into a block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A5_T1.js"]={"assertion":"Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement","description":"Checking if breaking another labeled loop fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A5_T2.js"]={"assertion":"Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement","description":"Checking if using function name as an Identifier appears to be invalid","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A5_T3.js"]={"assertion":"Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement","description":"Checking if using internal loop label as an Identifier appears to be invalid","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A6.js"]={"assertion":"Appearing of \"break\" within a function call that is nested in a IterationStatement yields SyntaxError","description":"Checking if using \"break Identifier\" within a function body appears to be invalid","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A8_T1.js"]={"assertion":"Appearing of \"break\" within \"try\/catch\" Block yields SyntaxError","description":"Checking if using \"break Identifier\" from within catch Block appears to be invalid","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.8_The_break_Statement/S12.8_A8_T2.js"]={"assertion":"Appearing of \"break\" within \"try\/catch\" Block yields SyntaxError","description":"Checking if using \"break Identifier\" from within catch Block appears to be invalid","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T1.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return\" with no function fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T10.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return (0)\" with no function fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T2.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return x\" with no function fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T3.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return\" within \"try\" statement fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T4.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return\" with no function fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T5.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return\" with no function, placed into a Block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T6.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return\" with no function, placed into a loop, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T7.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return x\" with no function, placed inside Block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T8.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return x\" with no function, placed into a loop, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/12_Statement/12.9_The_return_Statement/S12.9_A1_T9.js"]={"assertion":"Appearing of \"return\" without a function body leads to syntax error","description":"Checking if execution of \"return\", placed into a catch Block, fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/13_Function_Definition/13.0_Chapter/S13.0_A7_T3.js"]={"assertion":"The FunctionBody must be SourceElements","description":"Checking if execution of \"function __func(){\\A\\B\\C}\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T2.js"]={"assertion":"DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]","description":"It is an error if n is greater than the total number of left capturing parentheses in the entire regular expression","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T3.js"]={"assertion":"DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]","description":"It is an error if n is greater than the total number of left capturing parentheses in the entire regular expression","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.1_The_Global_Object/S15.1_A1_T1.js"]={"assertion":"The global object does not have a [[Construct]] property","description":"It is not possible to use the global object as a constructor","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.1_The_Global_Object/S15.1_A1_T2.js"]={"assertion":"The global object does not have a [[Construct]] property","description":"It is not possible to use the global object as a constructor","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.1_The_Global_Object/S15.1_A2_T1.js"]={"assertion":"The global object does not have a [[Call]] property","description":"It is not possible to invoke the global object as a function","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.1_eval/S15.1.2.1_A2_T2.js"]={"assertion":"If the parse fails, throw a SyntaxError exception (but see also clause 16)","description":"Checking if execution of \"eval(\"x = 1; x\\u000A++\")\" fails","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A12.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A13.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.4_Object.prototype.valueOf/S15.2.4.4_A12.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"Checking Object.prototype.valueOf invoked by the 'call' property.","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.4_Object.prototype.valueOf/S15.2.4.4_A13.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"Checking Object.prototype.valueOf invoked by the 'call' property.","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.4_Object.prototype.valueOf/S15.2.4.4_A14.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"Checking Object.prototype.valueOf invoked by the 'call' property.","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.5_Object.prototype.hasOwnProperty/S15.2.4.5_A12.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.5_Object.prototype.hasOwnProperty/S15.2.4.5_A13.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.6_Object.prototype.isPrototypeOf/S15.2.4.6_A12.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.6_Object.prototype.isPrototypeOf/S15.2.4.6_A13.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.7_Object.prototype.propertyIsEnumerable/S15.2.4.7_A12.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.7_Object.prototype.propertyIsEnumerable/S15.2.4.7_A13.js"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A12.js"]={"assertion":"The Function.prototype.toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A13.js"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A14.js"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A15.js"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"Whether or not they are callable, RegExp objects are not Function objects, so toString should throw a TypeError.","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A16.js"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"The String constructor, given an object, should invoke that object's toString method as a method, i.e., with its this value bound to that object.","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.3_Function.prototype.apply/S15.3.4.3_A13.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.3_Function.prototype.apply/S15.3.4.3_A14.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.3_Function.prototype.apply/S15.3.4.3_A15.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.4_Function.prototype.call/S15.3.4.4_A13.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.4_Function.prototype.call/S15.3.4.4_A14.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.4_Function.prototype.call/S15.3.4.4_A15.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js"]={"assertion":"\"caller\" of bound function is poisoned (step 20)","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A13.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A14.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A15.js"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","negative":"."};
|
||||
GlobalScopeTests["TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A2.js"]={"assertion":"\"arguments\" of bound function is poisoned (step 21)","description":"","negative":"."};
|
|
@ -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.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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T1.js",
|
||||
|
||||
assertion: "HORIZONTAL TAB (U+0009) between any two tokens is allowed",
|
||||
|
||||
description: "Insert HORIZONTAL TAB(\\u0009 and \\t) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,38 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.1_T2.js",
|
||||
|
||||
assertion: "HORIZONTAL TAB (U+0009) between any two tokens is allowed",
|
||||
|
||||
description: "Insert real HORIZONTAL TAB between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//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,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.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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T1.js",
|
||||
|
||||
assertion: "VERTICAL TAB (U+000B) between any two tokens is allowed",
|
||||
|
||||
description: "Insert VERTICAL TAB(\\u000B and \\v) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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_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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.2_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.2_T2.js",
|
||||
|
||||
assertion: "VERTICAL TAB (U+000B) between any two tokens is allowed",
|
||||
|
||||
description: "Insert real VERTICAL TAB between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//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,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.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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.3_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T1.js",
|
||||
|
||||
assertion: "FORM FEED (U+000C) between any two tokens is allowed",
|
||||
|
||||
description: "Insert FORM FEED(\\u000C and \\f) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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_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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.3_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.3_T2.js",
|
||||
|
||||
assertion: "FORM FEED (U+000C) between any two tokens is allowed",
|
||||
|
||||
description: "Insert real FORM FEED between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//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,38 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.4_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T1.js",
|
||||
|
||||
assertion: "SPACE (U+0020) between any two tokens is allowed",
|
||||
|
||||
description: "Insert SPACE(\\u0020) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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.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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.4_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.4_T2.js",
|
||||
|
||||
assertion: "SPACE (U+0020) between any two tokens is allowed",
|
||||
|
||||
description: "Insert real SPACE between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//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,38 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.5_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T1.js",
|
||||
|
||||
assertion: "NO-BREAK SPACE (U+00A0) between any two tokens is allowed",
|
||||
|
||||
description: "Insert NO-BREAK SPACE(\\u00A0) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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.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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A1.5_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T2.js",
|
||||
|
||||
assertion: "NO-BREAK SPACE (U+00A0) between any two tokens is allowed",
|
||||
|
||||
description: "Insert real NO-BREAK SPACE between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//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,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T1.js",
|
||||
|
||||
assertion: "HORIZONTAL TAB (U+0009) may occur within strings",
|
||||
|
||||
description: "Use HORIZONTAL TAB(\\u0009 and \\t)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,31 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.1_T2.js",
|
||||
|
||||
assertion: "HORIZONTAL TAB (U+0009) may occur within strings",
|
||||
|
||||
description: "Use real HORIZONTAL TAB",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
if (" str ing " !== "\u0009str\u0009ing\u0009") {
|
||||
$ERROR('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T1.js",
|
||||
|
||||
assertion: "VERTICAL TAB (U+000B) may occur within strings",
|
||||
|
||||
description: "Use VERTICAL TAB(\\u000B and \\v)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,31 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.2_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.2_T2.js",
|
||||
|
||||
assertion: "VERTICAL TAB (U+000B) may occur within strings",
|
||||
|
||||
description: "Use real VERTICAL TAB",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
if ("string" !== "\u000Bstr\u000Bing\u000B") {
|
||||
$ERROR('#1: "string" === "\\u000Bstr\\u000Bing\\u000B"');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.3_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T1.js",
|
||||
|
||||
assertion: "FORM FEED (U+000C) may occur within strings",
|
||||
|
||||
description: "Use FORM FEED(\\u000C and \\f)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,31 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.3_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.3_T2.js",
|
||||
|
||||
assertion: "FORM FEED (U+000C) may occur within strings",
|
||||
|
||||
description: "Use real FORM FEED",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
if ("string" !== "\u000Cstr\u000Cing\u000C") {
|
||||
$ERROR('#1: "string" === "\\u000Cstr\\u000Cing\\u000C"');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.4_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T1.js",
|
||||
|
||||
assertion: "SPACE (U+0020) may occur within strings",
|
||||
|
||||
description: "Use SPACE(\\u0020)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,31 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.4_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.4_T2.js",
|
||||
|
||||
assertion: "SPACE (U+0020) may occur within strings",
|
||||
|
||||
description: "Use real SPACE",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
if (" str ing " !== "\u0020str\u0020ing\u0020") {
|
||||
$ERROR('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,31 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.5_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T1.js",
|
||||
|
||||
assertion: "NO-BREAK SPACE (U+00A0) may occur within strings",
|
||||
|
||||
description: "Use NO-BREAK SPACE(\\u00A0)",
|
||||
|
||||
test: function testcase() {
|
||||
// CHECK#1
|
||||
if (eval("'\u00A0str\u00A0ing\u00A0'") !== "\u00A0str\u00A0ing\u00A0") {
|
||||
$ERROR('#1: eval("\'\\u00A0str\\u00A0ing\\u00A0\'") === "\\u00A0str\\u00A0ing\\u00A0"');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,31 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A2.5_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A2.5_T2.js",
|
||||
|
||||
assertion: "NO-BREAK SPACE (U+00A0) may occur within strings",
|
||||
|
||||
description: "Use real NO-BREAK SPACE",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
if (" str ing " !== "\u00A0str\u00A0ing\u00A0") {
|
||||
$ERROR('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T1.js",
|
||||
|
||||
assertion: "Single line comment can contain HORIZONTAL TAB (U+0009)",
|
||||
|
||||
description: "Use HORIZONTAL TAB(\\u0009)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.1_T2.js",
|
||||
|
||||
assertion: "Single line comment can contain HORIZONTAL TAB (U+0009)",
|
||||
|
||||
description: "Use real HORIZONTAL TAB",
|
||||
|
||||
test: function testcase() {
|
||||
//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,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T1.js",
|
||||
|
||||
assertion: "Single line comment can contain VERTICAL TAB (U+000B)",
|
||||
|
||||
description: "Use VERTICAL TAB(\\u000B)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.2_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.2_T2.js",
|
||||
|
||||
assertion: "Single line comment can contain VERTICAL TAB (U+000B)",
|
||||
|
||||
description: "Use real VERTICAL TAB",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
//singlelinecommentx = 1;
|
||||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.3_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T1.js",
|
||||
|
||||
assertion: "Single line comment can contain FORM FEED (U+000C)",
|
||||
|
||||
description: "Use FORM FEED(\\u000C)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.3_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.3_T2.js",
|
||||
|
||||
assertion: "Single line comment can contain FORM FEED (U+000C)",
|
||||
|
||||
description: "Use real FORM FEED",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
//singlelinecommentx = 1;
|
||||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.4_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T1.js",
|
||||
|
||||
assertion: "Single line comment can contain SPACE (U+0020)",
|
||||
|
||||
description: "Use SPACE(\\u0020)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.4_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.4_T2.js",
|
||||
|
||||
assertion: "Single line comment can contain SPACE (U+0020)",
|
||||
|
||||
description: "Use real SPACE",
|
||||
|
||||
test: function testcase() {
|
||||
//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,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.5_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T1.js",
|
||||
|
||||
assertion: "Single line comment can contain NO-BREAK SPACE (U+00A0)",
|
||||
|
||||
description: "Use NO-BREAK SPACE(\\u00A0)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A3.5_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A3.5_T2.js",
|
||||
|
||||
assertion: "Single line comment can contain NO-BREAK SPACE (U+00A0)",
|
||||
|
||||
description: "Use real NO-BREAK SPACE",
|
||||
|
||||
test: function testcase() {
|
||||
//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,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain HORIZONTAL TAB (U+0009)",
|
||||
|
||||
description: "Use HORIZONTAL TAB(\\u0009)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain HORIZONTAL TAB (U+0009)",
|
||||
|
||||
description: "Use real HORIZONTAL TAB",
|
||||
|
||||
test: function testcase() {
|
||||
/*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,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain VERTICAL TAB (U+000B)",
|
||||
|
||||
description: "Use VERTICAL TAB(\\u000B)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.2_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.2_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain VERTICAL TAB (U+000B)",
|
||||
|
||||
description: "Use real VERTICAL TAB",
|
||||
|
||||
test: function testcase() {
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
/*multilinecommentx = 1;*/
|
||||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.3_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain FORM FEED (U+000C)",
|
||||
|
||||
description: "Use FORM FEED(\\u000C)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.3_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.3_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain FORM FEED (U+000C)",
|
||||
|
||||
description: "Use real FORM FEED",
|
||||
|
||||
test: function testcase() {
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
/*multilinecommentx = 1;*/
|
||||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.4_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain SPACE (U+0020)",
|
||||
|
||||
description: "Use SPACE(\\u0020)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.4_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.4_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain SPACE (U+0020)",
|
||||
|
||||
description: "Use real SPACE",
|
||||
|
||||
test: function testcase() {
|
||||
/*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,36 +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);
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.5_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain NO-BREAK SPACE (U+00A0)",
|
||||
|
||||
description: "Use NO-BREAK SPACE(\\u00A0)",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,33 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.2_A4.5_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.5_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain NO-BREAK SPACE (U+00A0)",
|
||||
|
||||
description: "Use real NO-BREAK SPACE",
|
||||
|
||||
test: function testcase() {
|
||||
/*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,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u0009x;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u000Bx;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u000Cx;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u0020x;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u00A0x;
|
||||
|
||||
|
|
@ -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_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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A1.1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A1.1_T1.js",
|
||||
|
||||
assertion: "LINE FEED (U+000A) may occur between any two tokens",
|
||||
|
||||
description: "Insert LINE FEED (\\u000A and \\n) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,35 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A1.1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A1.1_T2.js",
|
||||
|
||||
assertion: "LINE FEED (U+000A) may occur between any two tokens",
|
||||
|
||||
description: "Insert real LINE FEED between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
var
|
||||
x
|
||||
=
|
||||
1;
|
||||
if (x !== 1) {
|
||||
$ERROR('#1: var\\nx\\n=\\n1\\n; 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_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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A1.2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A1.2_T1.js",
|
||||
|
||||
assertion: "CARRIAGE RETURN (U+000D) may occur between any two tokens",
|
||||
|
||||
description: "Insert CARRIAGE RETURN (\\u000D and \\r) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,28 +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;
|
||||
*/
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A1.2_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A1.2_T2.js",
|
||||
|
||||
assertion: "CARRIAGE RETURN (U+000D) may occur between any two tokens",
|
||||
|
||||
description: "Insert real CARRIAGE RETURN between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
//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.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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A1.3",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A1.3.js",
|
||||
|
||||
assertion: "LINE SEPARATOR (U+2028) may occur between any two tokens",
|
||||
|
||||
description: "Insert LINE SEPARATOR (\\u2028) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,41 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A1.4",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A1.4.js",
|
||||
|
||||
assertion: "PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens",
|
||||
|
||||
description: "Insert PARAGRAPH SEPARATOR (\\u2029) between tokens of var x=1",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,12 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u000Astr\u000Aing\u000A'") === "\u000Astr\u000Aing\u000A") {
|
||||
$ERROR('#1: eval("\'\\u000Astr\\u000Aing\\u000A\'") === "\\u000Astr\\u000Aing\\u000A"');
|
||||
}
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
//CHECK#1
|
||||
"
|
||||
str
|
||||
ing
|
||||
";
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u000Dstr\u000Ding\u000D'") === "\u000Dstr\u000Ding\u000D") {
|
||||
$ERROR('#1: eval("\'\\u000Dstr\\u000Ding\\u000D\'") === "\\u000Dstr\\u000Ding\\u000D"');
|
||||
}
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
//CHECK#1
"
str
ing
";
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u2028str\u2028ing\u2028'") === "\u2028str\u2028ing\u2028") {
|
||||
$ERROR('#1: eval("\'\\u2028str\\u2028ing\\u2028\'") === "\\u2028str\\u2028ing\\u2028"');
|
||||
}
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
|
||||
if (eval("'\u2029str\u2029ing\u2029'") === "\u2029str\u2029ing\u2029") {
|
||||
$ERROR('#1: eval("\'\\u2029str\\u2029ing\\u2029\'") === "\\u2029str\\u2029ing\\u2029"');
|
||||
}
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("// single line \u000A comment");
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("//\u000A single line comment");
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
|
||||
//single
|
||||
line comment
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("// single line \u000D comment");
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("//\u000D single line comment");
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
//single
line comment
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("// single line \u2028 comment");
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("//\u2028 single line comment");
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("// single line \u2029 comment");
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
// CHECK#1
eval("//\u2029 single line comment");
|
||||
|
||||
|
|
@ -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_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;
*/
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A4_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A4_T1.js",
|
||||
|
||||
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",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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_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;
*/
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A4_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A4_T2.js",
|
||||
|
||||
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",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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_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;
*/
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A4_T3",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A4_T3.js",
|
||||
|
||||
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",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,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_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;
*/
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A4_T4",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A4_T4.js",
|
||||
|
||||
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",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,36 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A5.1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.1_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain LINE FEED (U+000A)",
|
||||
|
||||
description: "Insert LINE FEED (U+000A) into multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,38 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A5.1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.1_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain LINE FEED (U+000A)",
|
||||
|
||||
description: "Insert real LINE FEED into multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
/*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,36 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A5.2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.2_T1.js",
|
||||
|
||||
assertion: "Multi line comment can contain CARRIAGE RETURN (U+000D)",
|
||||
|
||||
description: "Insert CARRIAGE RETURN (U+000D) into multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,27 +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;
|
||||
*/
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A5.2_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.2_T2.js",
|
||||
|
||||
assertion: "Multi line comment can contain CARRIAGE RETURN (U+000D)",
|
||||
|
||||
description: "Insert real CARRIAGE RETURN into multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
/*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,36 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A5.3",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js",
|
||||
|
||||
assertion: "Multi line comment can contain LINE SEPARATOR (U+2028)",
|
||||
|
||||
description: "Insert LINE SEPARATOR (U+2028) into multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,36 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A5.4",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.4.js",
|
||||
|
||||
assertion: "Multi line comment can contain LINE SEPARATOR (U+2029)",
|
||||
|
||||
description: "Insert PARAGRAPH SEPARATOR (U+2029) into multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u000Ax;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u000Dx;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u2028x;
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
var\u2029x;
|
||||
|
||||
|
|
@ -1,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T1.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y+z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T2.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y-z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T3",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T3.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y*z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T4",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T4.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y/z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T5",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T5.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y%z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T6",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T6.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y>>z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T7",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T7.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y<<z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,73 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.3_A7_T8",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A7_T8.js",
|
||||
|
||||
assertion: "Line Terminators between operators are allowed",
|
||||
|
||||
description: "Insert Line Terminator in var x=y<z",
|
||||
|
||||
test: function testcase() {
|
||||
// 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,60 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.4_A1_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A1_T1.js",
|
||||
|
||||
assertion: "Correct interpretation of single line comments",
|
||||
|
||||
description: "Create comments with any code",
|
||||
|
||||
test: function testcase() {
|
||||
//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,29 +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: ///;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.4_A1_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A1_T2.js",
|
||||
|
||||
assertion: "Correct interpretation of single line comments",
|
||||
|
||||
description: "Simple test, create empty comment: ///",
|
||||
|
||||
test: function testcase() {
|
||||
//CHECK#1
|
||||
///
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,94 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.4_A2_T1",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A2_T1.js",
|
||||
|
||||
assertion: "Correct interpretation of multi line comments",
|
||||
|
||||
description: "Create comments with any code",
|
||||
|
||||
test: function testcase() {
|
||||
/*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,9 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
/*CHECK#1/
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
/*
|
||||
var
|
||||
|
||||
/* x */
|
||||
= 1;
|
||||
*/
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
/* var*/
|
||||
x*/
|
||||
|
||||
|
|
@ -1,31 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.4_A4_T2",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A4_T2.js",
|
||||
|
||||
assertion: "Single and Multi line comments are used together",
|
||||
|
||||
description: "Fist Multi line comment, then Single line comment",
|
||||
|
||||
test: function testcase() {
|
||||
/*CHECK#1*/
|
||||
|
||||
/* var
|
||||
*///x*/
|
||||
|
||||
}
|
||||
});
|
||||
|
|
@ -1,32 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.4_A4_T3",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A4_T3.js",
|
||||
|
||||
assertion: "Single and Multi line comments are used together",
|
||||
|
||||
description: "Insert Single line comment into Multi line comment",
|
||||
|
||||
test: function testcase() {
|
||||
/*CHECK#1*/
|
||||
|
||||
/* var
|
||||
//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.
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
/*CHECK#1*/
|
||||
|
||||
// var /*
|
||||
x*/
|
||||
|
||||
|
|
@ -1,30 +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;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S7.4_A4_T5",
|
||||
|
||||
path: "TestCases/07_Lexical_Conventions/7.4_Comments/S7.4_A4_T5.js",
|
||||
|
||||
assertion: "Single and Multi line comments are used together",
|
||||
|
||||
description: "Insert Multi line comment into Single line comment",
|
||||
|
||||
test: function testcase() {
|
||||
/*CHECK#1*/
|
||||
|
||||
// var /* x */
|
||||
|
||||
}
|
||||
});
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue