Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / popup-blocked-from-fake-focus.html
blob5480407d603d54abbe2f28de53db464708318e81
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <textarea id="test" width="100" onfocus="popup()" onblur="popup()"></textarea>
7 <div id="console"></div>
9 <script>
10 var win;
11 function popup() {
12 win = window.open("about:blank", "blank");
13 shouldBeUndefined("win");
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.setCanOpenWindows();
19 testRunner.setPopupBlockingEnabled(true);
20 testRunner.setCloseRemainingWindowsWhenComplete(true);
21 testRunner.waitUntilDone();
24 document.getElementById("test").focus();
25 document.getElementById("test").blur();
27 if (window.testRunner)
28 testRunner.notifyDone();
29 </script>
30 </body>
31 </html>