[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / scrollbars / scrollbar-click-does-not-blur-content.html
1 <html>
2   <head>
3     <script>
4       if (window.layoutTestController) {
5         layoutTestController.dumpAsText();
6         layoutTestController.waitUntilDone();
7       }
8
9       function runTest()
10       {
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();
17         }
18       }
19
20       function finished()
21       {
22         if (document.activeElement.getAttribute("id") == "textField")
23             document.getElementById('console').innerHTML = "PASS";
24         else
25             document.getElementById('console').innerHTML = "FAIL";
26
27         if (window.layoutTestController)
28           window.layoutTestController.notifyDone();
29       }
30
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>