[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / scrollbars / scrollbar-middleclick-nopaste.html
1 <html>
2 <body onpaste="pasteCount++;">
3 <script>
4 var pasteCount = 0;
5 if (window.layoutTestController) {
6     layoutTestController.dumpAsText();
7     layoutTestController.waitUntilDone();
8 }
9 </script>
10
11 <div id="console" style="width:200%;height:200%;">
12 <div style="border:2px solid black;width:25%;" onclick="finished();"> This test checks that middle clicking the scroll bars doesn't trigger a paste event (See <a href="https://bugs.webkit.org/show_bug.cgi?id=33062">Bug 33062</a>). If the test passes, the output will be a single line that says PASS. To run the tests manually, middle click each of the scroll bars, then click this paragraph.</div>
13 </div>
14
15 <script>
16 if (window.eventSender) {
17     eventSender.mouseMoveTo(window.innerWidth - 1, 1);
18     eventSender.mouseDown(1);
19     eventSender.mouseUp(1);
20     eventSender.mouseMoveTo(1, window.innerHeight - 1);
21     eventSender.mouseDown(1);
22     eventSender.mouseUp(1);
23     finished();
24 }
25
26 function finished()
27 {
28     if (pasteCount == 0) {
29         document.getElementById('console').innerHTML = "PASS";
30     } else {
31         document.getElementById('console').innerHTML = "FAIL";
32     }
33     if (window.layoutTestController) {
34         window.layoutTestController.notifyDone();
35     }
36 }
37 </script>
38 </body>
39 </html>