From 931ff4367abed33cef90ae4e5cb8e33898585021 Mon Sep 17 00:00:00 2001 From: Mert Can Altin Date: Sun, 14 Jul 2024 19:24:21 +0300 Subject: [PATCH] test: update wpt test PR-URL: https://github.com/nodejs/node/pull/53814 Reviewed-By: Yagiz Nizipli Reviewed-By: Filip Skokan Reviewed-By: Luigi Pinca --- test/fixtures/wpt/README.md | 2 +- test/fixtures/wpt/url/resources/toascii.json | 26 ++++++++++++++++++++ test/fixtures/wpt/versions.json | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 02e02a9d1f3c73..9f406d6ae600fb 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -27,7 +27,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/1e140d63ec/resources - streams: https://github.com/web-platform-tests/wpt/tree/9b03282a99/streams -- url: https://github.com/web-platform-tests/wpt/tree/7f369fef2b/url +- url: https://github.com/web-platform-tests/wpt/tree/6a39784534/url - 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 - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi diff --git a/test/fixtures/wpt/url/resources/toascii.json b/test/fixtures/wpt/url/resources/toascii.json index bca28b4a1e454a..d02c4c7e86654c 100644 --- a/test/fixtures/wpt/url/resources/toascii.json +++ b/test/fixtures/wpt/url/resources/toascii.json @@ -172,5 +172,31 @@ { "input": "≯", "output": "xn--hdh" + }, + { + "comment": "NFC normalization (forbidden < and > characters are normalized to valid ones)", + "input": "=\u0338", + "output": "xn--1ch" + }, + { + "input": "<\u0338", + "output": "xn--gdh" + }, + { + "input": ">\u0338", + "output": "xn--hdh" + }, + { + "comment": "Same with inserted IDNA ignored code point", + "input": "=\u00AD\u0338", + "output": "xn--1ch" + }, + { + "input": "<\u00AD\u0338", + "output": "xn--gdh" + }, + { + "input": ">\u00AD\u0338", + "output": "xn--hdh" } ] diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index 602b4c63e83205..42ce22c0f9352c 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -68,7 +68,7 @@ "path": "streams" }, "url": { - "commit": "7f369fef2b6f740a0738510331274bf2cbf7b509", + "commit": "6a39784534e118acc102cf5252c542378831401d", "path": "url" }, "user-timing": {