test: update WPT for urlpattern to cff1ac1123

PR-URL: https://github.com/nodejs/node/pull/59602
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Node.js GitHub Bot
2025-09-06 11:43:17 +01:00
committed by GitHub
parent b6cfba7cfb
commit b9fa656eaa
3 changed files with 44 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ Last update:
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
- urlpattern: https://github.com/web-platform-tests/wpt/tree/84b75f0880/urlpattern
- urlpattern: https://github.com/web-platform-tests/wpt/tree/cff1ac1123/urlpattern
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi

View File

@@ -2991,5 +2991,47 @@
"pattern": [{ "pathname": "/([\\d&&[0-1]])" }],
"inputs": [{ "pathname": "/3" }],
"expected_match": null
},
{
"pattern": [{ "protocol": "http", "hostname": "example.com/ignoredpath" }],
"inputs": ["http://example.com/"],
"expected_obj": {
"protocol": "http",
"hostname": "example.com",
"pathname": "*"
},
"expected_match": {
"protocol": { "input": "http", "groups": {} },
"hostname": { "input": "example.com", "groups": {} },
"pathname": { "input": "/", "groups": { "0": "/" } }
}
},
{
"pattern": [{ "protocol": "http", "hostname": "example.com\\?ignoredsearch" }],
"inputs": ["http://example.com/"],
"expected_obj": {
"protocol": "http",
"hostname": "example.com",
"search": "*"
},
"expected_match": {
"protocol": { "input": "http", "groups": {} },
"hostname": { "input": "example.com", "groups": {} },
"pathname": { "input": "/", "groups": { "0": "/" } }
}
},
{
"pattern": [{ "protocol": "http", "hostname": "example.com#ignoredhash" }],
"inputs": ["http://example.com/"],
"expected_obj": {
"protocol": "http",
"hostname": "example.com",
"hash": "*"
},
"expected_match": {
"protocol": { "input": "http", "groups": {} },
"hostname": { "input": "example.com", "groups": {} },
"pathname": { "input": "/", "groups": { "0": "/" } }
}
}
]

View File

@@ -76,7 +76,7 @@
"path": "url"
},
"urlpattern": {
"commit": "84b75f08801c8cfe407c25614c49132075b8afab",
"commit": "cff1ac112375b8089fe9f6bf434f602cf7ef98be",
"path": "urlpattern"
},
"user-timing": {