aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputTestsBase.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-01-31 08:14:02 +0900
committerJean Chalard <jchalard@google.com>2013-01-31 09:04:55 +0900
commit01a4ebcd88f8a7001aac2f7f45293ceab717a30d (patch)
tree8196033b219bbdbdfc1100e6a9c33ef7631d0a51 /tests/src/com/android/inputmethod/latin/InputTestsBase.java
parent3d0477fbd2b9b79fe3e8fdc9de2a8776fe76be78 (diff)
downloadlatinime-01a4ebcd88f8a7001aac2f7f45293ceab717a30d.tar.gz
latinime-01a4ebcd88f8a7001aac2f7f45293ceab717a30d.tar.xz
latinime-01a4ebcd88f8a7001aac2f7f45293ceab717a30d.zip
Add a way to know externally if we're installing a new dict
That helps tests know when to wait and when to declare the dictionary actually not usable. Bug: 7925814 Change-Id: Ic963c1206c43e3cde39ac4214a0d601f4fc6c03b
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index a01fef2e2..10d415ba8 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -231,8 +231,8 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
}
protected void waitForDictionaryToBeLoaded() {
- int remainingAttempts = 10;
- while (remainingAttempts > 0 && !mLatinIME.mSuggest.hasMainDictionary()) {
+ int remainingAttempts = 300;
+ while (remainingAttempts > 0 && mLatinIME.mSuggest.isCurrentlyWaitingForMainDictionary()) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {