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 02383b4

Browse filesBrowse files
nodejs-github-botruyadorno
authored andcommitted
test: update WPT for url to 6fa3fe8a92
PR-URL: #56136 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 9fa0e41 commit 02383b4
Copy full SHA for 02383b4

File tree

Expand file treeCollapse file tree

6 files changed

+193
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

6 files changed

+193
-6
lines changed
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/1e140d63ec/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
31-
- url: https://github.com/web-platform-tests/wpt/tree/67880a4eb8/url
31+
- url: https://github.com/web-platform-tests/wpt/tree/6fa3fe8a92/url
3232
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3333
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
3434
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
Collapse file

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

Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/toascii.json
+172-1Lines changed: 172 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
2-
"This resource is focused on highlighting issues with UTS #46 ToASCII",
2+
"This contains assorted IDNA tests that IdnaTestV2 might not cover.",
3+
"Feel free to deduplicate with a clear commit message.",
34
{
45
"comment": "Label with hyphens in 3rd and 4th position",
56
"input": "aa--",
@@ -198,5 +199,175 @@
198199
{
199200
"input": ">\u00AD\u0338",
200201
"output": "xn--hdh"
202+
},
203+
"Tests below are from WebKit (fast/url/idna2003.html & fast/url/idna2008.html; contributed by Chris Weber back in 2011).",
204+
{
205+
"input": "fa\u00DF.de",
206+
"output": "xn--fa-hia.de"
207+
},
208+
{
209+
"input": "\u03B2\u03CC\u03BB\u03BF\u03C2.com",
210+
"output": "xn--nxasmm1c.com"
211+
},
212+
{
213+
"input": "\u0DC1\u0DCA\u200D\u0DBB\u0DD3.com",
214+
"output": "xn--10cl1a0b660p.com"
215+
},
216+
{
217+
"input": "\u0646\u0627\u0645\u0647\u200C\u0627\u06CC.com",
218+
"output": "xn--mgba3gch31f060k.com"
219+
},
220+
{
221+
"input": "www.loo\u0138out.net",
222+
"output": "www.xn--looout-5bb.net"
223+
},
224+
{
225+
"input": "\u15EF\u15EF\u15EF.lookout.net",
226+
"output": "xn--1qeaa.lookout.net"
227+
},
228+
{
229+
"input": "www.lookout.\u0441\u043E\u043C",
230+
"output": "www.lookout.xn--l1adi"
231+
},
232+
{
233+
"input": "www\u2025lookout.net",
234+
"output": null
235+
},
236+
{
237+
"input": "www.lookout\u2027net",
238+
"output": "www.xn--lookoutnet-406e"
239+
},
240+
{
241+
"input": "www.lookout.net\u2A7480",
242+
"output": null
243+
},
244+
{
245+
"input": "www\u00A0.lookout.net",
246+
"output": null
247+
},
248+
{
249+
"input": "\u1680lookout.net",
250+
"output": null
251+
},
252+
{
253+
"input": "\u001flookout.net",
254+
"output": null
255+
},
256+
{
257+
"input": "look\u06DDout.net",
258+
"output": null
259+
},
260+
{
261+
"input": "look\u180Eout.net",
262+
"output": null
263+
},
264+
{
265+
"input": "look\u2060out.net",
266+
"output": "lookout.net"
267+
},
268+
{
269+
"input": "look\uFEFFout.net",
270+
"output": "lookout.net"
271+
},
272+
{
273+
"input": "look\uD83F\uDFFEout.net",
274+
"output": null
275+
},
276+
{
277+
"input": "look\uFFFAout.net",
278+
"output": null
279+
},
280+
{
281+
"input": "look\u2FF0out.net",
282+
"output": null
283+
},
284+
{
285+
"input": "look\u0341out.net",
286+
"output": "xn--looout-kp7b.net"
287+
},
288+
{
289+
"input": "look\u202Eout.net",
290+
"output": null
291+
},
292+
{
293+
"input": "look\u206Bout.net",
294+
"output": null
295+
},
296+
{
297+
"input": "look\uDB40\uDC01out.net",
298+
"output": null
299+
},
300+
{
301+
"input": "look\uDB40\uDC20out.net",
302+
"output": null
303+
},
304+
{
305+
"input": "look\u05BEout.net",
306+
"output": null
307+
},
308+
{
309+
"input": "B\u00FCcher.de",
310+
"output": "xn--bcher-kva.de"
311+
},
312+
{
313+
"input": "\u2665.net",
314+
"output": "xn--g6h.net"
315+
},
316+
{
317+
"input": "\u0378.net",
318+
"output": null
319+
},
320+
{
321+
"input": "\u04C0.com",
322+
"output": null
323+
},
324+
{
325+
"comment": "This is U+2F868 (which is mapped to U+36FC starting with Unicode 16.0)",
326+
"input": "\uD87E\uDC68.com",
327+
"output": "xn--snl.com"
328+
},
329+
{
330+
"input": "\u2183.com",
331+
"output": null
332+
},
333+
{
334+
"input": "look\u034Fout.net",
335+
"output": "lookout.net"
336+
},
337+
{
338+
"input": "gOoGle.com",
339+
"output": "google.com"
340+
},
341+
{
342+
"input": "\u09dc.com",
343+
"output": "xn--15b8c.com"
344+
},
345+
{
346+
"input": "\u1E9E.com",
347+
"output": "xn--zca.com"
348+
},
349+
{
350+
"input": "\u1E9E.foo.com",
351+
"output": "xn--zca.foo.com"
352+
},
353+
{
354+
"input": "-foo.bar.com",
355+
"output": "-foo.bar.com"
356+
},
357+
{
358+
"input": "foo-.bar.com",
359+
"output": "foo-.bar.com"
360+
},
361+
{
362+
"input": "ab--cd.com",
363+
"output": "ab--cd.com"
364+
},
365+
{
366+
"input": "xn--0.com",
367+
"output": null
368+
},
369+
{
370+
"input": "foo\u0300.bar.com",
371+
"output": "xn--fo-3ja.bar.com"
201372
}
202373
]
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": "67880a4eb83ca9aa732eec4b35a1971ff5bf37ff",
75+
"commit": "6fa3fe8a929be45422cd46a8961e647e13d0cab8",
7676
"path": "url"
7777
},
7878
"user-timing": {
Collapse file

‎…allel/test-whatwg-url-custom-domainto.js‎ ‎…ssues/test-whatwg-url-custom-domainto.js‎test/parallel/test-whatwg-url-custom-domainto.js renamed to test/known_issues/test-whatwg-url-custom-domainto.js test/parallel/test-whatwg-url-custom-domainto.js renamed to test/known_issues/test-whatwg-url-custom-domainto.js

Copy file name to clipboardExpand all lines: test/known_issues/test-whatwg-url-custom-domainto.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { domainToASCII, domainToUnicode } = require('url');
1313
const tests = require('../fixtures/url-idna');
1414
const fixtures = require('../common/fixtures');
1515
const wptToASCIITests = require(
16-
fixtures.path('wpt', 'url', 'resources', 'toascii.json')
16+
fixtures.path('wpt', 'url', 'resources', 'toascii.json'),
1717
);
1818

1919
{
Collapse file

‎test/parallel/test-whatwg-url-toascii.js‎ ‎…/known_issues/test-whatwg-url-toascii.js‎test/parallel/test-whatwg-url-toascii.js renamed to test/known_issues/test-whatwg-url-toascii.js test/parallel/test-whatwg-url-toascii.js renamed to test/known_issues/test-whatwg-url-toascii.js

Copy file name to clipboardExpand all lines: test/known_issues/test-whatwg-url-toascii.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const { test, assert_equals, assert_throws } = require('../common/wpt').harness;
1010

1111
const request = {
1212
response: require(
13-
fixtures.path('wpt', 'url', 'resources', 'toascii.json')
14-
)
13+
fixtures.path('wpt', 'url', 'resources', 'toascii.json'),
14+
),
1515
};
1616

1717
// The following tests are copied from WPT. Modifications to them should be
Collapse file

‎test/wpt/status/url.json‎

Copy file name to clipboardExpand all lines: test/wpt/status/url.json
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@
1313
]
1414
}
1515
},
16+
"toascii.window.js": {
17+
"fail": {
18+
"note": "Unicode 15.1",
19+
"expected": [
20+
"\uD87E\uDC68.com (using URL)",
21+
"\uD87E\uDC68.com (using URL.host)",
22+
"\uD87E\uDC68.com (using URL.hostname)",
23+
"\u1E9E.com (using URL)",
24+
"\u1E9E.com (using URL.host)",
25+
"\u1E9E.com (using URL.hostname)",
26+
"\u1E9E.foo.com (using URL)",
27+
"\u1E9E.foo.com (using URL.host)",
28+
"\u1E9E.foo.com (using URL.hostname)"
29+
]
30+
}
31+
},
1632
"url-setters-a-area.window.js": {
1733
"skip": "already tested in url-setters.any.js"
1834
},

0 commit comments

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