diff options
author | 2013-12-19 04:48:36 +0000 | |
---|---|---|
committer | 2013-12-19 04:48:36 +0000 | |
commit | 553fd66270faec1e4a48b64a522074763c56024f (patch) | |
tree | e221f448c62723057528d8762a0727b681ee85a5 /tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java | |
parent | b68dd6cd0b58f0471c556a58f50c3cd6eab831c3 (diff) | |
parent | dfbe2bfe089b301819039e9b3a7d2c307e6beac7 (diff) | |
download | latinime-553fd66270faec1e4a48b64a522074763c56024f.tar.gz latinime-553fd66270faec1e4a48b64a522074763c56024f.tar.xz latinime-553fd66270faec1e4a48b64a522074763c56024f.zip |
Merge "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.java | 3 |
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); } } |