Fix by Mitz Pettel, reviewed by Maciej.
[WebKit-https.git] / LayoutTests / fast / events / resources / drag-outside-window-frame.html
1 <body onload="test()">
2 <script type="text/javascript">
3 document.addEventListener("mousemove", mousemoved);
4
5 var result = "FAIL";
6
7 function mousemoved(event)
8 {
9     if (event.clientX < -1)
10         result = "PASS";
11 }
12
13 function test()
14 {
15     if (!window.layoutTestController)
16         return;
17     layoutTestController.dumpAsText();
18     eventSender.mouseMoveTo(150, 100);
19     eventSender.mouseDown();
20     eventSender.mouseMoveTo(50, 100);
21     alert("Test result: " + result);
22 }
23 </script>
24 <p>
25     This is a test for <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=5923">http://bugzilla.opendarwin.org/show_bug.cgi?id=5923</a>
26     REGRESSION: scrolling on Google maps continues after the mouse is released outside the window</i>.
27 </p>
28 <p>
29     (Cannot run interactively)
30 </p>
31 </body>