1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <!-- This tests that the scrollbar thumb is deselected on a fling start -->
7 <style type=
"text/css">
9 background-color: #ccc;
14 ::-webkit-scrollbar-button
{
18 ::-webkit-scrollbar-thumb
{
19 background-color: #777;
24 ::-webkit-scrollbar-thumb:active
{
25 background-color: #333;
40 <body onload=
"runTest();">
45 <div id=
"console"></div>
47 <script type=
"text/javascript">
50 function scrollTest() {
52 movingDiv
= document
.getElementById('scrollable');
53 var scrollbarX
= movingDiv
.offsetLeft
+ movingDiv
.offsetWidth
- 5;
54 var scrollThumbSafeOffset
= 80;
55 var scrollbarY
= movingDiv
.offsetTop
+ scrollThumbSafeOffset
;
57 // Ensure we use a touch with an area to test under touch adjustment
61 eventSender
.gestureTapDown(scrollbarX
, scrollbarY
, touchWidth
, touchHeight
);
62 eventSender
.gestureFlingStart(0, 0, 0, 0, "touchscreen");
65 function exitIfNecessary()
67 debug('Gesture events not implemented on this platform or broken');
68 isSuccessfullyParsed();
73 internals
.settings
.setMockScrollbarsEnabled(true);
75 if (window
.eventSender
) {
76 if (eventSender
.clearTouchPoints
)
81 debug("This test requires DumpRenderTree.");