Skip to content

Commit c143266

Browse files
committed
test: add a few uncovered url tests from wpt
Refs: web-platform-tests/wpt#25987 PR-URL: #35636 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 59d578e commit c143266

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Last update:
1212

1313
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
1414
- encoding: https://github.com/web-platform-tests/wpt/tree/d7f9e16c9a/encoding
15-
- url: https://github.com/web-platform-tests/wpt/tree/050308a616/url
15+
- url: https://github.com/web-platform-tests/wpt/tree/4e15edcc3c/url
1616
- resources: https://github.com/web-platform-tests/wpt/tree/1d14e821b9/resources
1717
- interfaces: https://github.com/web-platform-tests/wpt/tree/15e47f779c/interfaces
1818
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing

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

+58-1
Original file line numberDiff line numberDiff line change
@@ -4618,7 +4618,7 @@
46184618
"search": "",
46194619
"hash": ""
46204620
},
4621-
"# unknown scheme with non-URL characters in the path",
4621+
"# unknown scheme with non-URL characters",
46224622
{
46234623
"input": "wow:\uFFFF",
46244624
"base": "about:blank",
@@ -4634,6 +4634,21 @@
46344634
"search": "",
46354635
"hash": ""
46364636
},
4637+
{
4638+
"input": "http://example.com/\uD800\uD801\uDFFE\uDFFF\uFDD0\uFDCF\uFDEF\uFDF0\uFFFE\uFFFF?\uD800\uD801\uDFFE\uDFFF\uFDD0\uFDCF\uFDEF\uFDF0\uFFFE\uFFFF",
4639+
"base": "about:blank",
4640+
"href": "http://example.com/%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF?%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF",
4641+
"origin": "http://example.com",
4642+
"protocol": "http:",
4643+
"username": "",
4644+
"password": "",
4645+
"host": "example.com",
4646+
"hostname": "example.com",
4647+
"port": "",
4648+
"pathname": "/%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF",
4649+
"search": "?%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF",
4650+
"hash": ""
4651+
},
46374652
"Forbidden host code points",
46384653
{
46394654
"input": "http://a<b",
@@ -5245,6 +5260,34 @@
52455260
"search": "",
52465261
"hash": ""
52475262
},
5263+
{
5264+
"input": "/",
5265+
"base": "file://h/C:/a/b",
5266+
"href": "file://h/C:/",
5267+
"protocol": "file:",
5268+
"username": "",
5269+
"password": "",
5270+
"host": "h",
5271+
"hostname": "h",
5272+
"port": "",
5273+
"pathname": "/C:/",
5274+
"search": "",
5275+
"hash": ""
5276+
},
5277+
{
5278+
"input": "/",
5279+
"base": "file://h/a/b",
5280+
"href": "file://h/",
5281+
"protocol": "file:",
5282+
"username": "",
5283+
"password": "",
5284+
"host": "h",
5285+
"hostname": "h",
5286+
"port": "",
5287+
"pathname": "/",
5288+
"search": "",
5289+
"hash": ""
5290+
},
52485291
{
52495292
"input": "//d:",
52505293
"base": "file:///C:/a/b",
@@ -5640,6 +5683,20 @@
56405683
"search": "",
56415684
"hash": ""
56425685
},
5686+
{
5687+
"input": "C|",
5688+
"base": "file://host/D:/dir1/dir2/file",
5689+
"href": "file://host/C:",
5690+
"protocol": "file:",
5691+
"username": "",
5692+
"password": "",
5693+
"host": "host",
5694+
"hostname": "host",
5695+
"port": "",
5696+
"pathname": "/C:",
5697+
"search": "",
5698+
"hash": ""
5699+
},
56435700
{
56445701
"input": "C|#",
56455702
"base": "file://host/dir/file",

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"path": "encoding"
99
},
1010
"url": {
11-
"commit": "050308a616a8388f1ad5d6e87eac0270fd35023f",
11+
"commit": "4e15edcc3ca51c72c3846133c7b175ecd94b3a9b",
1212
"path": "url"
1313
},
1414
"resources": {

0 commit comments

Comments
 (0)