mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: update url web-platform tests
PR-URL: https://github.com/nodejs/node/pull/61315 Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
b46b8dd91b
commit
180fdbf188
7 files changed
+85
-24
No files matched your search
Vendored
+1
-1
@@ -28,7 +28,7 @@ Last update:
|
||||
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
|
||||
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
|
||||
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
|
||||
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
|
||||
- url: https://github.com/web-platform-tests/wpt/tree/593c46cf18/url
|
||||
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
|
||||
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
|
||||
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
|
||||
|
||||
+7
@@ -1,4 +1,11 @@
|
||||
features:
|
||||
- name: url
|
||||
files:
|
||||
- "*"
|
||||
- "!url-statics-canparse.*"
|
||||
- name: url-canparse
|
||||
files:
|
||||
- url-statics-canparse.*
|
||||
- name: base
|
||||
files:
|
||||
- a-element*
|
||||
@@ -19,6 +19,12 @@
|
||||
"property": "shouldNotExistB",
|
||||
"expected": undefined
|
||||
},
|
||||
{
|
||||
"description": "javascript: URL with extra slashes at the start",
|
||||
"input": "javascript:///globalThis.shouldNotExistC=1",
|
||||
"property": "shouldNotExistC",
|
||||
"expected": undefined
|
||||
},
|
||||
{
|
||||
"description": "javascript: URL without an opaque path",
|
||||
"input": "javascript://host/1%0a//../0/;globalThis.shouldBeOne=1;/%0aglobalThis.shouldBeOne=2;/..///",
|
||||
|
||||
+23
-16
@@ -8708,14 +8708,14 @@
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "V7; A4_2 (ignored)",
|
||||
"comment": "A4_2 (ignored)",
|
||||
"input": "\ud88a\udd3120.\u97f3.\ua8661.",
|
||||
"output": null
|
||||
"output": "xn--20-9802c.xn--0w5a.xn--1-eg4e."
|
||||
},
|
||||
{
|
||||
"comment": "V7; A4_2 (ignored)",
|
||||
"comment": "A4_2 (ignored)",
|
||||
"input": "xn--20-9802c.xn--0w5a.xn--1-eg4e.",
|
||||
"output": null
|
||||
"output": "xn--20-9802c.xn--0w5a.xn--1-eg4e."
|
||||
},
|
||||
{
|
||||
"comment": "V7",
|
||||
@@ -9095,57 +9095,64 @@
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200d\u00df",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a9\ua369\u17d3.\u200d\u00df",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dSS",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dss",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "V7",
|
||||
"input": "xn--9-i0j5967eg3qz.ss",
|
||||
"output": null
|
||||
"output": "xn--9-i0j5967eg3qz.ss"
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"input": "\ud88a\udf9a9\ua369\u17d3.ss",
|
||||
"output": "xn--9-i0j5967eg3qz.ss"
|
||||
},
|
||||
{
|
||||
"input": "\ud88a\udf9a9\ua369\u17d3.SS",
|
||||
"output": "xn--9-i0j5967eg3qz.ss"
|
||||
},
|
||||
{
|
||||
"comment": "C2",
|
||||
"input": "xn--9-i0j5967eg3qz.xn--ss-l1t",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "xn--9-i0j5967eg3qz.xn--zca770n",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSS",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dss",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dSs",
|
||||
"output": null
|
||||
},
|
||||
{
|
||||
"comment": "C2; V7",
|
||||
"comment": "C2",
|
||||
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSs",
|
||||
"output": null
|
||||
},
|
||||
|
||||
@@ -1195,6 +1195,15 @@
|
||||
"host": "test",
|
||||
"hostname": "test"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "foo://path/to",
|
||||
"new_value": ":80",
|
||||
"expected": {
|
||||
"href": "foo://path/to",
|
||||
"host": "path",
|
||||
"port": ""
|
||||
}
|
||||
}
|
||||
],
|
||||
"hostname": [
|
||||
@@ -1909,6 +1918,20 @@
|
||||
"expected": {
|
||||
"port": "4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "https://domain.com:3000",
|
||||
"new_value": "\n\t80\n\t80\n\t",
|
||||
"expected": {
|
||||
"port": "8080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "https://domain.com:3000",
|
||||
"new_value": "\n\n\t\t",
|
||||
"expected": {
|
||||
"port": "3000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"pathname": [
|
||||
@@ -2191,6 +2214,14 @@
|
||||
"href": "http://example.net/%00",
|
||||
"pathname": "/%00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "foo://path/to",
|
||||
"new_value": "/..",
|
||||
"expected": {
|
||||
"href": "foo://path/",
|
||||
"pathname": "/"
|
||||
}
|
||||
}
|
||||
],
|
||||
"search": [
|
||||
|
||||
Vendored
+1
-1
@@ -72,7 +72,7 @@
|
||||
"path": "streams"
|
||||
},
|
||||
"url": {
|
||||
"commit": "9504a83e014b6b26d6c09eaee89c6b83cb7410c2",
|
||||
"commit": "593c46cf18ee325a8740d3f0f4c447840fb9919a",
|
||||
"path": "url"
|
||||
},
|
||||
"urlpattern": {
|
||||
|
||||
@@ -1,19 +1,29 @@
|
||||
{
|
||||
"percent-encoding.window.js": {
|
||||
"skip": "TODO: port from .window.js"
|
||||
"IdnaTestV2.window.js": {
|
||||
"fail": {
|
||||
"expected": [
|
||||
"ToASCII(\"20.音.ꡦ1.\") A4_2 (ignored)",
|
||||
"ToASCII(\"xn--20-9802c.xn--0w5a.xn--1-eg4e.\") A4_2 (ignored)",
|
||||
"ToASCII(\"xn--9-i0j5967eg3qz.ss\")",
|
||||
"ToASCII(\"9ꍩ៓.ss\")",
|
||||
"ToASCII(\"9ꍩ៓.SS\")"
|
||||
]
|
||||
}
|
||||
},
|
||||
"historical.any.js": {
|
||||
"fail": {
|
||||
"note": "We are faking location with a URL object for the sake of the testharness and it has searchParams.",
|
||||
"expected": [
|
||||
"searchParams on location object"
|
||||
]
|
||||
}
|
||||
},
|
||||
"url-setters-a-area.window.js": {
|
||||
"skip": "already tested in url-setters.any.js"
|
||||
},
|
||||
"javascript-urls.window.js": {
|
||||
"skip": "requires document.body reference"
|
||||
},
|
||||
"percent-encoding.window.js": {
|
||||
"skip": "TODO: port from .window.js"
|
||||
},
|
||||
"url-setters-a-area.window.js": {
|
||||
"skip": "already tested in url-setters.any.js"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user