diff --git a/test/download-wpt.bat b/test/download-wpt.bat new file mode 100644 index 0000000..1bae203 --- /dev/null +++ b/test/download-wpt.bat @@ -0,0 +1,15 @@ +@echo off + +REM the directory path of this file +set p=%~dp0 + +REM Commit hash of web-platform-tests (wpt) +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=8553d30dd590715a63273e90da1951b8b0b37672 + +for %%f in (setters_tests.json toascii.json urltestdata.json) do ( + curl -o %p%\wpt\%%f https://raw.githubusercontent.com/web-platform-tests/wpt/%HASH%/url/resources/%%f +)