aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-09-08 22:56:23 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-08 22:56:23 -0700
commite4d8dd65a619f5e1e4076c854e032469fb8b090c (patch)
tree84c2e1e555b4d898528a8ef588a3cffc98362e9b /tests/src
parenta14332f537be29ceb651e804c835c1a12424e424 (diff)
parentcc2751ba03fad6af5da0a7b5d421963e040d690f (diff)
downloadlatinime-e4d8dd65a619f5e1e4076c854e032469fb8b090c.tar.gz
latinime-e4d8dd65a619f5e1e4076c854e032469fb8b090c.tar.xz
latinime-e4d8dd65a619f5e1e4076c854e032469fb8b090c.zip
am cc2751ba: Make commitCurrentAutoCorrection asynchronous.
* commit 'cc2751ba03fad6af5da0a7b5d421963e040d690f': Make commitCurrentAutoCorrection asynchronous.
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index 0a1c4e963..da1fb6f0d 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -44,10 +44,12 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
private static final String PREF_DEBUG_MODE = "debug_mode";
- // The message that sets the underline is posted with a 100 ms delay
+ // The message that sets the underline is posted with a 200 ms delay
protected static final int DELAY_TO_WAIT_FOR_UNDERLINE = 200;
- // The message that sets predictions is posted with a 100 ms delay
+ // The message that sets predictions is posted with a 200 ms delay
protected static final int DELAY_TO_WAIT_FOR_PREDICTIONS = 200;
+ // The message that sets auto-corrections is posted within a 100 ms delay.
+ protected static final int DELAY_TO_WAIT_FOR_AUTOCORRECTION = 100;
protected LatinIME mLatinIME;
protected Keyboard mKeyboard;
@@ -221,6 +223,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
protected void type(final String stringToType) {
for (int i = 0; i < stringToType.length(); i = stringToType.offsetByCodePoints(i, 1)) {
type(stringToType.codePointAt(i));
+ sleep(DELAY_TO_WAIT_FOR_AUTOCORRECTION);
}
}