diff options
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/tokeniser2/INDEX | 1 | ||||
-rw-r--r-- | test/data/tokeniser2/regression.test | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/data/tokeniser2/INDEX b/test/data/tokeniser2/INDEX index 8c0bc41..49dc102 100644 --- a/test/data/tokeniser2/INDEX +++ b/test/data/tokeniser2/INDEX @@ -10,3 +10,4 @@ contentModelFlags.test html5lib content model tests entities.test html5lib entity tests escapeFlag.test html5lib escape flag tests cdata.test CDATA section tests +regression.test Regression tests diff --git a/test/data/tokeniser2/regression.test b/test/data/tokeniser2/regression.test new file mode 100644 index 0000000..ae3e66a --- /dev/null +++ b/test/data/tokeniser2/regression.test @@ -0,0 +1,20 @@ +{"tests": [ + +{"description":"CR in double-quoted attribute value", +"input":"<foo bar=\"\r\u2022xyz\"", +"output":[["StartTag", "foo", {"bar":"\n\u2022xyz"}]]}, + +{"description":"CR in single-quoted attribute value", +"input":"<foo bar='\r\u2022xyz'", +"output":[["StartTag", "foo", {"bar":"\n\u2022xyz"}]]}, + +{"description":"CR in comment", +"input":"<!--\r\u2022xyz-->", +"output":[["Comment", "\n\u2022xyz"]]}, + +{"description":"CR in CDATA section", +"processCDATA":true, +"input":"<![CDATA[\r\u2022xyz]]>", +"output":[["Character", "\n\u2022xyz"]]}, + +]} |