Compare commits
1 commit
main
...
actions/up
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d694ca3c91 |
5 changed files with 862 additions and 783 deletions
1522
test/fixtures/wpt/url/resources/IdnaTestV2.json
vendored
1522
test/fixtures/wpt/url/resources/IdnaTestV2.json
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -1137,9 +1137,9 @@
|
|||
"href": "https://example.com/",
|
||||
"new_value": "xn--",
|
||||
"expected": {
|
||||
"href": "https://example.com/",
|
||||
"host": "example.com",
|
||||
"hostname": "example.com"
|
||||
"href": "https://xn--/",
|
||||
"host": "xn--",
|
||||
"hostname": "xn--"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -1611,9 +1611,9 @@
|
|||
"href": "https://example.com/",
|
||||
"new_value": "xn--",
|
||||
"expected": {
|
||||
"href": "https://example.com/",
|
||||
"host": "example.com",
|
||||
"hostname": "example.com"
|
||||
"href": "https://xn--/",
|
||||
"host": "xn--",
|
||||
"hostname": "xn--"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
14
test/fixtures/wpt/url/resources/toascii.json
vendored
14
test/fixtures/wpt/url/resources/toascii.json
vendored
|
|
@ -55,11 +55,11 @@
|
|||
{
|
||||
"comment": "Invalid Punycode",
|
||||
"input": "xn--a",
|
||||
"output": null
|
||||
"output": "xn--a"
|
||||
},
|
||||
{
|
||||
"input": "xn--a.xn--zca",
|
||||
"output": null
|
||||
"output": "xn--a.xn--zca"
|
||||
},
|
||||
{
|
||||
"input": "xn--a.ß",
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
},
|
||||
{
|
||||
"input": "xn--ls8h=",
|
||||
"output": null
|
||||
"output": "xn--ls8h="
|
||||
},
|
||||
{
|
||||
"comment": "Invalid Punycode (contains non-ASCII character)",
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
},
|
||||
{
|
||||
"input": "xn--1ug.example",
|
||||
"output": null
|
||||
"output": "xn--1ug.example"
|
||||
},
|
||||
{
|
||||
"comment": "CheckBidi is true",
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
},
|
||||
{
|
||||
"input": "xn--a-yoc",
|
||||
"output": null
|
||||
"output": "xn--a-yoc"
|
||||
},
|
||||
{
|
||||
"comment": "processing_option is Nontransitional_Processing",
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
{
|
||||
"comment": "U+FFFD character encoded in Punycode",
|
||||
"input": "xn--zn7c.com",
|
||||
"output": null
|
||||
"output": "xn--zn7c.com"
|
||||
},
|
||||
{
|
||||
"comment": "Label longer than 63 code points",
|
||||
|
|
@ -369,7 +369,7 @@
|
|||
},
|
||||
{
|
||||
"input": "xn--0.com",
|
||||
"output": null
|
||||
"output": "xn--0.com"
|
||||
},
|
||||
{
|
||||
"input": "foo\u0300.bar.com",
|
||||
|
|
|
|||
95
test/fixtures/wpt/url/resources/urltestdata.json
vendored
95
test/fixtures/wpt/url/resources/urltestdata.json
vendored
|
|
@ -4001,33 +4001,93 @@
|
|||
{
|
||||
"input": "http://a.b.c.xn--pokxncvks",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "http://a.b.c.xn--pokxncvks/",
|
||||
"origin": "http://a.b.c.xn--pokxncvks",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "a.b.c.xn--pokxncvks",
|
||||
"hostname": "a.b.c.xn--pokxncvks",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "http://10.0.0.xn--pokxncvks",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "http://10.0.0.xn--pokxncvks/",
|
||||
"origin": "http://10.0.0.xn--pokxncvks",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "10.0.0.xn--pokxncvks",
|
||||
"hostname": "10.0.0.xn--pokxncvks",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
"IDNA labels should be matched case-insensitively",
|
||||
{
|
||||
"input": "http://a.b.c.XN--pokxncvks",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "http://a.b.c.xn--pokxncvks/",
|
||||
"origin": "http://a.b.c.xn--pokxncvks",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "a.b.c.xn--pokxncvks",
|
||||
"hostname": "a.b.c.xn--pokxncvks",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "http://a.b.c.Xn--pokxncvks",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "http://a.b.c.xn--pokxncvks/",
|
||||
"origin": "http://a.b.c.xn--pokxncvks",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "a.b.c.xn--pokxncvks",
|
||||
"hostname": "a.b.c.xn--pokxncvks",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "http://10.0.0.XN--pokxncvks",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "http://10.0.0.xn--pokxncvks/",
|
||||
"origin": "http://10.0.0.xn--pokxncvks",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "10.0.0.xn--pokxncvks",
|
||||
"hostname": "10.0.0.xn--pokxncvks",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "http://10.0.0.xN--pokxncvks",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "http://10.0.0.xn--pokxncvks/",
|
||||
"origin": "http://10.0.0.xn--pokxncvks",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "10.0.0.xn--pokxncvks",
|
||||
"hostname": "10.0.0.xn--pokxncvks",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
"Test name prepping, fullwidth input should be converted to ASCII and NOT IDN-ized. This is 'Go' in fullwidth UTF-8/UTF-16.",
|
||||
{
|
||||
|
|
@ -8752,7 +8812,16 @@
|
|||
{
|
||||
"input": "file://xn--/p",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "file://xn--/p",
|
||||
"protocol": "file:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "xn--",
|
||||
"hostname": "xn--",
|
||||
"port": "",
|
||||
"pathname": "/p",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
"https://bugzilla.mozilla.org/show_bug.cgi?id=1647058",
|
||||
{
|
||||
|
|
@ -9498,7 +9567,17 @@
|
|||
{
|
||||
"input": "https://xn--/",
|
||||
"base": null,
|
||||
"failure": true
|
||||
"href": "https://xn--/",
|
||||
"origin": "https://xn--",
|
||||
"protocol": "https:",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"host": "xn--",
|
||||
"hostname": "xn--",
|
||||
"port": "",
|
||||
"pathname": "/",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
"Non-special schemes that some implementations might incorrectly treat as special",
|
||||
{
|
||||
|
|
|
|||
2
test/fixtures/wpt/versions.json
vendored
2
test/fixtures/wpt/versions.json
vendored
|
|
@ -72,7 +72,7 @@
|
|||
"path": "streams"
|
||||
},
|
||||
"url": {
|
||||
"commit": "d4598eba0959249d8715818a402b432c513f9492",
|
||||
"commit": "b63305b743ed9ce2725d4ae09c5c8f0c40d8e6e1",
|
||||
"path": "url"
|
||||
},
|
||||
"urlpattern": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue