Index: third_party/WebKit/LayoutTests/plugins/mouse-events.html |
diff --git a/third_party/WebKit/LayoutTests/plugins/mouse-events.html b/third_party/WebKit/LayoutTests/plugins/mouse-events.html |
index 60053fa4f011b434868e699111427b866b22fe05..214d750aecccfdf7f2c2991218cdee5a28597ec9 100644 |
--- a/third_party/WebKit/LayoutTests/plugins/mouse-events.html |
+++ b/third_party/WebKit/LayoutTests/plugins/mouse-events.html |
@@ -1,18 +1,17 @@ |
<html> |
<body> |
-<embed name="plg" type="application/x-webkit-test-netscape" windowedPlugin="false" width=100 height=100></embed> |
+<embed type="application/x-blink-test-plugin" width=100 height=100></embed> |
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=11517">bug 11517</a>: |
Flash clicks/interactivity not working properly.</p> |
<script> |
- |
- plg.windowedPlugin = false; |
- plg.eventLoggingEnabled = true; |
- |
+(function () { |
if (!window.testRunner) { |
document.write("This test does not work in manual mode."); |
- } else { |
- testRunner.dumpAsText(); |
- |
+ return; |
+ } |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+ document.querySelector('embed').addEventListener('message', function () { |
eventSender.mouseMoveTo(0,0); |
eventSender.mouseMoveTo(20,20); |
eventSender.mouseDown(); |
@@ -22,10 +21,10 @@ Flash clicks/interactivity not working properly.</p> |
eventSender.mouseMoveTo(40,30); |
eventSender.mouseUp(); |
eventSender.mouseMoveTo(0,0); |
- } |
- |
- plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed into the next test |
+ testRunner.notifyDone(); |
+ }); |
+})(); |
</script> |
</body> |
</html> |