diff --git a/urlpattern/resources/urlpatterntestdata.json b/urlpattern/resources/urlpatterntestdata.json index 3acb8a7d1714e2..69fa7466c4d120 100644 --- a/urlpattern/resources/urlpatterntestdata.json +++ b/urlpattern/resources/urlpatterntestdata.json @@ -2370,11 +2370,17 @@ }, { "pattern": [{ "hostname": "bad#hostname" }], - "expected_obj": "error" + "exactly_empty_components": ["port"], + "expected_match": { + "hostname": { "input": "bad", "groups": {} } + } }, { "pattern": [{ "hostname": "bad%hostname" }], - "expected_obj": "error" + "exactly_empty_components": ["port"], + "expected_match": { + "hostname": { "input": "bad%hostname", "groups": {} } + } }, { "pattern": [{ "hostname": "bad/hostname" }],