[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / popup-blocked-from-fake-button-click.html
1 <html> 
2     <head>
3         <script src="../js/resources/js-test-pre.js"></script>
4     </head>
5     <body>
6         <button id="test" onclick="popup()" style="display:none"></button>
7         <div id="console"></div>
8         <script> 
9             var win;
10             function popup() {
11                 win = window.open("about:blank", "blank");
12                 shouldBeUndefined("win");
13             }
14
15             if (window.layoutTestController) {
16                 layoutTestController.dumpAsText();
17                 layoutTestController.setCanOpenWindows();
18                 layoutTestController.setPopupBlockingEnabled(true);
19                 layoutTestController.setCloseRemainingWindowsWhenComplete(true);
20                 layoutTestController.waitUntilDone();
21             }
22
23             document.getElementById("test").click();
24
25             if (window.layoutTestController)
26                 layoutTestController.notifyDone();
27         </script> 
28     </body> 
29 </html>