Reviewed by Maciej.
[WebKit-https.git] / LayoutTests / plugins / mouse-events.html
1 <html>
2 <body>
3 <embed name="plg" type="application/x-webkit-test-netscape" width=100 height=100></embed>
4 <p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=11517">bug 11517</a>:
5 Flash clicks/interactivity not working properly.</p>
6 <script>
7
8     plg.eventLoggingEnabled = true;
9
10     if (!window.layoutTestController) {
11         document.write("This test does not work in manual mode.");
12         return;
13     }
14
15     layoutTestController.dumpAsText();
16     
17     eventSender.mouseMoveTo(0,0);
18     eventSender.mouseMoveTo(20,20);
19     eventSender.mouseDown();
20     eventSender.mouseUp();
21     eventSender.mouseMoveTo(30,30);
22     eventSender.mouseDown();
23     eventSender.mouseMoveTo(40,30);
24     eventSender.mouseUp();
25     eventSender.mouseMoveTo(0,0);
26
27 </script>
28 </body>
29 </html>