From fa975a9baee4c7489ad743be72b97372b616453a Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sat, 30 Jan 2021 19:22:24 +0100 Subject: refactor: rewrite Blob implementation (#9309) Co-authored-by: Kitson Kelly --- tools/wpt/expectation.json | 13 +++++++++++++ tools/wpt/utils.ts | 11 ++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index b8a02d5a3..307021cd8 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1018,5 +1018,18 @@ ] } } + }, + "FileAPI": { + "blob": { + "Blob-array-buffer.any.js": true, + "Blob-stream.any.js": true, + "Blob-text.any.js": true, + "Blob-constructor.any.js": [ + "Blob interface object", + "Passing a FrozenArray as the blobParts array should work (FrozenArray)." + ], + "Blob-slice-overflow.any.js": true, + "Blob-slice.any.js": true + } } } \ No newline at end of file diff --git a/tools/wpt/utils.ts b/tools/wpt/utils.ts index 3efd252b4..9ef07dec3 100644 --- a/tools/wpt/utils.ts +++ b/tools/wpt/utils.ts @@ -7,6 +7,7 @@ export const { json, quiet, release, + rebuild, ["--"]: rest, ["auto-config"]: autoConfig, } = parse(Deno.args, { @@ -43,7 +44,15 @@ const MANIFEST_PATH = join(ROOT_PATH, "./tools/wpt/manifest.json"); export async function updateManifest() { const proc = runPy( - ["wpt", "manifest", "--tests-root", ".", "-p", MANIFEST_PATH], + [ + "wpt", + "manifest", + "--tests-root", + ".", + "-p", + MANIFEST_PATH, + ...(rebuild ? ["--rebuild"] : []), + ], {}, ); const status = await proc.status(); -- cgit v1.2.3