From c885bbfa8da53ca0f053401cb0774f91521382fe Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sat, 8 Mar 2025 12:39:31 -0500 Subject: [PATCH] add missing inputs to urlpatterntestdata.json --- urlpattern/resources/urlpatterntestdata.json | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/urlpattern/resources/urlpatterntestdata.json b/urlpattern/resources/urlpatterntestdata.json index 5a279e9e712e75..3d5ddce1eab21e 100644 --- a/urlpattern/resources/urlpatterntestdata.json +++ b/urlpattern/resources/urlpatterntestdata.json @@ -2432,6 +2432,7 @@ }, { "pattern": [{ "hostname": "bad#hostname" }], + "inputs": [{ "hostname": "bad" }], "exactly_empty_components": ["port"], "expected_match": { "hostname": { "input": "bad", "groups": {} } @@ -2439,14 +2440,11 @@ }, { "pattern": [{ "hostname": "bad%hostname" }], - "exactly_empty_components": ["port"], - "expected_match": { - "hostname": { "input": "bad%hostname", "groups": {} } - } + "expected_obj": "error" }, { "pattern": [{ "hostname": "bad/hostname" }], - "exactly_empty_components": ["port"], + "inputs": [{ "hostname": "bad" }], "expected_match": { "hostname": { "input": "bad", "groups": {} } } @@ -2481,7 +2479,8 @@ }, { "pattern": [{ "hostname": "bad\\\\hostname" }], - "expected_obj": "error" + "inputs": [{ "hostname": "badhostname" }], + "expected_match": null }, { "pattern": [{ "hostname": "bad^hostname" }], @@ -2493,21 +2492,21 @@ }, { "pattern": [{ "hostname": "bad\nhostname" }], - "exactly_empty_components": ["port"], + "inputs": [{ "hostname": "badhostname" }], "expected_match": { "hostname": { "input": "badhostname", "groups": {} } } }, { "pattern": [{ "hostname": "bad\rhostname" }], - "exactly_empty_components": ["port"], + "inputs": [{ "hostname": "badhostname" }], "expected_match": { "hostname": { "input": "badhostname", "groups": {} } } }, { "pattern": [{ "hostname": "bad\thostname" }], - "exactly_empty_components": ["port"], + "inputs": [{ "hostname": "badhostname" }], "expected_match": { "hostname": { "input": "badhostname", "groups": {} } }