From d66cd3cb6f9f47033f01352151ed997b69f251e3 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Thu, 19 Dec 2024 10:47:29 -0500 Subject: [PATCH] fix invalid urlpattern test validating hostname --- urlpattern/resources/urlpatterntestdata.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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" }],