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)