diff --git a/justfile b/justfile index 604cd44e..8922a45f 100644 --- a/justfile +++ b/justfile @@ -72,8 +72,8 @@ wpt-test filter="": wpt-build # Update web platform test expectations [group('wpt')] -wpt-update: wpt-build - WPT_FLAGS="--update-expectations" ctest --test-dir {{ builddir }} -R wpt --verbose +wpt-update filter="": wpt-build + WPT_FLAGS="--update-expectations" WPT_FILTER={{ filter }} ctest --test-dir {{ builddir }} -R wpt --verbose # Run wpt server [group('wpt')] diff --git a/tests/wpt-harness/expectations/compression/compression-large-flush-output.any.js.json b/tests/wpt-harness/expectations/compression/compression-large-flush-output.any.js.json index 32813d9d..8a19d371 100644 --- a/tests/wpt-harness/expectations/compression/compression-large-flush-output.any.js.json +++ b/tests/wpt-harness/expectations/compression/compression-large-flush-output.any.js.json @@ -1,11 +1,11 @@ { "deflate compression with large flush output": { - "status": "FAIL" + "status": "PASS" }, "gzip compression with large flush output": { - "status": "FAIL" + "status": "PASS" }, "deflate-raw compression with large flush output": { - "status": "FAIL" + "status": "PASS" } } \ No newline at end of file diff --git a/tests/wpt-harness/expectations/compression/compression-with-detach.tentative.window.js.json b/tests/wpt-harness/expectations/compression/compression-with-detach.tentative.window.js.json index 602b2f85..bc5edcde 100644 --- a/tests/wpt-harness/expectations/compression/compression-with-detach.tentative.window.js.json +++ b/tests/wpt-harness/expectations/compression/compression-with-detach.tentative.window.js.json @@ -1,5 +1,5 @@ { "data should be correctly compressed even if input is detached partway": { - "status": "FAIL" + "status": "PASS" } } \ No newline at end of file diff --git a/tests/wpt-harness/expectations/compression/decompression-with-detach.tentative.window.js.json b/tests/wpt-harness/expectations/compression/decompression-with-detach.tentative.window.js.json index 56e75f4d..5fb147e3 100644 --- a/tests/wpt-harness/expectations/compression/decompression-with-detach.tentative.window.js.json +++ b/tests/wpt-harness/expectations/compression/decompression-with-detach.tentative.window.js.json @@ -1,5 +1,5 @@ { "data should be correctly decompressed even if input is detached partway": { - "status": "FAIL" + "status": "PASS" } } \ No newline at end of file diff --git a/tests/wpt-harness/post-harness.js b/tests/wpt-harness/post-harness.js index be9d6175..591f5725 100644 --- a/tests/wpt-harness/post-harness.js +++ b/tests/wpt-harness/post-harness.js @@ -13,8 +13,8 @@ async function handleRequest(event) { let url = new URL(event.request.url); console.log(`running test ${url.pathname}`); let input = `http://web-platform.test:8000${url.pathname}${url.search}`; - globalThis.baseURL = new URL(input); - globalThis.location = baseURL; + globalThis.wpt_baseURL = new URL(input); + globalThis.location = wpt_baseURL; try { let response = await fetch(input); if (!response.ok) { @@ -52,32 +52,13 @@ async function handleRequest(event) { function evalAllScripts(wpt_test_scripts) { for (let wpt_test_script of wpt_test_scripts) { - eval(wpt_test_script); + evalScript(wpt_test_script); } } async function loadMetaScript(path) { let response = await fetch(path); let metaSource = await response.text(); - // Somewhat annoyingly, the WPT harness includes META scripts as