2 <body style=
"margin:0">
4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
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>
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>
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);
31 document
.getElementById('console').innerHTML
32 = "Scroll offset is " + document
.getElementById('overflow').scrollTop
;
33 window
.testRunner
.notifyDone();