Skip to content

Commit 4e1e0d0

Browse files
authoredMar 14, 2023
fix(wpt): set global META_TITLE for the runner (#2008)
1 parent 6ec8f4e commit 4e1e0d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎test/wpt/runner/worker.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ runInThisContext(`
9797
globalThis.Window = Object.getPrototypeOf(globalThis).constructor
9898
`)
9999

100+
if (meta.title) {
101+
runInThisContext(`globalThis.META_TITLE = "${meta.title}"`)
102+
}
103+
100104
const harness = readFileSync(join(basePath, '/resources/testharness.js'), 'utf-8')
101105
runInThisContext(harness)
102106

0 commit comments

Comments
 (0)
Please sign in to comment.