diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-06-16 05:37:06 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-06-16 05:37:06 +0000 |
commit | 32386253b3e285406fc5bc5cbd2567b14a18524f (patch) | |
tree | 23824c752b7dd5e60e7a88042b21e2b5e70e5d38 /test/data/tokeniser2/escapeFlag.test | |
parent | dfdc3e098d65ebcd7bc0c247d179201f81132ccb (diff) | |
download | libhubbub-32386253b3e285406fc5bc5cbd2567b14a18524f.tar.gz libhubbub-32386253b3e285406fc5bc5cbd2567b14a18524f.tar.bz2 |
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
Diffstat (limited to 'test/data/tokeniser2/escapeFlag.test')
-rw-r--r-- | test/data/tokeniser2/escapeFlag.test | 33 |
1 files changed, 33 insertions, 0 deletions
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<!--</pre>--></pre>", +"output":[["Character", "foo<!--</pre>-->"], ["EndTag", "pre"]]}, + +{"description":"Bogus comment in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foo<!-->baz</pre>", +"output":[["Character", "foo<!-->baz"], ["EndTag", "pre"]]}, + +{"description":"End tag surrounded by bogus comment in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foo<!--></pre><!-->baz</pre>", +"output":[["Character", "foo<!-->"], ["EndTag", "pre"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "pre"]]}, + +{"description":"Commented entities in RCDATA", +"contentModelFlags":["RCDATA"], +"lastStartTag":"pre", +"input":" & <!-- & --> & </pre>", +"output":[["Character", " & <!-- & --> & "], ["EndTag", "pre"]]}, + +{"description":"Incorrect comment ending sequences in [R]CDATA", +"contentModelFlags":["RCDATA", "CDATA"], +"lastStartTag":"pre", +"input":"foo<!-- x --x>x-- >x--!>x--<></pre>", +"output":[["Character", "foo<!-- x --x>x-- >x--!>x--<></pre>"]]} + +]} |