<rdar://problem/5071781> window.mouseout events are not sent to window when mouse...
[WebKit-https.git] / LayoutTests / fast / events / mouseout-on-window.html
1 <html>
2 <head>
3 <script>
4 addEventListener("mouseout", function(event){ 
5     if (event.clientX < 0 && event.clientY < 0)
6         document.getElementById("target").innerHTML = "PASS: Received mouseout event.";
7 }, true);
8
9 </script>
10 </head>
11 <body>
12 This test ensures that mouse out events are sent to the window.<br />
13 <div id="target">
14 FAIL: No mouseout was sent.
15 </div>
16 <script>
17 if (window.layoutTestController)
18     layoutTestController.dumpAsText();
19 if (window.eventSender) {
20     // Initial move on windows is used to force the webview to 
21     // initialise the windows mouse event tracker. 
22     eventSender.mouseMoveTo(5, 5);
23     eventSender.mouseMoveTo(-5, -5);
24 }
25 </script>
26 </body>
27 </html>