aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-10 12:47:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-10 12:47:41 +0000
commit7294cc5bfe653fde80b257bd39e3ff7eb11e102d (patch)
tree634374dd15252853f0195431056d853a20f878d3
parent5717c63a2b3876716986b24c86cc6c564c38e720 (diff)
parent7b6e999cd174f63501ccabdade5489d61107b341 (diff)
downloadlatinime-7294cc5bfe653fde80b257bd39e3ff7eb11e102d.tar.gz
latinime-7294cc5bfe653fde80b257bd39e3ff7eb11e102d.tar.xz
latinime-7294cc5bfe653fde80b257bd39e3ff7eb11e102d.zip
Merge "Fix a test."
-rw-r--r--tests/src/com/android/inputmethod/latin/InputLogicTests.java2
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
index 1a249ce45..2c23d743f 100644
--- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java
+++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
@@ -381,7 +381,7 @@ public class InputLogicTests extends InputTestsBase {
type(WORD_TO_TYPE);
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);
runMessages();
- // Test the first prediction is displayed
+ // Test the first prediction is not displayed
final SuggestedWords suggestedWords = mLatinIME.getSuggestedWords();
assertEquals("no prediction after period", 0, suggestedWords.size());
}
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index 84e8a862c..b267bc5da 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -201,6 +201,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
mLatinIME.onStartInputView(ei, false);
mInputConnection = ic;
changeLanguage("en_US");
+ // Run messages to avoid the messages enqueued by startInputView() and its friends
+ // to run on a later call and ruin things.
+ runMessages();
}
@Override