diff options
author | 2013-10-08 14:00:57 +0900 | |
---|---|---|
committer | 2013-10-08 14:00:57 +0900 | |
commit | 72bc9ad37ed3d89ccea253542b867221a1d9a129 (patch) | |
tree | 02516eaf0991e5135088c4ad460067c5d58b8cd4 /tests/src/com/android/inputmethod/latin/InputTestsBase.java | |
parent | 3e5f4b53b0b51288afdd921052974c6740a5aa6b (diff) | |
download | latinime-72bc9ad37ed3d89ccea253542b867221a1d9a129.tar.gz latinime-72bc9ad37ed3d89ccea253542b867221a1d9a129.tar.xz latinime-72bc9ad37ed3d89ccea253542b867221a1d9a129.zip |
Add Ime language switching test.
Change-Id: I6a96dc5fdd533899353d537382608c2759faff1c
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputTestsBase.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index 234bb1b31..b9b52a6f3 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -238,12 +238,16 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> { } protected void changeLanguage(final String locale) { + changeLanguageWithoutWait(locale); + waitForDictionaryToBeLoaded(); + } + + protected void changeLanguageWithoutWait(final String locale) { mEditText.mCurrentLocale = LocaleUtils.constructLocaleFromString(locale); SubtypeSwitcher.getInstance().forceLocale(mEditText.mCurrentLocale); mLatinIME.loadKeyboard(); runMessages(); mKeyboard = mLatinIME.mKeyboardSwitcher.getKeyboard(); - waitForDictionaryToBeLoaded(); } protected void changeKeyboardLocaleAndDictLocale(final String keyboardLocale, |