From 5597f7bb181dbe3a83a167bba9f3dccd6295f39d Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 14 Mar 2023 15:16:32 +0100 Subject: [PATCH] fix(wpt): set global META_TITLE for the runner --- test/wpt/runner/worker.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/wpt/runner/worker.mjs b/test/wpt/runner/worker.mjs index 918d44659fc..0b323b4c972 100644 --- a/test/wpt/runner/worker.mjs +++ b/test/wpt/runner/worker.mjs @@ -97,6 +97,10 @@ runInThisContext(` globalThis.Window = Object.getPrototypeOf(globalThis).constructor `) +if (meta.title) { + runInThisContext(`globalThis.META_TITLE = "${meta.title}"`) +} + const harness = readFileSync(join(basePath, '/resources/testharness.js'), 'utf-8') runInThisContext(harness)