Skip to content

Commit fffd9c6

Browse files
test: update WPT for url to 7a3645b79a
PR-URL: #62591 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 449a93a commit fffd9c6

File tree

5 files changed

+67
-2
lines changed

5 files changed

+67
-2
lines changed

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Last update:
2828
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
2929
- resources: https://github.com/web-platform-tests/wpt/tree/6a2f322376/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
31-
- url: https://github.com/web-platform-tests/wpt/tree/fc3e651593/url
31+
- url: https://github.com/web-platform-tests/wpt/tree/7a3645b79a/url
3232
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
3333
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3434
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/65a2134d50/wasm/jsapi

test/fixtures/wpt/url/IdnaTestV2-removed.window.js renamed to test/fixtures/wpt/url/IdnaTestV2-removed.any.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// META: global=window
2+
13
promise_test(() => fetch("resources/IdnaTestV2-removed.json").then(res => res.json()).then(runTests), "Loading data…");
24

35
function runTests(idnaTests) {

test/fixtures/wpt/url/IdnaTestV2.window.js renamed to test/fixtures/wpt/url/IdnaTestV2.any.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// META: global=window
2+
13
promise_test(() => fetch("resources/IdnaTestV2.json").then(res => res.json()).then(runTests), "Loading data…");
24

35
function runTests(idnaTests) {

test/fixtures/wpt/url/resources/urltestdata.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,21 @@
10441044
"search": "",
10451045
"hash": ""
10461046
},
1047+
{
1048+
"input": "http:/",
1049+
"base": "http://example.com/",
1050+
"href": "http://example.com/",
1051+
"origin": "http://example.com",
1052+
"protocol": "http:",
1053+
"username": "",
1054+
"password": "",
1055+
"host": "example.com",
1056+
"hostname": "example.com",
1057+
"port": "",
1058+
"pathname": "/",
1059+
"search": "",
1060+
"hash": ""
1061+
},
10471062
{
10481063
"input": "ftp:/example.com/",
10491064
"base": "http://example.org/foo/bar",
@@ -10342,6 +10357,52 @@
1034210357
"search": "",
1034310358
"hash": ""
1034410359
},
10360+
"# Non-special relative URL and backslashes",
10361+
{
10362+
"comment": "Non-special relative: \\ should not enter RelativeSlash state",
10363+
"input": "\\a",
10364+
"base": "foo://foo/a",
10365+
"href": "foo://foo/\\a",
10366+
"protocol": "foo:",
10367+
"username": "",
10368+
"password": "",
10369+
"host": "foo",
10370+
"hostname": "foo",
10371+
"port": "",
10372+
"pathname": "/\\a",
10373+
"search": "",
10374+
"hash": ""
10375+
},
10376+
{
10377+
"comment": "Non-special relative: \\ should not enter RelativeSlash, so / is a path separator",
10378+
"input": "\\/a",
10379+
"base": "foo://foo/a",
10380+
"href": "foo://foo/\\/a",
10381+
"protocol": "foo:",
10382+
"username": "",
10383+
"password": "",
10384+
"host": "foo",
10385+
"hostname": "foo",
10386+
"port": "",
10387+
"pathname": "/\\/a",
10388+
"search": "",
10389+
"hash": ""
10390+
},
10391+
{
10392+
"comment": "Non-special relative: \\\\ should not trigger authority parsing",
10393+
"input": "\\\\a",
10394+
"base": "foo://foo/a",
10395+
"href": "foo://foo/\\\\a",
10396+
"protocol": "foo:",
10397+
"username": "",
10398+
"password": "",
10399+
"host": "foo",
10400+
"hostname": "foo",
10401+
"port": "",
10402+
"pathname": "/\\\\a",
10403+
"search": "",
10404+
"hash": ""
10405+
},
1034510406
{
1034610407
"comment": "Fragment with <> on data: URI",
1034710408
"input": "data:text/plain,test#<foo> <bar>",

test/fixtures/wpt/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"path": "streams"
7373
},
7474
"url": {
75-
"commit": "fc3e651593fab938433613eb5ad0b4dbd5a4e167",
75+
"commit": "7a3645b79ade98a05066a09ce88e143daac31535",
7676
"path": "url"
7777
},
7878
"urlpattern": {

0 commit comments

Comments
 (0)