Skip to content

Commit 3b6b198

Browse files
authored
add missing inputs to urlpatterntestdata.json (#51220)
1 parent adf8caa commit 3b6b198

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

urlpattern/resources/urlpatterntestdata.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,21 +2432,19 @@
24322432
},
24332433
{
24342434
"pattern": [{ "hostname": "bad#hostname" }],
2435+
"inputs": [{ "hostname": "bad" }],
24352436
"exactly_empty_components": ["port"],
24362437
"expected_match": {
24372438
"hostname": { "input": "bad", "groups": {} }
24382439
}
24392440
},
24402441
{
24412442
"pattern": [{ "hostname": "bad%hostname" }],
2442-
"exactly_empty_components": ["port"],
2443-
"expected_match": {
2444-
"hostname": { "input": "bad%hostname", "groups": {} }
2445-
}
2443+
"expected_obj": "error"
24462444
},
24472445
{
24482446
"pattern": [{ "hostname": "bad/hostname" }],
2449-
"exactly_empty_components": ["port"],
2447+
"inputs": [{ "hostname": "bad" }],
24502448
"expected_match": {
24512449
"hostname": { "input": "bad", "groups": {} }
24522450
}
@@ -2481,7 +2479,8 @@
24812479
},
24822480
{
24832481
"pattern": [{ "hostname": "bad\\\\hostname" }],
2484-
"expected_obj": "error"
2482+
"inputs": [{ "hostname": "badhostname" }],
2483+
"expected_match": null
24852484
},
24862485
{
24872486
"pattern": [{ "hostname": "bad^hostname" }],
@@ -2493,21 +2492,21 @@
24932492
},
24942493
{
24952494
"pattern": [{ "hostname": "bad\nhostname" }],
2496-
"exactly_empty_components": ["port"],
2495+
"inputs": [{ "hostname": "badhostname" }],
24972496
"expected_match": {
24982497
"hostname": { "input": "badhostname", "groups": {} }
24992498
}
25002499
},
25012500
{
25022501
"pattern": [{ "hostname": "bad\rhostname" }],
2503-
"exactly_empty_components": ["port"],
2502+
"inputs": [{ "hostname": "badhostname" }],
25042503
"expected_match": {
25052504
"hostname": { "input": "badhostname", "groups": {} }
25062505
}
25072506
},
25082507
{
25092508
"pattern": [{ "hostname": "bad\thostname" }],
2510-
"exactly_empty_components": ["port"],
2509+
"inputs": [{ "hostname": "badhostname" }],
25112510
"expected_match": {
25122511
"hostname": { "input": "badhostname", "groups": {} }
25132512
}

0 commit comments

Comments
 (0)