diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-19 01:00:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 01:00:13 +0200 |
commit | 0552eaf569ef910b0d132b6e60758f17a4519d91 (patch) | |
tree | 6fe6ff3755487475bcef60f3ddb7c8d42432494b /tools | |
parent | 0c5ecec8f60d4f1586e56b4e6e36ca973c555830 (diff) |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wpt/expectation.json | 9 | ||||
-rw-r--r-- | tools/wpt/runner.ts | 3 |
2 files changed, 12 insertions, 0 deletions
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<T>( } 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."); } } |