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. |