From 647123a2fdc5b8c1926289465370453ed72cde21 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Thu, 19 Jun 2008 01:03:53 +0000 Subject: Add some new tests (also committed to html5lib). svn path=/trunk/hubbub/; revision=4407 --- test/data/tokeniser2/test1.test | 4 ++++ test/data/tokeniser2/test2.test | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'test') diff --git a/test/data/tokeniser2/test1.test b/test/data/tokeniser2/test1.test index ddb9814..46ad7ca 100644 --- a/test/data/tokeniser2/test1.test +++ b/test/data/tokeniser2/test1.test @@ -141,6 +141,10 @@ "input":"I'm &no", "output":[["Character","I'm "], "ParseError", ["Character", "&no"]]}, +{"description":"Non-ASCII character reference name", +"input":"&\u00AC;", +"output":["ParseError", ["Character", "&\u00AC;"]]}, + {"description":"ASCII decimal entity", "input":"$", "output":[["Character","$"]]}, diff --git a/test/data/tokeniser2/test2.test b/test/data/tokeniser2/test2.test index 209ce2b..c1f1f65 100644 --- a/test/data/tokeniser2/test2.test +++ b/test/data/tokeniser2/test2.test @@ -144,6 +144,10 @@ "input":"\nx\n>\n", "output":[["Character","\nx\n>\n"]]}, +{"description":"Start tag with no attributes but space before the greater-than sign", +"input":"", +"output":[["StartTag", "h", {}]]}, + {"description":"Empty attribute followed by uppercase attribute", "input":"", "output":[["StartTag", "h", {"a":"", "b":""}]]}, -- cgit v1.2.3