File tree Expand file tree Collapse file tree 3 files changed +8650
-8632
lines changed Expand file tree Collapse file tree 3 files changed +8650
-8632
lines changed Original file line number Diff line number Diff line change 1212 */
1313
1414export 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 } ) ;
You can’t perform that action at this time.
0 commit comments