5 if (window
.testRunner
) {
6 testRunner
.setCanOpenWindows();
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
11 newWindow
= window
.open('resources/early-document-access-popup.html');
13 newWindow
.document
; // access the document
15 document
.body
.innerText
= 'FAIL: window.open failed to make a window.';
16 if (window
.testRunner
)
17 testRunner
.notifyDone();
22 if (window
.testRunner
)
23 if (testRunner
.windowCount() == 1)
24 testRunner
.notifyDone();
26 setTimeout("done()", 100);
30 document
.body
.innerText
= 'PASS';
36 document
.body
.innerText
= 'FAIL';
42 <body onload=
"test()">
43 FAIL: TEST DID NOT RUN!