summaryrefslogtreecommitdiff
path: root/test/data/tokeniser2/escapeFlag.test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-10 12:49:49 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-10 12:49:49 +0000
commita6a2f7a824491d82af40f1ce8699ef4eb7d192e3 (patch)
treeadf73cd5fbdd41250b13c2367c001ff50cf661f2 /test/data/tokeniser2/escapeFlag.test
parentfb097fc6e5e031c38cf9d81275559928064cd42e (diff)
downloadlibhubbub-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.test30
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":" &amp; <!-- &amp; --> &amp; </pre>",
-"output":[["Character", " & <!-- &amp; --> & "], ["EndTag", "pre"]]},
+"lastStartTag":"xmp",
+"input":" &amp; <!-- &amp; --> &amp; </xmp>",
+"output":[["Character", " & <!-- &amp; --> & "], ["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>"]]}
]}