From af1546391c4a561eb26ccf9cd244b05aed9b5bfc Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 22 May 2021 18:08:24 +0200 Subject: feat(extensions): BroadcastChannel WPT conformance Replaces the file-backed provider by an in-memory one because proper file locking is a hard problem that detracts from the proof of concept. Teach the WPT runner how to extract tests from .html files because all the relevant tests in test_util/wpt/webmessaging/broadcastchannel are inside basics.html and interface.html. --- tools/wpt/expectation.json | 8 ++++++++ tools/wpt/runner.ts | 1 + 2 files changed, 9 insertions(+) (limited to 'tools') diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 4d6016104..b468cc69d 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1098,6 +1098,14 @@ "sessionStorage: defineProperty not configurable" ] }, + "webmessaging": { + "broadcastchannel": { + "basics.any.html": [ + "postMessage results in correct event" + ], + "interface.any.html": true + } + }, "xhr": { "formdata": { "append.any.html": true, diff --git a/tools/wpt/runner.ts b/tools/wpt/runner.ts index eae53094d..a0941b521 100644 --- a/tools/wpt/runner.ts +++ b/tools/wpt/runner.ts @@ -76,6 +76,7 @@ export async function runSingleTest( join(ROOT_PATH, `./target/${release ? "release" : "debug"}/deno`), "run", "-A", + "--unstable", "--location", url.toString(), "--cert", -- cgit v1.2.3