Commit 52cc5ef2af6 for nodejs
commit 52cc5ef2af66401d3b32783ab08d5388c5cf2cc6
Author: Node.js GitHub Bot <github-bot@iojs.org>
Date: Mon Nov 30 19:54:53 2026 -0500
test: update WPT for url to d29e99bec8
PR-URL: https://github.com/nodejs/node/pull/67857
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
diff --git a/test/fixtures/wpt/url/resources/urltestdata-javascript-only.json b/test/fixtures/wpt/url/resources/urltestdata-javascript-only.json
index 01b37526b99..367da42d12d 100644
--- a/test/fixtures/wpt/url/resources/urltestdata-javascript-only.json
+++ b/test/fixtures/wpt/url/resources/urltestdata-javascript-only.json
@@ -29,5 +29,20 @@
"pathname": "/%EF%BF%BD/b/c",
"search": "",
"hash": ""
+ },
+ {
+ "input": "http://www.google.com/asdf#\uD800",
+ "base": null,
+ "href": "http://www.google.com/asdf#%EF%BF%BD",
+ "origin": "http://www.google.com",
+ "protocol": "http:",
+ "username": "",
+ "password": "",
+ "host": "www.google.com",
+ "hostname": "www.google.com",
+ "port": "",
+ "pathname": "/asdf",
+ "search": "",
+ "hash": "#%EF%BF%BD"
}
]
diff --git a/test/fixtures/wpt/url/resources/urltestdata.json b/test/fixtures/wpt/url/resources/urltestdata.json
index 950569a8024..ac274685dd1 100644
--- a/test/fixtures/wpt/url/resources/urltestdata.json
+++ b/test/fixtures/wpt/url/resources/urltestdata.json
@@ -3748,6 +3748,96 @@
"search": "",
"hash": ""
},
+ {
+ "input": "HTTP://example.com/",
+ "base": null,
+ "href": "http://example.com/",
+ "origin": "http://example.com",
+ "protocol": "http:",
+ "username": "",
+ "password": "",
+ "host": "example.com",
+ "hostname": "example.com",
+ "port": "",
+ "pathname": "/",
+ "search": "",
+ "hash": ""
+ },
+ {
+ "input": "javascript:",
+ "base": null,
+ "href": "javascript:",
+ "origin": "null",
+ "protocol": "javascript:",
+ "username": "",
+ "password": "",
+ "host": "",
+ "hostname": "",
+ "port": "",
+ "pathname": "",
+ "search": "",
+ "hash": ""
+ },
+ {
+ "input": "JavaScript:Foo",
+ "base": null,
+ "href": "javascript:Foo",
+ "origin": "null",
+ "protocol": "javascript:",
+ "username": "",
+ "password": "",
+ "host": "",
+ "hostname": "",
+ "port": "",
+ "pathname": "Foo",
+ "search": "",
+ "hash": ""
+ },
+ {
+ "input": "javascript:alert(\t 1 \n\r)",
+ "base": null,
+ "href": "javascript:alert( 1 )",
+ "origin": "null",
+ "protocol": "javascript:",
+ "username": "",
+ "password": "",
+ "host": "",
+ "hostname": "",
+ "port": "",
+ "pathname": "alert( 1 )",
+ "search": "",
+ "hash": ""
+ },
+ {
+ "input": "javascript:alert(\" \u0001 \u03B2 \")",
+ "base": null,
+ "href": "javascript:alert(\" %01 %CE%B2 \")",
+ "origin": "null",
+ "protocol": "javascript:",
+ "username": "",
+ "password": "",
+ "host": "",
+ "hostname": "",
+ "port": "",
+ "pathname": "alert(\" %01 %CE%B2 \")",
+ "search": "",
+ "hash": ""
+ },
+ {
+ "input": "http:////////user:@google.com:99?foo",
+ "base": null,
+ "href": "http://user@google.com:99/?foo",
+ "origin": "http://google.com:99",
+ "protocol": "http:",
+ "username": "user",
+ "password": "",
+ "host": "google.com:99",
+ "hostname": "google.com",
+ "port": "99",
+ "pathname": "/",
+ "search": "?foo",
+ "hash": ""
+ },
"# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/host.html",
"Basic canonicalization, uppercase should be converted to lowercase",
{
@@ -4164,6 +4254,17 @@
"base": "http://other.com/",
"failure": true
},
+ "Fullwidth solidus and colon are mapped to forbidden domain code points",
+ {
+ "input": "http://example.com/foo/",
+ "base": null,
+ "failure": true
+ },
+ {
+ "input": "http://www.lookout.net:80/",
+ "base": null,
+ "failure": true
+ },
"Basic IDN support, UTF-8 and UTF-16 input should be converted to IDN",
{
"input": "http://你好你好",
@@ -4394,6 +4495,21 @@
"base": "http://other.com/",
"failure": true
},
+ {
+ "input": "http://[2001::1",
+ "base": null,
+ "failure": true
+ },
+ {
+ "input": "http://[[::]]",
+ "base": null,
+ "failure": true
+ },
+ {
+ "input": "http://[61:27]:98",
+ "base": null,
+ "failure": true
+ },
"Misc Unicode",
{
"input": "http://foo:💩@example.com/bar",
diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json
index ad0284774f9..d1b30918ab9 100644
--- a/test/fixtures/wpt/versions.json
+++ b/test/fixtures/wpt/versions.json
@@ -76,7 +76,7 @@
"path": "streams"
},
"url": {
- "commit": "2fa965b55c94cbb2f15324aa8a149500fd5f05f9",
+ "commit": "d29e99bec8fbf722fda01122834433e967427c6d",
"path": "url"
},
"urlpattern": {