From a6a2f7a824491d82af40f1ce8699ef4eb7d192e3 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 10 Mar 2009 12:49:49 +0000 Subject: 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 --- test/data/tokeniser2/test4.test | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'test/data/tokeniser2/test4.test') diff --git a/test/data/tokeniser2/test4.test b/test/data/tokeniser2/test4.test index 0f6d12c..ec8f72c 100644 --- a/test/data/tokeniser2/test4.test +++ b/test/data/tokeniser2/test4.test @@ -18,7 +18,7 @@ {"description":"== attribute", "input":"", -"output":["ParseError", ["StartTag", "z", {"=": ""}]]}, +"output":["ParseError", "ParseError", ["StartTag", "z", {"=": ""}]]}, {"description":"=== attribute", "input":"", @@ -48,6 +48,10 @@ "input":"bar", "output":["ParseError",["StartTag","z",{"z":"&xlink_xmlns;"}],["Character","bar"],["StartTag","z",{}]]}, +{"description":"Text after hex character reference", +"input":"bar", +"output":[["StartTag","z",{"z":" foo"}],["Character","bar"],["StartTag","z",{}]]}, + {"description":"Attribute name starting with \"", "input":"", "output":["ParseError", ["StartTag", "foo", {"\"": "bar"}]]}, @@ -96,6 +100,10 @@ "input":"", -"output":[["DOCTYPE", "HtMl", "AbC", "XyZ", true]]}, +"output":[["DOCTYPE", "html", "AbC", "XyZ", true]]}, {"description":"Doctype public case-sensitivity (2)", "input":"", -"output":[["DOCTYPE", "hTmL", "aBc", "xYz", true]]}, +"output":[["DOCTYPE", "html", "aBc", "xYz", true]]}, {"description":"Doctype system case-sensitivity (1)", "input":"", -"output":[["DOCTYPE", "HtMl", null, "XyZ", true]]}, +"output":[["DOCTYPE", "html", null, "XyZ", true]]}, {"description":"Doctype system case-sensitivity (2)", "input":"", -"output":[["DOCTYPE", "hTmL", null, "xYz", true]]}, +"output":[["DOCTYPE", "html", null, "xYz", true]]}, {"description":"U+0000 in lookahead region after non-matching character", "input":"\u0000", @@ -288,6 +296,10 @@ {"description":"Doctype sys", "input":"text", +"input":"text", +"output":["ParseError", ["DOCTYPE", "html", null, null, false], ["Character", "text"]]} ]} -- cgit v1.2.3