Layout Test fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html is flaky
[WebKit-https.git] / LayoutTests / scrollbars / scrollbar-miss-mousemove.html
1 <html>
2 <body style="margin:0">
3 <script>
4 if (window.testRunner) {
5     testRunner.dumpAsText();
6     testRunner.waitUntilDone();
7 }
8 </script>
9 <div id="overflow" style="border:2px solid black;overflow:auto;height:400px;width:400px; position:absolute;">
10 <div style="background-color:green;height:1000px"></div>
11 <div style="background-color:red;height:1000px"></div>
12 </div>
13 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=27289">bug
14 27289</a>: This tests that mouse clicks/releases on scrollbars are handled
15 properly even is there was no mouse move onto the scrollbar; this is the
16 enabled control case. On success, the offset should be 0.<p/>
17 <div id="console"></div>
18 <script>
19 if (window.eventSender) {
20     document.getElementById('overflow').style.display = "none";
21     eventSender.mouseMoveTo(390, 10);
22     document.getElementById('overflow').style.display = "";
23     eventSender.mouseDown();
24     eventSender.mouseUp();
25     eventSender.mouseMoveTo(390, 350);
26     setTimeout(finished, 500);
27 }
28
29 function finished()
30 {
31     document.getElementById('console').innerHTML
32         = "Scroll offset is " + document.getElementById('overflow').scrollTop;
33     window.testRunner.notifyDone();
34 }
35 </script>
36 </body>
37 </html>