aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-24 00:25:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-24 00:25:34 +0000
commitc4f71f6be88ffd610293ebe420733351ca016a83 (patch)
tree2896104252901d532e26428deffe7c55e590b049 /tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java
parent67c06fc2b85efe221a949ef0fbffa1280efc55ba (diff)
parent4262ef4e11ae2c5dc0a8db980d4996c04731bc2b (diff)
downloadlatinime-c4f71f6be88ffd610293ebe420733351ca016a83.tar.gz
latinime-c4f71f6be88ffd610293ebe420733351ca016a83.tar.xz
latinime-c4f71f6be88ffd610293ebe420733351ca016a83.zip
Merge "We can't spell check Russian without an LM."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java b/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java
index 2272d6ba0..e7c48da19 100644
--- a/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java
+++ b/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java
@@ -53,14 +53,8 @@ public class AndroidSpellCheckerServiceTest extends InputTestsBase {
sleep(1000);
final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class);
- // If no span, the following will crash
- final String[] suggestions = span.getSuggestions();
- // For this test we consider "годп" should yield at least 2 suggestions (at this moment
- // it yields 5).
- assertTrue(suggestions.length >= 2);
- // We also assume the top suggestion should be "года", which is the top word in the
- // Russian dictionary.
- assertEquals("", "года", suggestions[0]);
+ // We don't ship with Russian LM
+ assertNull(span.getSpan());
}
public void testSpellcheckWithPeriods() {