Source/WebCore: WebCore changes for: REGRESSION (WebKit2): Cursor, hover states not...
[WebKit-https.git] / LayoutTests / fast / events / frame-scroll-fake-mouse-move.html
1 <body style="height: 200%">
2 <div onmouseover="mouseOver(event)" style="margin: 300px 0; width: 100px; height: 100px; background-color: blue;"></div>
3 <div id="result">Test did not run</div>
4 <script>
5     var passed = false;
6
7     function mouseOver(event)
8     {
9         passed = true;
10     }
11
12     function finish()
13     {
14         document.getElementById("result").innerText = passed ? "PASS" : "FAIL";
15         layoutTestController.notifyDone();
16     }
17
18     if (window.layoutTestController) {
19         layoutTestController.dumpAsText();
20         layoutTestController.waitUntilDone();
21
22         // WebKit schedules a fake mouse move event as part of installing the WebView in
23         // a window. For the test to be valid, it must begin only after that event
24         // gets dispatched.
25         setTimeout(function()
26         {
27             eventSender.mouseMoveTo(50, 100);
28             document.body.scrollTop = 250;
29             setTimeout(finish, 200);
30         }, 200);
31     }
32 </script>