Skip to content

Commit f070099

Browse files
test: update WPT for url to 593c46cf18
1 parent 15bdf38 commit f070099

File tree

6 files changed

+69
-18
lines changed

6 files changed

+69
-18
lines changed

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion
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
Lines 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*

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

Lines 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;/..///",

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

Lines 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
},

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

Lines 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": [

test/fixtures/wpt/versions.json

Lines 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": {

0 commit comments

Comments
 (0)