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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java

Issue 13510002: Fix the flaky full screen video tests by providing our own clickView; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 9 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
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
index 70b046d10e5d02f7be219a9d9dfc0f4aa7162ee5..9e962d15c4441fbf0a93dd918590c6a5d8bb1aa5 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
@@ -118,6 +118,13 @@ public class TouchCommon {
}
/**
+ * Sends (synchronously) a single click to the center of the View.
+ */
+ public void singleClickView(View v) {
+ singleClickView(v, v.getWidth() / 2, v.getHeight() / 2);
+ }
+
+ /**
* Sends (synchronously) a single click on the specified relative coordinates inside
* a given view.
*
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698