summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-06-19 01:03:53 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-06-19 01:03:53 +0000
commit647123a2fdc5b8c1926289465370453ed72cde21 (patch)
treed254732b71f7db60abc2b9afc3f97154f94b0b75 /test
parent793e34afc6bad4a77a968a49fdfbaca5e7fcef2e (diff)
downloadlibhubbub-647123a2fdc5b8c1926289465370453ed72cde21.tar.gz
libhubbub-647123a2fdc5b8c1926289465370453ed72cde21.tar.bz2
Add some new tests (also committed to html5lib).
svn path=/trunk/hubbub/; revision=4407
Diffstat (limited to 'test')
-rw-r--r--test/data/tokeniser2/test1.test4
-rw-r--r--test/data/tokeniser2/test2.test4
2 files changed, 8 insertions, 0 deletions
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":"&#0036;",
"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&gt;\n",
"output":[["Character","\nx\n>\n"]]},
+{"description":"Start tag with no attributes but space before the greater-than sign",
+"input":"<h >",
+"output":[["StartTag", "h", {}]]},
+
{"description":"Empty attribute followed by uppercase attribute",
"input":"<h a B=''>",
"output":[["StartTag", "h", {"a":"", "b":""}]]},