Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: third_party/WebKit/LayoutTests/plugins/mouse-events.html

Issue 1480303002: Implement a basic PPAPI plugin for Blink layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trim comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698