Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / scrollbars / scrollbar-click-does-not-blur-content.html
blob67ddf5f210f0d5b9d570d824ce6fc2a9e5ab5ff1
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function runTest()
11 document.getElementById("textField").focus();
12 if (window.eventSender) {
13 eventSender.mouseMoveTo(document.body.clientWidth + 8, 40);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
16 finished();
20 function finished()
22 if (document.activeElement.getAttribute("id") == "textField")
23 document.getElementById('console').innerHTML = "PASS";
24 else
25 document.getElementById('console').innerHTML = "FAIL";
27 if (window.testRunner)
28 window.testRunner.notifyDone();
31 window.onload = runTest;
32 </script>
33 </head>
34 <body>
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>
38 </div>
39 </body>
40 </html>