aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-08-20 12:21:07 +0900
committerJean Chalard <jchalard@google.com>2013-08-20 18:43:19 +0900
commitef1e363016623ccf409c8c270f2c1e35a67734c9 (patch)
treef4627781dcf73e7383f68101c88ffe8afadfe442 /tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
parent065aad9501ae446aee5d73450c01dc21b8f3242a (diff)
downloadlatinime-ef1e363016623ccf409c8c270f2c1e35a67734c9.tar.gz
latinime-ef1e363016623ccf409c8c270f2c1e35a67734c9.tar.xz
latinime-ef1e363016623ccf409c8c270f2c1e35a67734c9.zip
[AC1] Add a memory of where to cut the first word.
Bug: 9059617 Change-Id: I931b6d1eb49f9f7dd7d5b18956e35751d1b2b631
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java')
-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 8d0fe014c..ef86700a5 100644
--- a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
+++ b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
@@ -34,9 +34,11 @@ public class SuggestedWordsTests extends AndroidTestCase {
final int NUMBER_OF_ADDED_SUGGESTIONS = 5;
final ArrayList<SuggestedWordInfo> list = CollectionUtils.newArrayList();
list.add(new SuggestedWordInfo(TYPED_WORD, TYPED_WORD_FREQ,
- SuggestedWordInfo.KIND_TYPED, ""));
+ SuggestedWordInfo.KIND_TYPED, "",
+ SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */));
for (int i = 0; i < NUMBER_OF_ADDED_SUGGESTIONS; ++i) {
- list.add(new SuggestedWordInfo("" + i, 1, SuggestedWordInfo.KIND_CORRECTION, ""));
+ list.add(new SuggestedWordInfo("" + i, 1, SuggestedWordInfo.KIND_CORRECTION, "",
+ SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */));
}
final SuggestedWords words = new SuggestedWords(