Skip to content

Commit ad2dc2f

Browse files
committed
Output raw data
1 parent 0eff67e commit ad2dc2f

File tree

3 files changed

+8650
-8632
lines changed

3 files changed

+8650
-8632
lines changed

src/wpt.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
*/
1313

1414
export function initializeForWPT() {
15+
if (!window.opener) {
16+
// HACK: When we're running in WPT, we don't have an opener,
17+
// but we do have a parent. We should really do this hack
18+
// from tests/runner.html instead.
19+
window.opener = window;
20+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
21+
(window as any).testharness_properties = {
22+
output: true,
23+
timeout_multiplier: 2000,
24+
};
25+
}
26+
1527
window.addEventListener('error', e => {
1628
e.stopImmediatePropagation();
1729
});
@@ -23,9 +35,7 @@ export function initializeForWPT() {
2335
requestAnimationFrame(() => {
2436
requestAnimationFrame(() => {
2537
requestAnimationFrame(() => {
26-
requestAnimationFrame(() => {
27-
resolve();
28-
});
38+
resolve();
2939
});
3040
});
3141
});

0 commit comments

Comments
 (0)