From 0552eaf569ef910b0d132b6e60758f17a4519d91 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 19 Apr 2021 01:00:13 +0200 Subject: chore: align `Headers` to spec (#10199) This commit aligns `Headers` to spec. It also removes the now unused 03_dom_iterable.js file. We now pass all relevant `Headers` WPT. We do not implement any sort of header filtering, as we are a server side runtime. This is likely not the most efficient implementation of `Headers` yet. It is however spec compliant. Once all the APIs in the `HTTP` hot loop are correct we can start optimizing them. It is likely that this commit reduces bench throughput temporarily. --- tools/wpt/expectation.json | 9 +++++++++ tools/wpt/runner.ts | 3 +++ 2 files changed, 12 insertions(+) (limited to 'tools') diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 98fc105d5..5291b95f2 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -684,6 +684,15 @@ "Check isReloadNavigation attribute", "Check isHistoryNavigation attribute" ] + }, + "headers": { + "headers-basic.any.js": true, + "headers-casing.any.js": true, + "headers-combine.any.js": true, + "headers-errors.any.js": true, + "headers-normalize.any.js": true, + "headers-record.any.js": true, + "headers-structure.any.js": true } }, "data-urls": { diff --git a/tools/wpt/runner.ts b/tools/wpt/runner.ts index 28b2db0ee..4949c6269 100644 --- a/tools/wpt/runner.ts +++ b/tools/wpt/runner.ts @@ -25,6 +25,9 @@ export async function runWithTestUtil( } const passedTime = performance.now() - start; if (passedTime > 15000) { + proc.kill(2); + await proc.status(); + proc.close(); throw new Error("Timed out while trying to start wpt test util."); } } -- cgit v1.2.3