2 <body style=
"margin:0">
4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
10 <textarea name=
"text1" style=
"border:2px solid black;overflow:auto;height:400px;width:400px; position:absolute;">
113 <p>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=27289">bug
114 27289</a>: This tests that mouse clicks/releases on scrollbars are handled
115 properly even is there was no mouse move onto the scrollbar; this is the
116 disabled control case. On success, the text should begin with
"zx".
<p/>
117 <div id=
"console"></div>
119 if (window
.eventSender
) {
120 document
.form1
.text1
.disabled
= true;
121 document
.form1
.style
.display
= "none";
122 eventSender
.mouseMoveTo(390, 10);
123 document
.form1
.style
.display
= "";
124 eventSender
.mouseDown();
125 eventSender
.mouseUp();
126 eventSender
.mouseMoveTo(390, 350);
127 eventSender
.mouseMoveTo(4,350);
128 eventSender
.mouseDown();
129 eventSender
.mouseUp();
130 eventSender
.mouseMoveTo(4,4);
131 document
.form1
.text1
.disabled
= false;
132 eventSender
.mouseDown();
133 eventSender
.mouseUp();
134 eventSender
.keyDown('z');
135 setTimeout(finished
, 500);
140 document
.getElementById('console').innerHTML
141 = "Text is \"" + document
.form1
.text1
.value
+ "\"";
142 window
.testRunner
.notifyDone();