Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 89983cf

Browse filesBrowse files
anonrigaduh95
authored andcommitted
test: update url web-platform tests
PR-URL: #61315 Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 098ec6f commit 89983cf
Copy full SHA for 89983cf

7 files changed

+85-24Lines changed: 85 additions & 24 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/fixtures/wpt/README.md‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Last update:
2828
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
2929
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
31-
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
31+
- url: https://github.com/web-platform-tests/wpt/tree/593c46cf18/url
3232
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
3333
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3434
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
Collapse file
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
features:
2+
- name: url
3+
files:
4+
- "*"
5+
- "!url-statics-canparse.*"
26
- name: url-canparse
37
files:
48
- url-statics-canparse.*
9+
- name: base
10+
files:
11+
- a-element*
Collapse file

‎test/fixtures/wpt/url/javascript-urls.window.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/javascript-urls.window.js
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"property": "shouldNotExistB",
2020
"expected": undefined
2121
},
22+
{
23+
"description": "javascript: URL with extra slashes at the start",
24+
"input": "javascript:///globalThis.shouldNotExistC=1",
25+
"property": "shouldNotExistC",
26+
"expected": undefined
27+
},
2228
{
2329
"description": "javascript: URL without an opaque path",
2430
"input": "javascript://host/1%0a//../0/;globalThis.shouldBeOne=1;/%0aglobalThis.shouldBeOne=2;/..///",
Collapse file

‎test/fixtures/wpt/url/resources/IdnaTestV2.json‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/IdnaTestV2.json
+23-16Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8708,14 +8708,14 @@
87088708
"output": null
87098709
},
87108710
{
8711-
"comment": "V7; A4_2 (ignored)",
8711+
"comment": "A4_2 (ignored)",
87128712
"input": "\ud88a\udd3120.\u97f3.\ua8661.",
8713-
"output": null
8713+
"output": "xn--20-9802c.xn--0w5a.xn--1-eg4e."
87148714
},
87158715
{
8716-
"comment": "V7; A4_2 (ignored)",
8716+
"comment": "A4_2 (ignored)",
87178717
"input": "xn--20-9802c.xn--0w5a.xn--1-eg4e.",
8718-
"output": null
8718+
"output": "xn--20-9802c.xn--0w5a.xn--1-eg4e."
87198719
},
87208720
{
87218721
"comment": "V7",
@@ -9095,57 +9095,64 @@
90959095
"output": null
90969096
},
90979097
{
9098-
"comment": "C2; V7",
9098+
"comment": "C2",
90999099
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200d\u00df",
91009100
"output": null
91019101
},
91029102
{
9103-
"comment": "C2; V7",
9103+
"comment": "C2",
91049104
"input": "\ud88a\udf9a9\ua369\u17d3.\u200d\u00df",
91059105
"output": null
91069106
},
91079107
{
9108-
"comment": "C2; V7",
9108+
"comment": "C2",
91099109
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dSS",
91109110
"output": null
91119111
},
91129112
{
9113-
"comment": "C2; V7",
9113+
"comment": "C2",
91149114
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dss",
91159115
"output": null
91169116
},
91179117
{
9118-
"comment": "V7",
91199118
"input": "xn--9-i0j5967eg3qz.ss",
9120-
"output": null
9119+
"output": "xn--9-i0j5967eg3qz.ss"
91219120
},
91229121
{
9123-
"comment": "C2; V7",
9122+
"input": "\ud88a\udf9a9\ua369\u17d3.ss",
9123+
"output": "xn--9-i0j5967eg3qz.ss"
9124+
},
9125+
{
9126+
"input": "\ud88a\udf9a9\ua369\u17d3.SS",
9127+
"output": "xn--9-i0j5967eg3qz.ss"
9128+
},
9129+
{
9130+
"comment": "C2",
91249131
"input": "xn--9-i0j5967eg3qz.xn--ss-l1t",
91259132
"output": null
91269133
},
91279134
{
9128-
"comment": "C2; V7",
9135+
"comment": "C2",
91299136
"input": "xn--9-i0j5967eg3qz.xn--zca770n",
91309137
"output": null
91319138
},
91329139
{
9133-
"comment": "C2; V7",
9140+
"comment": "C2",
91349141
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSS",
91359142
"output": null
91369143
},
91379144
{
9138-
"comment": "C2; V7",
9145+
"comment": "C2",
91399146
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dss",
91409147
"output": null
91419148
},
91429149
{
9143-
"comment": "C2; V7",
9150+
"comment": "C2",
91449151
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dSs",
91459152
"output": null
91469153
},
91479154
{
9148-
"comment": "C2; V7",
9155+
"comment": "C2",
91499156
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSs",
91509157
"output": null
91519158
},
Collapse file

‎test/fixtures/wpt/url/resources/setters_tests.json‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/setters_tests.json
+31Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,15 @@
11951195
"host": "test",
11961196
"hostname": "test"
11971197
}
1198+
},
1199+
{
1200+
"href": "foo://path/to",
1201+
"new_value": ":80",
1202+
"expected": {
1203+
"href": "foo://path/to",
1204+
"host": "path",
1205+
"port": ""
1206+
}
11981207
}
11991208
],
12001209
"hostname": [
@@ -1909,6 +1918,20 @@
19091918
"expected": {
19101919
"port": "4"
19111920
}
1921+
},
1922+
{
1923+
"href": "https://domain.com:3000",
1924+
"new_value": "\n\t80\n\t80\n\t",
1925+
"expected": {
1926+
"port": "8080"
1927+
}
1928+
},
1929+
{
1930+
"href": "https://domain.com:3000",
1931+
"new_value": "\n\n\t\t",
1932+
"expected": {
1933+
"port": "3000"
1934+
}
19121935
}
19131936
],
19141937
"pathname": [
@@ -2191,6 +2214,14 @@
21912214
"href": "http://example.net/%00",
21922215
"pathname": "/%00"
21932216
}
2217+
},
2218+
{
2219+
"href": "foo://path/to",
2220+
"new_value": "/..",
2221+
"expected": {
2222+
"href": "foo://path/",
2223+
"pathname": "/"
2224+
}
21942225
}
21952226
],
21962227
"search": [
Collapse file

‎test/fixtures/wpt/versions.json‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/versions.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"path": "streams"
7373
},
7474
"url": {
75-
"commit": "9504a83e014b6b26d6c09eaee89c6b83cb7410c2",
75+
"commit": "593c46cf18ee325a8740d3f0f4c447840fb9919a",
7676
"path": "url"
7777
},
7878
"urlpattern": {
Collapse file

‎test/wpt/status/url.json‎

Copy file name to clipboard
+16-6Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
{
2-
"percent-encoding.window.js": {
3-
"skip": "TODO: port from .window.js"
2+
"IdnaTestV2.window.js": {
3+
"fail": {
4+
"expected": [
5+
"ToASCII(\"𲤱20.音.ꡦ1.\") A4_2 (ignored)",
6+
"ToASCII(\"xn--20-9802c.xn--0w5a.xn--1-eg4e.\") A4_2 (ignored)",
7+
"ToASCII(\"xn--9-i0j5967eg3qz.ss\")",
8+
"ToASCII(\"𲮚9ꍩ៓.ss\")",
9+
"ToASCII(\"𲮚9ꍩ៓.SS\")"
10+
]
11+
}
412
},
513
"historical.any.js": {
614
"fail": {
7-
"note": "We are faking location with a URL object for the sake of the testharness and it has searchParams.",
815
"expected": [
916
"searchParams on location object"
1017
]
1118
}
1219
},
13-
"url-setters-a-area.window.js": {
14-
"skip": "already tested in url-setters.any.js"
15-
},
1620
"javascript-urls.window.js": {
1721
"skip": "requires document.body reference"
22+
},
23+
"percent-encoding.window.js": {
24+
"skip": "TODO: port from .window.js"
25+
},
26+
"url-setters-a-area.window.js": {
27+
"skip": "already tested in url-setters.any.js"
1828
}
1929
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.