Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / popup-blocked-from-fake-event.html
blob6a4de53abd6b4e8989533e33550ac9f8295f41a4
1 <html>
2 <body>
3 <a id="test" onclick="go()">Go?</a>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setCloseRemainingWindowsWhenComplete(true);
10 oClickEvent = document.createEvent("MouseEvents");
11 oClickEvent.initEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
12 document.getElementById("test").dispatchEvent(oClickEvent);
14 function go() {
15 oWin = window.open("about:blank", "blabla");
16 alert(oWin ? "FAIL" : "PASS");
18 </script>
19 </body>
20 </html>