Skip to content

Commit

Permalink
Update WPT: Move JS-specific URL parser tests into their own file
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Jul 17, 2024
1 parent 306e0ca commit 8354307
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/download-wpt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
4 changes: 2 additions & 2 deletions test/download-wpt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions test/wpt-url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8354307

Please sign in to comment.