Skip to content

Commit

Permalink
test: update web platform tests (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig authored Oct 19, 2024
1 parent 63cb72a commit f3da837
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions tests/wpt/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9992,5 +9992,101 @@
"pathname": "/",
"search": "",
"hash": ""
},
"# Non-special URL and backslashes",
{
"input": "non-special:\\\\opaque",
"base": null,
"href": "non-special:\\\\opaque",
"origin": "null",
"protocol": "non-special:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "\\\\opaque",
"search": "",
"hash": ""
},
{
"input": "non-special:\\\\opaque/path",
"base": null,
"href": "non-special:\\\\opaque/path",
"origin": "null",
"protocol": "non-special:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "\\\\opaque/path",
"search": "",
"hash": ""
},
{
"input": "non-special:\\\\opaque\\path",
"base": null,
"href": "non-special:\\\\opaque\\path",
"origin": "null",
"protocol": "non-special:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "\\\\opaque\\path",
"search": "",
"hash": ""
},
{
"input": "non-special:\\/opaque",
"base": null,
"href": "non-special:\\/opaque",
"origin": "null",
"protocol": "non-special:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "\\/opaque",
"search": "",
"hash": ""
},
{
"input": "non-special:/\\path",
"base": null,
"href": "non-special:/\\path",
"origin": "null",
"protocol": "non-special:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "/\\path",
"search": "",
"hash": ""
},
{
"input": "non-special://host\\a",
"base": null,
"failure": true
},
{
"input": "non-special://host/a\\b",
"base": null,
"href": "non-special://host/a\\b",
"origin": "null",
"protocol": "non-special:",
"username": "",
"password": "",
"host": "host",
"hostname": "host",
"port": "",
"pathname": "/a\\b",
"search": "",
"hash": ""
}
]

0 comments on commit f3da837

Please sign in to comment.