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