Skip to content

Commit c5495c5

Browse files
Delta-officialannevk
authored andcommitted
Fix incorrect error order and remove obsolete tests
1 parent c777c40 commit c5495c5

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

‎tokenizer/domjs.test‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
{
22
"tests": [
3-
{
4-
"description":"CR in bogus comment state",
5-
"input":"<?\u000d",
6-
"output":[["Comment", "?\u000a"]],
7-
"errors":[
8-
{ "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 }
9-
]
10-
},
11-
{
12-
"description":"CRLF in bogus comment state",
13-
"input":"<?\u000d\u000a",
14-
"output":[["Comment", "?\u000a"]],
15-
"errors":[
16-
{ "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 }
17-
]
18-
},
19-
{
20-
"description":"CRLFLF in bogus comment state",
21-
"input":"<?\u000d\u000a\u000a",
22-
"output":[["Comment", "?\u000a\u000a"]],
23-
"errors":[
24-
{ "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 }
25-
]
26-
},
273
{
284
"description":"Raw NUL replacement",
295
"doubleEscaped":true,

‎tokenizer/test3.test‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9153,8 +9153,8 @@
91539153
"input":"<?\u000B",
91549154
"output":[["Comment", "?\u000B"]],
91559155
"errors":[
9156-
{ "code": "invalid-first-character-of-processing-instruction-target", "line": 1, "col": 3 },
9157-
{ "code": "control-character-in-input-stream", "line": 1, "col": 3 }
9156+
{ "code": "control-character-in-input-stream", "line": 1, "col": 3 },
9157+
{ "code": "invalid-first-character-of-processing-instruction-target", "line": 1, "col": 3 }
91589158
]},
91599159

91609160
{"description":"<?\\u000C",

0 commit comments

Comments
 (0)