3 if (window
.testRunner
) {
4 testRunner
.setCanOpenWindows();
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
10 var e
= document
.getElementById('console');
11 e
.innerHTML
= w
.opener
== null ? 'PASS' : 'FAIL';
15 if (window
.testRunner
)
16 testRunner
.notifyDone();
19 var w
= window
.open('http://127.0.0.1:8000/misc/resources/content-iframe.html');
24 This tests that following code works in Chrome:
26 var w = window.open(...);
29 After new page finishes loading, its opener should stay as null.
32 <div id=
"console">Running ...
<div>