4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.setCanOpenWindows();
7 testRunner
.setPopupBlockingEnabled(true);
8 testRunner
.setCloseRemainingWindowsWhenComplete(true);
9 testRunner
.waitUntilDone();
10 // Record current window count.
11 window
.windowCount
= window
.testRunner
.windowCount();
15 if (window
.testRunner
&& window
.testRunner
.windowCount() == window
.windowCount
)
16 document
.getElementById("console").innerText
= "PASSED";
18 testRunner
.notifyDone();
22 <body onload=
"test()">
24 window
.open("javascript:window.open('about:blank', '_blank', 'height=600,width=720')");
26 If the inner pop-up was not blocked then there will be one additional windows generated. Otherwise, the test passes.
<br>
27 For more details, please refer to https://bugs.webkit.org/show_bug.cgi?id=
37138.
28 <div id=
"console">FAILED
</div>