2009-09-29 Shinichiro Hamaji <hamaji@chromium.org>
[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="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.eventLoggingEnabled = true;
9
10     if (!window.layoutTestController) {
11         document.write("This test does not work in manual mode.");
12     } else {
13         layoutTestController.dumpAsText();
14         
15         eventSender.mouseMoveTo(0,0);
16         eventSender.mouseMoveTo(20,20);
17         eventSender.mouseDown();
18         eventSender.mouseUp();
19         eventSender.mouseMoveTo(30,30);
20         eventSender.mouseDown();
21         eventSender.mouseMoveTo(40,30);
22         eventSender.mouseUp();
23         eventSender.mouseMoveTo(0,0);
24     }
25
26     plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed into the next test
27
28 </script>
29 </body>
30 </html>