mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
url, test: synchronize WPT url tests for file URL
Added at the following PR: * https://github.com/w3c/web-platform-tests/pull/4382 * https://github.com/w3c/web-platform-tests/pull/4700 PR-URL: https://github.com/nodejs/node/pull/11123 Fixes: https://github.com/nodejs/node/issues/10978 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
1 parent
72da362d6e
commit
d8cb65aa6e
1 file changed
+114
Vendored
+114
@@ -4649,5 +4649,119 @@
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
"# More file URL tests by zcorpan",
|
||||
{
|
||||
"input": "/",
|
||||
"base": "file:///C:/a/b",
|
||||
"href": "file:///C:/",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/C:/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "//d:",
|
||||
"base": "file:///C:/a/b",
|
||||
"href": "file:///d:",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/d:",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "//d:/..",
|
||||
"base": "file:///C:/a/b",
|
||||
"href": "file:///d:/",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/d:/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "..",
|
||||
"base": "file:///ab:/",
|
||||
"href": "file:///",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "..",
|
||||
"base": "file:///1:/",
|
||||
"href": "file:///",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
"# file URLs without base URL by Rimas Misevičius",
|
||||
{
|
||||
"input": "file:",
|
||||
"base": "about:blank",
|
||||
"href": "file:///",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "file:?q=v",
|
||||
"base": "about:blank",
|
||||
"href": "file:///?q=v",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "?q=v",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "file:#frag",
|
||||
"base": "about:blank",
|
||||
"href": "file:///#frag",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "",
|
||||
"hostname": "",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": "#frag"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user