[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / popup-blocked-from-window-open.html
1 <html>
2 <head>
3 <script>
4 if (window.layoutTestController) {
5   layoutTestController.dumpAsText();
6   layoutTestController.setCanOpenWindows();
7   layoutTestController.setPopupBlockingEnabled(true);
8   layoutTestController.setCloseRemainingWindowsWhenComplete(true);
9   layoutTestController.waitUntilDone();
10     // Record current window count.
11     window.windowCount = window.layoutTestController.windowCount();
12 }
13
14 function test() {
15     if (window.layoutTestController && window.layoutTestController.windowCount() == window.windowCount)
16         document.getElementById("console").innerText = "PASSED";
17     // Close the test.
18     layoutTestController.notifyDone();
19 }
20 </script>
21 </head>
22 <body onload="test()">
23 <script>
24 window.open("javascript:window.open('about:blank', '_blank', 'height=600,width=720')");
25 </script>
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>
29 </body>
30 </html>