aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-08-14 18:03:11 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-14 18:03:11 +0000
commite04c8b10d7876effbfdf2340a1fec6bf368c3409 (patch)
treea7e7002b213b07b5381e9cbd24bd99ee4113e010 /tests
parent1901c331283e2f60e6277a7773a103a447bd31ca (diff)
parentb8d764772b174cbd37354ffd0009bda56f223dc4 (diff)
downloadlatinime-e04c8b10d7876effbfdf2340a1fec6bf368c3409.tar.gz
latinime-e04c8b10d7876effbfdf2340a1fec6bf368c3409.tar.xz
latinime-e04c8b10d7876effbfdf2340a1fec6bf368c3409.zip
am b8d76477: Add the input style to SuggestedWords.
* commit 'b8d764772b174cbd37354ffd0009bda56f223dc4': Add the input style to SuggestedWords.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
index 66b4a9c71..a5f20b565 100644
--- a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
+++ b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
@@ -48,7 +48,8 @@ public class SuggestedWordsTests extends AndroidTestCase {
false /* typedWordValid */,
false /* willAutoCorrect */,
false /* isObsoleteSuggestions */,
- false /* isPrediction*/);
+ false /* isPrediction*/,
+ SuggestedWords.INPUT_STYLE_NONE);
assertEquals(NUMBER_OF_ADDED_SUGGESTIONS + 1, words.size());
assertEquals("typed", words.getWord(0));
assertTrue(words.getInfo(0).isKindOf(SuggestedWordInfo.KIND_TYPED));
@@ -57,7 +58,8 @@ public class SuggestedWordsTests extends AndroidTestCase {
assertEquals("4", words.getWord(5));
assertTrue(words.getInfo(5).isKindOf(SuggestedWordInfo.KIND_CORRECTION));
- final SuggestedWords wordsWithoutTyped = words.getSuggestedWordsExcludingTypedWord();
+ final SuggestedWords wordsWithoutTyped = words.getSuggestedWordsExcludingTypedWord(
+ SuggestedWords.INPUT_STYLE_NONE);
assertEquals(words.size() - 1, wordsWithoutTyped.size());
assertEquals("0", wordsWithoutTyped.getWord(0));
assertTrue(wordsWithoutTyped.getInfo(0).isKindOf(SuggestedWordInfo.KIND_CORRECTION));