diff --git a/tokenizer/domjs.test b/tokenizer/domjs.test index 9cd2f0c8..8100cbe5 100644 --- a/tokenizer/domjs.test +++ b/tokenizer/domjs.test @@ -154,7 +154,10 @@ "description":"--!NUL in comment ", "doubleEscaped":true, "input":"", - "output":["ParseError", "ParseError", ["Comment", "--!\\uFFFD"]] + "output":["ParseError", "ParseError", ["Comment", "--!\\uFFFD"]], + "errors":[ + { "code": "unexpected-null-character", "line": 1, "col": 8 } + ] }, { "description":"space EOF after doctype ", diff --git a/tokenizer/escapeFlag.test b/tokenizer/escapeFlag.test index 18cb4309..47317cee 100644 --- a/tokenizer/escapeFlag.test +++ b/tokenizer/escapeFlag.test @@ -16,7 +16,10 @@ "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foobaz", -"output":[["Character", "foo"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]]}, +"output":[["Character", "foo"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]], +"errors":[ + { "code": "abrupt-comment", "line": 1, "col": 19 } +]}, {"description":"Commented entities in RCDATA", "initialStates":["RCDATA state"], diff --git a/tokenizer/pendingSpecChanges.test b/tokenizer/pendingSpecChanges.test index 1b7dc3c7..cbe10668 100644 --- a/tokenizer/pendingSpecChanges.test +++ b/tokenizer/pendingSpecChanges.test @@ -2,6 +2,8 @@ {"description":"", - "output":["ParseError", ["Comment", ""]]}, +"input":"", +"output":["ParseError", ["Comment", ""]], +"errors":[ + { "code": "abrupt-comment", "line": 1, "col": 5 } +]}, + {"description":"Short comment two", - "input":"", - "output":["ParseError", ["Comment", ""]]}, +"input":"", +"output":["ParseError", ["Comment", ""]], +"errors":[ + { "code": "abrupt-comment", "line": 1, "col": 6 } +]}, {"description":"Short comment three", "input":"", "output":[["Comment", ""]]}, +{"description":"Nested comment", +"input":"", +"output":[["Comment", " ", "input":"", @@ -728,223 +1042,374 @@ {"description":"", -"input":"", -"output":["ParseError", ["Comment", ""]]}, +"output":["ParseError", ["Comment", "-="]], +"errors":[ + { "code": "eof-in-comment", "line": 1, "col": 7 } +]}, {"description":"", -"input":"", -"output":["ParseError", ["Comment", ""]]}, +"output":["ParseError", ["Comment", "="]], +"errors":[ + { "code": "eof-in-comment", "line": 1, "col": 6 } +]}, {"description":"BAZ #errors (1,3): expected-doctype-but-got-chars (1,9): incorrect-comment +#new-errors +(1:9) abrupt-comment #document | | @@ -110,6 +116,8 @@ FOOBAZ #errors (1,3): expected-doctype-but-got-chars (1,8): incorrect-comment +#new-errors +(1:8) abrupt-comment #document | | diff --git a/tree-construction/tests1.dat b/tree-construction/tests1.dat index 16eb0d44..6d4ee9d8 100644 --- a/tree-construction/tests1.dat +++ b/tree-construction/tests1.dat @@ -327,6 +327,9 @@ Line1
Line2
Line3
Line4 (1,10): expected-doctype-but-got-start-tag (1,17): incorrect-comment (1,17): expected-closing-tag-but-got-eof +#new-errors +(1:5) abrupt-comment +(1:17) abrupt-comment #document | | diff --git a/tree-construction/tests2.dat b/tree-construction/tests2.dat index 880c377b..daf6c0ff 100644 --- a/tree-construction/tests2.dat +++ b/tree-construction/tests2.dat @@ -431,6 +431,8 @@ @@ -537,6 +539,8 @@ @@ -760,6 +764,8 @@ x { content:" | diff --git a/tree-construction/tests6.dat b/tree-construction/tests6.dat index d774fc23..3ad5bfed 100644 --- a/tree-construction/tests6.dat +++ b/tree-construction/tests6.dat @@ -62,6 +62,8 @@ #errors (1,6): eof-in-comment (1,6): expected-doctype-but-got-eof +#new-errors +(1:7) eof-in-comment #document | |