Skip to content

Commit b9ec04b

Browse files
Hixiegsnedders
authored andcommitted
Some new tokeniser tests
1 parent 78f7831 commit b9ec04b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tokenizer/contentModelFlags.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
"input":"</foo>bar</xmp>",
4949
"output":[["Character", "</foo>bar"], ["EndTag", "xmp"]]},
5050

51+
{"description":"Partial end tags leading straight into partial end tags",
52+
"initialStates":["RCDATA state", "RAWTEXT state"],
53+
"lastStartTag":"xmp",
54+
"input":"</xmp</xmp</xmp>",
55+
"output":[["Character", "</xmp</xmp"], ["EndTag", "xmp"]]},
56+
5157
{"description":"End tag with incorrect name in RCDATA or RAWTEXT (starting like correct name)",
5258
"initialStates":["RCDATA state", "RAWTEXT state"],
5359
"lastStartTag":"xmp",

tokenizer/domjs.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"input":"<?\u000d\u000a",
1111
"output":["ParseError", ["Comment", "?\u000a"]]
1212
},
13+
{
14+
"description":"CRLFLF in bogus comment state",
15+
"input":"<?\u000d\u000a\u000a",
16+
"output":["ParseError", ["Comment", "?\u000a\u000a"]]
17+
},
1318
{
1419
"description":"NUL in RCDATA and RAWTEXT",
1520
"doubleEscaped":true,

0 commit comments

Comments
 (0)