diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-06-19 01:49:02 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-06-19 01:49:02 +0000 |
commit | 28b06ed590c8e0d2acb4a0d42e4eca4d6f0aef3c (patch) | |
tree | 9f751d125edc733ef13a962348fbeb19af815e4e /test/data/tokeniser2 | |
parent | 1db020fb0e52995b2938512496740c11b81d61a3 (diff) | |
download | libhubbub-28b06ed590c8e0d2acb4a0d42e4eca4d6f0aef3c.tar.gz libhubbub-28b06ed590c8e0d2acb4a0d42e4eca4d6f0aef3c.tar.bz2 |
Add CDATA tests and the infrastructure to support them.
svn path=/trunk/hubbub/; revision=4410
Diffstat (limited to 'test/data/tokeniser2')
-rw-r--r-- | test/data/tokeniser2/INDEX | 1 | ||||
-rw-r--r-- | test/data/tokeniser2/cdata.test | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/data/tokeniser2/INDEX b/test/data/tokeniser2/INDEX index 00c5e01..8c0bc41 100644 --- a/test/data/tokeniser2/INDEX +++ b/test/data/tokeniser2/INDEX @@ -9,3 +9,4 @@ test4.test html5lib tests (part 4) contentModelFlags.test html5lib content model tests entities.test html5lib entity tests escapeFlag.test html5lib escape flag tests +cdata.test CDATA section tests diff --git a/test/data/tokeniser2/cdata.test b/test/data/tokeniser2/cdata.test new file mode 100644 index 0000000..fb4fa8a --- /dev/null +++ b/test/data/tokeniser2/cdata.test @@ -0,0 +1,23 @@ +{"tests": [ + +{"description":"Basic CDATA test", +"processCDATA":true, +"input":"<![CDATA[test]]>", +"output":[["Character", "test"]]}, + +{"description":"Unfinished CDATA test", +"processCDATA":true, +"input":"<![CDAT", +"output":["ParseError", ["Comment", "[CDAT"]]}, + +{"description":"EOF in CDATA chunk", +"processCDATA":true, +"input":"<![CDATA[aa", +"output":[["Character", "aa"]]}, + +{"description":"False end in CDATA chunk", +"processCDATA":true, +"input":"<![CDATA[aa]]aa", +"output":[["Character", "aa]]aa"]]}, + +]} |