diff options
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>"]]} + +]} |