test: update WPT for urlpattern to a2e15ad405 · nodejs/node@182f2e4 · GitHub
Skip to content

Commit 182f2e4

Browse files
nodejs-github-botRafaelGSS
authored andcommitted
test: update WPT for urlpattern to a2e15ad405
PR-URL: #61134 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent f2692c5 commit 182f2e4

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion

test/fixtures/wpt/urlpattern/resources/urlpatterntestdata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,5 +3108,15 @@
31083108
"hostname": { "input": "www.example.com", "groups": {} },
31093109
"pathname": { "input": "/path/with/x", "groups": { "0": "path/with/x" } }
31103110
}
3111+
},
3112+
{
3113+
"pattern": [{ "hostname": ":domain(.*)" }],
3114+
"inputs": [{ "hostname": "localhost" }],
3115+
"expected_obj": {
3116+
"hostname": ":domain(.*)"
3117+
},
3118+
"expected_match": {
3119+
"hostname": { "input": "localhost", "groups": { "domain" : "localhost"} }
3120+
}
31113121
}
31123122
]

test/fixtures/wpt/versions.json

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)