summaryrefslogtreecommitdiff
path: root/tests/wpt/runner
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/runner')
-rw-r--r--tests/wpt/runner/expectation.json6
-rw-r--r--tests/wpt/runner/runner.ts3
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/wpt/runner/expectation.json b/tests/wpt/runner/expectation.json
index 2baf043d5..6dfcccf16 100644
--- a/tests/wpt/runner/expectation.json
+++ b/tests/wpt/runner/expectation.json
@@ -10323,9 +10323,9 @@
"import() should not drain the microtask queue if it fails during specifier resolution",
"import() should not drain the microtask queue when loading an already loaded module"
],
- "css-import-in-worker.any.worker.html": true,
- "with-import-assertions.any.html": true,
- "with-import-assertions.any.worker.html": true
+ "css-import-in-worker.any.worker.html": false,
+ "with-import-assertions.any.html": false,
+ "with-import-assertions.any.worker.html": false
}
},
"import-meta": {
diff --git a/tests/wpt/runner/runner.ts b/tests/wpt/runner/runner.ts
index b404f2ad8..6e654fd33 100644
--- a/tests/wpt/runner/runner.ts
+++ b/tests/wpt/runner/runner.ts
@@ -214,17 +214,20 @@ async function generateBundle(location: URL): Promise<string> {
join(ROOT_PATH, "./tests/wpt/runner/testharnessreport.js"),
);
const contents = await Deno.readTextFile(url);
+ scriptContents.push([url.href, "globalThis.window = globalThis;"]);
scriptContents.push([url.href, contents]);
} else if (src) {
const url = new URL(src, location);
const res = await fetch(url);
if (res.ok) {
const contents = await res.text();
+ scriptContents.push([url.href, "globalThis.window = globalThis;"]);
scriptContents.push([url.href, contents]);
}
} else {
const url = new URL(`#${inlineScriptCount}`, location);
inlineScriptCount++;
+ scriptContents.push([url.href, "globalThis.window = globalThis;"]);
scriptContents.push([url.href, script.textContent]);
}
}