From 42543b07806ca9b9bec73eda91afa657f57c64bc Mon Sep 17 00:00:00 2001 From: Rupinder Singh Khokhar Date: Wed, 11 Jun 2014 09:13:22 +0530 Subject: Adding the latest test files without fixing the INDEXes or the test interfaces --- test/data/tokeniser2/domjs.test | 91 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 test/data/tokeniser2/domjs.test (limited to 'test/data/tokeniser2/domjs.test') diff --git a/test/data/tokeniser2/domjs.test b/test/data/tokeniser2/domjs.test new file mode 100644 index 0000000..b9e650c --- /dev/null +++ b/test/data/tokeniser2/domjs.test @@ -0,0 +1,91 @@ +{ + "tests": [ + { + "description":"CR in bogus comment state", + "input":"", + "output":[["EndTag","xmp"]] + }, + { + "description":"bad endtag in RCDATA and RAWTEXT", + "initialStates":["RCDATA state", "RAWTEXT state"], + "lastStartTag":"xmp", + "input":"", + "output":[["Character",""]] + }, + { + "description":"bad endtag in RCDATA and RAWTEXT", + "initialStates":["RCDATA state", "RAWTEXT state"], + "lastStartTag":"xmp", + "input":"", + "output":[["Character",""]] + }, + { + "description":"bad endtag in RCDATA and RAWTEXT", + "initialStates":["RCDATA state", "RAWTEXT state"], + "lastStartTag":"xmp", + "input":"", + "output":[["StartTag", "p", {"id":"\u2242\u0338"}]] + }, + { + "description":"--!NUL in comment ", + "doubleEscaped":true, + "input":"", + "output":["ParseError", "ParseError", ["Comment", "--!\\uFFFD"]] + }, + { + "description":"space EOF after doctype ", + "input":"