Files
node/test/wpt/status/urlpattern.json
Yagiz NizipliandDaniel Lemire b78df6c402 test: add WPT for URLPattern
Co-authored-by: Daniel Lemire <daniel@lemire.me>
PR-URL: https://github.com/nodejs/node/pull/56452
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2025-02-01 02:13:58 +00:00

40 lines
1.8 KiB
JSON

{
"resources/urlpattern-compare-tests.tentative.js": {
"skip": "compareComponent function is not yet included in the URLPattern spec"
},
"urlpattern-compare.tentative.any.js": {
"skip": "compareComponent function is not yet included in the URLPattern spec"
},
"urlpattern-compare.tentative.https.any.js": {
"skip": "compareComponent function is not yet included in the URLPattern spec"
},
"urlpattern.any.js": {
"fail": {
"expected": [
"Pattern: [{\"protocol\":\"http\",\"port\":\"80 \"}] Inputs: [{\"protocol\":\"http\",\"port\":\"80\"}]",
"Pattern: [\"https://{sub.}?example{.com/}foo\"] Inputs: [\"https://example.com/foo\"]",
"Pattern: [{\"hostname\":\"bad#hostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad/hostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\\\\\\\hostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\nhostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\rhostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\thostname\"}] Inputs: undefined"
]
}
},
"urlpattern.https.any.js": {
"fail": {
"expected": [
"Pattern: [{\"protocol\":\"http\",\"port\":\"80 \"}] Inputs: [{\"protocol\":\"http\",\"port\":\"80\"}]",
"Pattern: [\"https://{sub.}?example{.com/}foo\"] Inputs: [\"https://example.com/foo\"]",
"Pattern: [{\"hostname\":\"bad#hostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad/hostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\\\\\\\hostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\nhostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\rhostname\"}] Inputs: undefined",
"Pattern: [{\"hostname\":\"bad\\thostname\"}] Inputs: undefined"
]
}
}
}