4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
11 document
.getElementById("textField").focus();
12 if (window
.eventSender
) {
13 eventSender
.mouseMoveTo(document
.body
.clientWidth
+ 8, 40);
14 eventSender
.mouseDown();
15 eventSender
.mouseUp();
22 if (document
.activeElement
.getAttribute("id") == "textField")
23 document
.getElementById('console').innerHTML
= "PASS";
25 document
.getElementById('console').innerHTML
= "FAIL";
27 if (window
.testRunner
)
28 window
.testRunner
.notifyDone();
31 window
.onload
= runTest
;
35 <div id=
"console" style=
"width:200%;height:200%;">
36 <input id=
"textField" type=
"text"><br><br>
37 <div style=
"border:2px solid black;width:25%;" onclick=
"finished();"> This test checks that right clicking the scroll bars doesn't trigger a blur event in content (See
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=16809">Bug
16809</a>). If the test passes, the output will be a single line that says PASS. To run the tests manually, click each of the scroll bars, and focus shoulds remain in the input field above
</div>