aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-18 20:50:05 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-18 20:50:05 -0800
commit15732a7280f10d0103619316f3db6a71156c91d1 (patch)
treee221f448c62723057528d8762a0727b681ee85a5 /tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java
parent08f9d25acc13bfea5a734aa98dcd91fa5c860a54 (diff)
parent553fd66270faec1e4a48b64a522074763c56024f (diff)
downloadlatinime-15732a7280f10d0103619316f3db6a71156c91d1.tar.gz
latinime-15732a7280f10d0103619316f3db6a71156c91d1.tar.xz
latinime-15732a7280f10d0103619316f3db6a71156c91d1.zip
am 553fd662: Merge "Add some info to test crashes to help diagnose flakiness"
* commit '553fd66270faec1e4a48b64a522074763c56024f': Add some info to test crashes to help diagnose flakiness
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java b/tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java
index 0f0ebafb9..89021b4e5 100644
--- a/tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java
+++ b/tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java
@@ -99,7 +99,8 @@ public class InputLogicTestsLanguageWithoutSpaces extends InputTestsBase {
assertEquals("predictions in lang without spaces", "Barack",
mEditText.getText().toString());
// Test the first prediction is displayed
+ final SuggestedWords suggestedWords = mLatinIME.getSuggestedWords();
assertEquals("predictions in lang without spaces", "Obama",
- mLatinIME.getFirstSuggestedWord());
+ suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null);
}
}