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

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

Issue 11348361: Add insertion handle tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years 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: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchUtils.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchUtils.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchUtils.java
index 254aa44d8122c57295e9caba6a98fbb6483841e2..48274a780c3010d082f05e9455d473ca23a25a41 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchUtils.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchUtils.java
@@ -83,6 +83,15 @@ public class TouchUtils extends android.test.TouchUtils {
}
/**
+ * Sleeps for at least the length of the double tap timeout.
+ *
+ * @param instrumentation Instrumentation object used by the test.
+ */
+ public static void sleepForDoubleTapTimeout(Instrumentation instrumentation) {
+ SystemClock.sleep((long)(ViewConfiguration.getDoubleTapTimeout() * 1.5));
+ }
+
+ /**
* Sends (synchronously) a long click to the View at the specified coordinates.
*
* @param instrumentation Instrumentation object used by the test.

Powered by Google App Engine
This is Rietveld 408576698