macCatalyst: Cursor should send mouse events, not touch events
[WebKit-https.git] / LayoutTests / fast / events / popup-blocked-from-fake-focus.html
1 <html>
2     <head>
3         <script src="../../resources/js-test-pre.js"></script>
4     </head>
5     <body>
6         <textarea id="test" width="100" onfocus="popup()" onblur="popup()"></textarea>
7         <div id="console"></div>
8
9         <script>
10             var win;
11             function popup() {
12                 win = window.open("about:blank", "blank");
13                 shouldBeNull("win");
14             }
15
16             if (window.testRunner) {
17                 testRunner.dumpAsText();
18                 testRunner.setCanOpenWindows();
19                 testRunner.setPopupBlockingEnabled(true);
20                 testRunner.setCloseRemainingWindowsWhenComplete(true);
21                 testRunner.waitUntilDone();
22             }
23
24             document.getElementById("test").focus();
25             document.getElementById("test").blur();
26
27             if (window.testRunner)
28                 testRunner.notifyDone();
29         </script>
30     </body>
31 </html>