Skip to content

Commit

Permalink
Update my-urltestdata.json
Browse files Browse the repository at this point in the history
Change `"base": "about:blank"` to `"base": null`, where the base URL is
irrelevant.
  • Loading branch information
rmisev committed Jul 13, 2024
1 parent a8289d4 commit 80448b9
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions test/data/my-urltestdata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
"Invalid sheme with cannot be base URL",
"Invalid sheme with URL that has an opaque path",
{
"input": "",
"base": "about:blank",
Expand Down Expand Up @@ -69,7 +69,7 @@
"Invalid percent-encode sequence (%xx) in hostname",
{
"input": "non-spec://%C4%84%xx",
"base": "about:blank",
"base": null,
"href": "non-spec://%C4%84%xx",
"protocol": "non-spec:",
"username": "",
Expand All @@ -83,18 +83,18 @@
},
{
"input": "https://%C4%84%xx",
"base": "about:blank",
"base": null,
"failure": true
},
"Invalid IPv4 address number",
{
"input": "https://0100000000000/",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "https://0xAx/",
"base": "about:blank",
"base": null,
"href": "https://0xax/",
"origin": "https://0xax",
"protocol": "https:",
Expand All @@ -110,59 +110,59 @@
"Invalid IPv6 address",
{
"input": "https://[:1]/",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "https://[1:1]/",
"base": "about:blank",
"base": null,
"failure": true
},
"Non-IPv4 tests",
{
"input": "http://0xAX.1",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://0xAX.1.",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://a.0x",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://a.0x.",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://a.0x100000000000000000000000000000000",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://a.0x100000000000000000000000000000000.",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://1.0x100000000000000000000000000000000",
"base": "about:blank",
"base": null,
"failure": true
},
{
"input": "http://1.0x100000000000000000000000000000000.",
"base": "about:blank",
"base": null,
"failure": true
},
"IPv4",
{
"input": "http://1.0x",
"base": "about:blank",
"base": null,
"href": "http://1.0.0.0/",
"origin": "http://1.0.0.0",
"protocol": "http:",
Expand All @@ -177,7 +177,7 @@
},
{
"input": "http://1.0x.",
"base": "about:blank",
"base": null,
"href": "http://1.0.0.0/",
"origin": "http://1.0.0.0",
"protocol": "http:",
Expand All @@ -193,7 +193,7 @@
"IPv4 parser must not be invoked when there are two empty labels at the end",
{
"input": "http://1.0x..",
"base": "about:blank",
"base": null,
"href": "http://1.0x../",
"origin": "http://1.0x..",
"protocol": "http:",
Expand All @@ -208,7 +208,7 @@
},
{
"input": "http://a.1..",
"base": "about:blank",
"base": null,
"href": "http://a.1../",
"origin": "http://a.1..",
"protocol": "http:",
Expand Down

0 comments on commit 80448b9

Please sign in to comment.