diff options
author | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-07-16 10:17:20 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-08-01 21:44:33 +0530 |
commit | bef193cb94318d6fe1f7f005f43d751d69224651 (patch) | |
tree | 2349184dd1374dc11c83fb7c5163570c5febb2e2 /test | |
parent | a0a0787a34e0ad510c58dccf17a67c951aac6c3a (diff) | |
download | libhubbub-bef193cb94318d6fe1f7f005f43d751d69224651.tar.gz libhubbub-bef193cb94318d6fe1f7f005f43d751d69224651.tar.bz2 |
Merged the updates to tests made a few days ago
Diffstat (limited to 'test')
-rw-r--r-- | test/data/tokeniser2/contentModelFlags.test | 6 | ||||
-rw-r--r-- | test/data/tokeniser2/domjs.test | 8 | ||||
-rw-r--r-- | test/data/tokeniser2/xmlViolation.test | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/test/data/tokeniser2/contentModelFlags.test b/test/data/tokeniser2/contentModelFlags.test index a8b1695..89b8170 100644 --- a/test/data/tokeniser2/contentModelFlags.test +++ b/test/data/tokeniser2/contentModelFlags.test @@ -48,6 +48,12 @@ "input":"</foo>bar</xmp>", "output":[["Character", "</foo>bar"], ["EndTag", "xmp"]]}, +{"description":"Partial end tags leading straight into partial end tags", +"initialStates":["RCDATA state", "RAWTEXT state"], +"lastStartTag":"xmp", +"input":"</xmp</xmp</xmp>", +"output":[["Character", "</xmp</xmp"], ["EndTag", "xmp"]]}, + {"description":"End tag with incorrect name in RCDATA or RAWTEXT (starting like correct name)", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", diff --git a/test/data/tokeniser2/domjs.test b/test/data/tokeniser2/domjs.test index afb17bc..ce37883 100644 --- a/test/data/tokeniser2/domjs.test +++ b/test/data/tokeniser2/domjs.test @@ -11,13 +11,20 @@ "output":["ParseError", ["Comment", "?\u000a"]] }, { + "description":"CRLFLF in bogus comment state", + "input":"<?\u000d\u000a\u000a", + "output":["ParseError", ["Comment", "?\u000a\u000a"]] + }, + { "description":"NUL in RCDATA and RAWTEXT", + "doubleEscaped":true, "initialStates":["RCDATA state", "RAWTEXT state"], "input":"\u0000", "output":["ParseError", ["Character", "\uFFFD"]] }, { "description":"leading U+FEFF must pass through", + "doubleEscaped":true, "input":"\\uFEFFfoo\\uFEFFbar", "output":[["Character", "\\uFEFFfoo\\uFEFFbar"]] }, @@ -75,6 +82,7 @@ }, { "description":"--!NUL in comment ", + "doubleEscaped":true, "input":"<!----!\u0000-->", "output":["ParseError", "ParseError", ["Comment", "--!\uFFFD"]] }, diff --git a/test/data/tokeniser2/xmlViolation.test b/test/data/tokeniser2/xmlViolation.test index 93c6351..137d964 100644 --- a/test/data/tokeniser2/xmlViolation.test +++ b/test/data/tokeniser2/xmlViolation.test @@ -1,4 +1,4 @@ -{"tests": [ +{"xmlViolationTests": [ {"description":"Non-XML character", "input":"a\uFFFFb", |