2011-06-01 Noel Gordon <noel.gordon@gmail.com>
[WebKit-https.git] / LayoutTests / plugins / mouse-events.html
1 <html>
2 <body>
3 <embed name="plg" type="application/x-webkit-test-netscape" windowedPlugin="false" width=100 height=100></embed>
4 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=11517">bug 11517</a>:
5 Flash clicks/interactivity not working properly.</p>
6 <script>
7
8     plg.windowedPlugin = false;
9     plg.eventLoggingEnabled = true;
10
11     if (!window.layoutTestController) {
12         document.write("This test does not work in manual mode.");
13     } else {
14         layoutTestController.dumpAsText();
15         
16         eventSender.mouseMoveTo(0,0);
17         eventSender.mouseMoveTo(20,20);
18         eventSender.mouseDown();
19         eventSender.mouseUp();
20         eventSender.mouseMoveTo(30,30);
21         eventSender.mouseDown();
22         eventSender.mouseMoveTo(40,30);
23         eventSender.mouseUp();
24         eventSender.mouseMoveTo(0,0);
25     }
26
27     plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed into the next test
28
29 </script>
30 </body>
31 </html>