Skip to content

Commit

Permalink
fix(wpt): set global META_TITLE for the runner (#2008)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 14, 2023
1 parent 6ec8f4e commit 4e1e0d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/wpt/runner/worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4e1e0d0

Please sign in to comment.