From 8354307c9ccb5d8ceafd8020e7dadc8346ce05a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Wed, 17 Jul 2024 20:21:30 +0300 Subject: [PATCH] Update WPT: Move JS-specific URL parser tests into their own file See: https://github.com/web-platform-tests/wpt/commit/2b9af57f5f61e06e93a0caff5256d2c435b5c468 --- test/download-wpt.bat | 4 ++-- test/download-wpt.sh | 4 ++-- test/wpt-url.cpp | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/download-wpt.bat b/test/download-wpt.bat index cb8b2db..fbc7dd6 100644 --- a/test/download-wpt.bat +++ b/test/download-wpt.bat @@ -8,8 +8,8 @@ REM REM 1. Go to https://github.com/web-platform-tests/wpt/tree/master/url REM 2. Find "Latest commit" text and click link next to it. REM 3. Copy hash from URL -set HASH=6a39784534e118acc102cf5252c542378831401d +set HASH=2b9af57f5f61e06e93a0caff5256d2c435b5c468 -for %%f in (setters_tests.json toascii.json urltestdata.json percent-encoding.json IdnaTestV2.json) do ( +for %%f in (setters_tests.json toascii.json urltestdata.json urltestdata-javascript-only.json percent-encoding.json IdnaTestV2.json) do ( curl -fsS -o %p%\wpt\%%f https://raw.githubusercontent.com/web-platform-tests/wpt/%HASH%/url/resources/%%f ) diff --git a/test/download-wpt.sh b/test/download-wpt.sh index 597ef19..2f72f37 100755 --- a/test/download-wpt.sh +++ b/test/download-wpt.sh @@ -9,9 +9,9 @@ p="$(dirname "$0")" # 1. Go to https://github.com/web-platform-tests/wpt/tree/master/url # 2. Find "Latest commit" text and click link next to it. # 3. Copy hash from URL -HASH=6a39784534e118acc102cf5252c542378831401d +HASH=2b9af57f5f61e06e93a0caff5256d2c435b5c468 -for f in setters_tests.json toascii.json urltestdata.json percent-encoding.json IdnaTestV2.json +for f in setters_tests.json toascii.json urltestdata.json urltestdata-javascript-only.json percent-encoding.json IdnaTestV2.json do curl -fsS -o $p/wpt/$f https://raw.githubusercontent.com/web-platform-tests/wpt/${HASH}/url/resources/$f done diff --git a/test/wpt-url.cpp b/test/wpt-url.cpp index 2c203ad..512e0f5 100644 --- a/test/wpt-url.cpp +++ b/test/wpt-url.cpp @@ -36,6 +36,7 @@ int main(int argc, char** argv) // URL web-platform-tests err |= test_from_file(run_parser_tests, "wpt/urltestdata.json"); + err |= test_from_file(run_parser_tests, "wpt/urltestdata-javascript-only.json"); err |= test_from_file(run_host_parser_tests, "wpt/toascii.json"); err |= test_from_file(run_setter_tests, "wpt/setters_tests.json"); err |= test_from_file(run_percent_encoding_tests, "wpt/percent-encoding.json");