diff options
author | 2013-12-18 16:53:54 +0900 | |
---|---|---|
committer | 2013-12-18 18:10:56 +0900 | |
commit | dfbe2bfe089b301819039e9b3a7d2c307e6beac7 (patch) | |
tree | c77a5334a0a072c0b81bc1e9fc080bdd350c77b6 /tests/src/com/android/inputmethod/latin/InputLogicTestsLanguageWithoutSpaces.java | |
parent | d5f5dd74c2e0946d4686a4f22cda1591b34b6729 (diff) | |
download | latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.tar.gz latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.tar.xz latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.zip |
Add some info to test crashes to help diagnose flakiness
Bug: 11142685
Change-Id: Ic3a5d452f6c325248ac4e1bfa37774c58586f359
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); } } |