diff options
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", |