diff options
Diffstat (limited to 'website/resources/scripts/testcases2/7.6.json')
-rw-r--r-- | website/resources/scripts/testcases2/7.6.json | 224 |
1 files changed, 224 insertions, 0 deletions
diff --git a/website/resources/scripts/testcases2/7.6.json b/website/resources/scripts/testcases2/7.6.json new file mode 100644 index 000000000..45dc90613 --- /dev/null +++ b/website/resources/scripts/testcases2/7.6.json @@ -0,0 +1,224 @@ +{ + "testCollection": { + "name": "7.6", + "numTests": 36, + "tests": [ + { + "id": "7.6-1", + "path": "TestCases/chapter07/7.6/7.6-1.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: null (null)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u006eull = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-10", + "path": "TestCases/chapter07/7.6/7.6-10.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: new (new)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var n\\u0065w = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-11", + "path": "TestCases/chapter07/7.6/7.6-11.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: var (var)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var va\\u0072 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-12", + "path": "TestCases/chapter07/7.6/7.6-12.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: try (try)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0074\\u0072\\u0079 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-13", + "path": "TestCases/chapter07/7.6/7.6-13.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: catch (catch)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0063atch = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-14", + "path": "TestCases/chapter07/7.6/7.6-14.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: finally (finally)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var fina\\u006cly = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-15", + "path": "TestCases/chapter07/7.6/7.6-15.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: return (return)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var retur\\u006e = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-16", + "path": "TestCases/chapter07/7.6/7.6-16.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: void (void)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0076\\u006f\\u0069\\u0064 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-17", + "path": "TestCases/chapter07/7.6/7.6-17.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: continue (continue)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0063ontinue = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-18", + "path": "TestCases/chapter07/7.6/7.6-18.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: for (for)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var f\\u006fr = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-19", + "path": "TestCases/chapter07/7.6/7.6-19.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: switch (switch)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var switc\\u0068 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-2", + "path": "TestCases/chapter07/7.6/7.6-2.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: true (true)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var tr\\u0075e = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-20", + "path": "TestCases/chapter07/7.6/7.6-20.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: while (while)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0077\\u0068\\u0069\\u006c\\u0065 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-21", + "path": "TestCases/chapter07/7.6/7.6-21.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: debugger (debugger)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0064ebugger = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-22", + "path": "TestCases/chapter07/7.6/7.6-22.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: function (function)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var func\\u0074ion = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-23", + "path": "TestCases/chapter07/7.6/7.6-23.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: this (this)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var thi\\u0073 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-24", + "path": "TestCases/chapter07/7.6/7.6-24.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: if (if)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0069\\u0066 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-25", + "path": "TestCases/chapter07/7.6/7.6-25.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: with (with)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0077ith = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-26", + "path": "TestCases/chapter07/7.6/7.6-26.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: default (default)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var def\\u0061ult = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-27", + "path": "TestCases/chapter07/7.6/7.6-27.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: throw (throw)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var thro\\u0077 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-28", + "path": "TestCases/chapter07/7.6/7.6-28.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: in (in)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0069\\u006e = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-29", + "path": "TestCases/chapter07/7.6/7.6-29.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: delete (delete)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0064elete = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-3", + "path": "TestCases/chapter07/7.6/7.6-3.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: false (false)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var fals\\u0065 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-30", + "path": "TestCases/chapter07/7.6/7.6-30.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: class (class)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var cla\\u0073s = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-31", + "path": "TestCases/chapter07/7.6/7.6-31.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: extends (extends)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var extend\\u0073 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-32", + "path": "TestCases/chapter07/7.6/7.6-32.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: enum (enum)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0065\\u006e\\u0075\\u006d = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-33", + "path": "TestCases/chapter07/7.6/7.6-33.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: super (super)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0073uper = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-34", + "path": "TestCases/chapter07/7.6/7.6-34.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: const (const)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var co\\u006est = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-35", + "path": "TestCases/chapter07/7.6/7.6-35.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: export (export)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var expor\\u0074 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-36", + "path": "TestCases/chapter07/7.6/7.6-36.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: import (import)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0069\\u006d\\u0070\\u006f\\u0072\\u0074 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-4", + "path": "TestCases/chapter07/7.6/7.6-4.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: break (break)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0062\\u0072\\u0065\\u0061\\u006b = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-5", + "path": "TestCases/chapter07/7.6/7.6-5.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: case (case)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0063ase = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-6", + "path": "TestCases/chapter07/7.6/7.6-6.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: instanceof (instanceof)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var insta\\u006eceof = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-7", + "path": "TestCases/chapter07/7.6/7.6-7.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: typeof (typeof)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var typeo\\u0066 = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-8", + "path": "TestCases/chapter07/7.6/7.6-8.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: do (do)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0064\\u006f = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + }, + { + "id": "7.6-9", + "path": "TestCases/chapter07/7.6/7.6-9.js", + "description": "7.6 - SyntaxError expected: reserved words used as Identifier Names in UTF8: else (else) (null)", + "test": "assertTrue((function testcase() {\n try {\n eval(\"var \\u0065lse = 123;\"); \n return false;\n } catch (e) {\n return e instanceof SyntaxError; \n }\n }).call(this));\n" + } + ] + } +} |