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

Unified Diff: LayoutTests/platform/chromium/plugins/user-gesture.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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: LayoutTests/platform/chromium/plugins/user-gesture.html
diff --git a/LayoutTests/platform/chromium/plugins/user-gesture.html b/LayoutTests/platform/chromium/plugins/user-gesture.html
deleted file mode 100644
index 3b6b935d27426465128ddc1cfa771cccc05c0833..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/plugins/user-gesture.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<embed id="plugin" type="application/x-webkit-test-webplugin" accepts-touch="raw" print-user-gesture-status="true" width="100" height="100"></embed>
-<p>
- Test that the user gesture indicator is correctly set for events forwarded
- through the WebPluginContainer. The tests succeeds if the first
- mousedown/mouseup event pair is a user gesture, and the second is not.
-</p>
-<script>
- if (!window.testRunner || !window.eventSender) {
- document.write("This test does not work in manual mode.");
- } else {
- testRunner.dumpAsText();
-
- // Click on the plugin.
- eventSender.mouseMoveTo(20, 20);
- eventSender.mouseDown();
- eventSender.mouseUp();
-
- // Fake mouse events
- var plugin = document.getElementById("plugin");
- var evt = document.createEvent("MouseEvent");
- evt.initMouseEvent("mousedown", true, true, window, 1, 20, 20, 20, 20, false, false, false, false, 0, null);
- plugin.dispatchEvent(evt);
-
- evt = document.createEvent("MouseEvent");
- evt.initMouseEvent("mouseup", true, true, window, 1, 20, 20, 20, 20, false, false, false, false, 0, null);
- plugin.dispatchEvent(evt);
- }
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698