From 32386253b3e285406fc5bc5cbd2567b14a18524f Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Mon, 16 Jun 2008 05:37:06 +0000 Subject: Update the testsuite to match the tokeniser. Also, import new html5lib tests for better coverage. Known issue: the tokeniser test stalls using the testrunner script. svn path=/trunk/hubbub/; revision=4356 --- test/data/tokeniser2/escapeFlag.test | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/data/tokeniser2/escapeFlag.test (limited to 'test/data/tokeniser2/escapeFlag.test') diff --git a/test/data/tokeniser2/escapeFlag.test b/test/data/tokeniser2/escapeFlag.test new file mode 100644 index 0000000..8736c3c --- /dev/null +++ b/test/data/tokeniser2/escapeFlag.test @@ -0,0 +1,33 @@ +{"tests": [ + +{"description":"Commented close tag in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foo", +"output":[["Character", "foo"], ["EndTag", "pre"]]}, + +{"description":"Bogus comment in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foobaz", +"output":[["Character", "foobaz"], ["EndTag", "pre"]]}, + +{"description":"End tag surrounded by bogus comment in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foobaz", +"output":[["Character", "foo"], ["EndTag", "pre"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "pre"]]}, + +{"description":"Commented entities in RCDATA", +"contentModelFlags":["RCDATA"], +"lastStartTag":"pre", +"input":" & & ", +"output":[["Character", " & & "], ["EndTag", "pre"]]}, + +{"description":"Incorrect comment ending sequences in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foox--<>", +"output":[["Character", "foox--<>"]]} + +]} -- cgit v1.2.3