Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[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.testRunner)
16         return;
17     testRunner.dumpAsText();
18     eventSender.mouseMoveTo(150, 100);
19     eventSender.mouseDown();
20     eventSender.mouseMoveTo(50, 100);
21     eventSender.mouseUp();
22     alert("Test result: " + result);
23 }
24 </script>
25 <p>
26     This is a test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=5923">http://bugzilla.opendarwin.org/show_bug.cgi?id=5923</a>
27     REGRESSION: scrolling on Google maps continues after the mouse is released outside the window</i>.
28 </p>
29 <p>
30     (Cannot run interactively)
31 </p>
32 </body>