diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-10 12:49:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-10 12:49:49 +0000 |
commit | a6a2f7a824491d82af40f1ce8699ef4eb7d192e3 (patch) | |
tree | adf73cd5fbdd41250b13c2367c001ff50cf661f2 /test/data/tokeniser2/escapeFlag.test | |
parent | fb097fc6e5e031c38cf9d81275559928064cd42e (diff) | |
download | libhubbub-a6a2f7a824491d82af40f1ce8699ef4eb7d192e3.tar.gz libhubbub-a6a2f7a824491d82af40f1ce8699ef4eb7d192e3.tar.bz2 |
Sync tokeniser tests with html5lib.
Sync tokeniser implementation with the spec.
Fix handling of \0 in the tag open state.
The unicodeCharacters test is disabled, as json-c doesn't like it.
svn path=/trunk/hubbub/; revision=6755
Diffstat (limited to 'test/data/tokeniser2/escapeFlag.test')
-rw-r--r-- | test/data/tokeniser2/escapeFlag.test | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/data/tokeniser2/escapeFlag.test b/test/data/tokeniser2/escapeFlag.test index 8736c3c..4c4bf51 100644 --- a/test/data/tokeniser2/escapeFlag.test +++ b/test/data/tokeniser2/escapeFlag.test @@ -2,32 +2,32 @@ {"description":"Commented close tag in [R]CDATA", "contentModelFlags":["RCDATA", "CDATA"], -"lastStartTag":"pre", -"input":"foo<!--</pre>--></pre>", -"output":[["Character", "foo<!--</pre>-->"], ["EndTag", "pre"]]}, +"lastStartTag":"xmp", +"input":"foo<!--</xmp>--></xmp>", +"output":[["Character", "foo<!--</xmp>-->"], ["EndTag", "xmp"]]}, {"description":"Bogus comment in [R]CDATA", "contentModelFlags":["RCDATA", "CDATA"], -"lastStartTag":"pre", -"input":"foo<!-->baz</pre>", -"output":[["Character", "foo<!-->baz"], ["EndTag", "pre"]]}, +"lastStartTag":"xmp", +"input":"foo<!-->baz</xmp>", +"output":[["Character", "foo<!-->baz"], ["EndTag", "xmp"]]}, {"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"]]}, +"lastStartTag":"xmp", +"input":"foo<!--></xmp><!-->baz</xmp>", +"output":[["Character", "foo<!-->"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]]}, {"description":"Commented entities in RCDATA", "contentModelFlags":["RCDATA"], -"lastStartTag":"pre", -"input":" & <!-- & --> & </pre>", -"output":[["Character", " & <!-- & --> & "], ["EndTag", "pre"]]}, +"lastStartTag":"xmp", +"input":" & <!-- & --> & </xmp>", +"output":[["Character", " & <!-- & --> & "], ["EndTag", "xmp"]]}, {"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>"]]} +"lastStartTag":"xmp", +"input":"foo<!-- x --x>x-- >x--!>x--<></xmp>", +"output":[["Character", "foo<!-- x --x>x-- >x--!>x--<></xmp>"]]} ]} |