Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Last update:
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
- 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
- url: https://github.com/web-platform-tests/wpt/tree/814f9a33b0/url
- 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
Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/wpt/url/javascript-urls.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"property": "shouldNotExistB",
"expected": undefined
},
{
"description": "javascript: URL with extra slashes at the start",
"input": "javascript:///globalThis.shouldNotExistC=1",
"property": "shouldNotExistC",
"expected": undefined
},
{
"description": "javascript: URL without an opaque path",
"input": "javascript://host/1%0a//../0/;globalThis.shouldBeOne=1;/%0aglobalThis.shouldBeOne=2;/..///",
Expand Down
31 changes: 31 additions & 0 deletions test/fixtures/wpt/url/resources/setters_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,15 @@
"host": "test",
"hostname": "test"
}
},
{
"href": "foo://path/to",
"new_value": ":80",
"expected": {
"href": "foo://path/to",
"host": "path",
"port": ""
}
}
],
"hostname": [
Expand Down Expand Up @@ -1909,6 +1918,20 @@
"expected": {
"port": "4"
}
},
{
"href": "https://domain.com:3000",
"new_value": "\n\t80\n\t80\n\t",
"expected": {
"port": "8080"
}
},
{
"href": "https://domain.com:3000",
"new_value": "\n\n\t\t",
"expected": {
"port": "3000"
}
}
],
"pathname": [
Expand Down Expand Up @@ -2191,6 +2214,14 @@
"href": "http://example.net/%00",
"pathname": "/%00"
}
},
{
"href": "foo://path/to",
"new_value": "/..",
"expected": {
"href": "foo://path/",
"pathname": "/"
}
}
],
"search": [
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"path": "streams"
},
"url": {
"commit": "9504a83e014b6b26d6c09eaee89c6b83cb7410c2",
"commit": "814f9a33b0e505bb256a3de377199c3f61b05538",
"path": "url"
},
"urlpattern": {
Expand Down
Loading