Skip to content

Commit 63687c3

Browse files
test: update WPT for url to 814f9a33b0
1 parent 60c1fbc commit 63687c3

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-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/1d2c5fb36a/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
31-
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
31+
- url: https://github.com/web-platform-tests/wpt/tree/814f9a33b0/url
3232
- urlpattern: https://github.com/web-platform-tests/wpt/tree/cff1ac1123/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/cde25e7e3c/wasm/jsapi

test/fixtures/wpt/url/javascript-urls.window.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"property": "shouldNotExistB",
2020
"expected": undefined
2121
},
22+
{
23+
"description": "javascript: URL with extra slashes at the start",
24+
"input": "javascript:///globalThis.shouldNotExistC=1",
25+
"property": "shouldNotExistC",
26+
"expected": undefined
27+
},
2228
{
2329
"description": "javascript: URL without an opaque path",
2430
"input": "javascript://host/1%0a//../0/;globalThis.shouldBeOne=1;/%0aglobalThis.shouldBeOne=2;/..///",

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,15 @@
11951195
"host": "test",
11961196
"hostname": "test"
11971197
}
1198+
},
1199+
{
1200+
"href": "foo://path/to",
1201+
"new_value": ":80",
1202+
"expected": {
1203+
"href": "foo://path/to",
1204+
"host": "path",
1205+
"port": ""
1206+
}
11981207
}
11991208
],
12001209
"hostname": [
@@ -1909,6 +1918,20 @@
19091918
"expected": {
19101919
"port": "4"
19111920
}
1921+
},
1922+
{
1923+
"href": "https://domain.com:3000",
1924+
"new_value": "\n\t80\n\t80\n\t",
1925+
"expected": {
1926+
"port": "8080"
1927+
}
1928+
},
1929+
{
1930+
"href": "https://domain.com:3000",
1931+
"new_value": "\n\n\t\t",
1932+
"expected": {
1933+
"port": "3000"
1934+
}
19121935
}
19131936
],
19141937
"pathname": [
@@ -2191,6 +2214,14 @@
21912214
"href": "http://example.net/%00",
21922215
"pathname": "/%00"
21932216
}
2217+
},
2218+
{
2219+
"href": "foo://path/to",
2220+
"new_value": "/..",
2221+
"expected": {
2222+
"href": "foo://path/",
2223+
"pathname": "/"
2224+
}
21942225
}
21952226
],
21962227
"search": [

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": "9504a83e014b6b26d6c09eaee89c6b83cb7410c2",
75+
"commit": "814f9a33b0e505bb256a3de377199c3f61b05538",
7676
"path": "url"
7777
},
7878
"urlpattern": {

0 commit comments

Comments
 (0)