diff options
author | 2014-02-20 05:29:26 -0800 | |
---|---|---|
committer | 2014-02-20 05:29:26 -0800 | |
commit | 52b067e5d4ac5c26ad497e96f6e385426e1318f1 (patch) | |
tree | b951dc096fd663c66b45b1a58f08be845e432c39 /tests/src/com/android/inputmethod/latin/InputTestsBase.java | |
parent | 4ebf5619328bfd9ca11d0624f9d4f1d7d5a1e7ff (diff) | |
parent | e03e4257f1dc727db383bd56097eb60eeae7ceb8 (diff) | |
download | latinime-52b067e5d4ac5c26ad497e96f6e385426e1318f1.tar.gz latinime-52b067e5d4ac5c26ad497e96f6e385426e1318f1.tar.xz latinime-52b067e5d4ac5c26ad497e96f6e385426e1318f1.zip |
am e03e4257: Merge "Add test only methods to test personalized dicts."
* commit 'e03e4257f1dc727db383bd56097eb60eeae7ceb8':
Add test only methods to test personalized dicts.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputTestsBase.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index 4b157e700..690c559e8 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -275,9 +275,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { } } - protected void waitForDictionaryToBeLoaded() { + protected void waitForDictionariesToBeLoaded() { try { - mLatinIME.waitForMainDictionary( + mLatinIME.waitForLoadingDictionaries( TIMEOUT_TO_WAIT_FOR_LOADING_MAIN_DICTIONARY_IN_SECONDS, TimeUnit.SECONDS); } catch (InterruptedException e) { Log.e(TAG, "Interrupted during waiting for loading main dictionary.", e); @@ -286,7 +286,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { protected void changeLanguage(final String locale) { changeLanguageWithoutWait(locale); - waitForDictionaryToBeLoaded(); + waitForDictionariesToBeLoaded(); } protected void changeLanguageWithoutWait(final String locale) { @@ -314,6 +314,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { mLatinIME.loadKeyboard(); runMessages(); mKeyboard = mLatinIME.mKeyboardSwitcher.getKeyboard(); + mLatinIME.clearPersonalizedDictionariesForTest(); } protected void changeKeyboardLocaleAndDictLocale(final String keyboardLocale, @@ -322,7 +323,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { if (!keyboardLocale.equals(dictLocale)) { mLatinIME.replaceDictionariesForTest(LocaleUtils.constructLocaleFromString(dictLocale)); } - waitForDictionaryToBeLoaded(); + waitForDictionariesToBeLoaded(); } protected void pickSuggestionManually(final int index, final String suggestion) { |