Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mouseout-on-window.html
bloba6c504136ce594d8e88cbd1d01a91785818a8290
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);
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.testRunner)
18 testRunner.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);
25 </script>
26 </body>
27 </html>