2 <body onpaste="pasteCount++;">
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.waitUntilDone();
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>
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);
28 if (pasteCount == 0) {
29 document.getElementById('console').innerHTML = "PASS";
31 document.getElementById('console').innerHTML = "FAIL";
33 if (window.layoutTestController) {
34 window.layoutTestController.notifyDone();