aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-09 10:28:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-09 10:28:47 +0000
commit19dcd154932b8aef07f371bdda7f879a70c3c3c8 (patch)
treeb1b13d6f5bc29a68fbde715464f10e6265e953d2 /tests/src
parentf31553bc09f83d21b9321a2c45a2213c28282408 (diff)
parent9310f42a36eabe99ed7dcd3b835d6cdaa3c6fdca (diff)
downloadlatinime-19dcd154932b8aef07f371bdda7f879a70c3c3c8.tar.gz
latinime-19dcd154932b8aef07f371bdda7f879a70c3c3c8.tar.xz
latinime-19dcd154932b8aef07f371bdda7f879a70c3c3c8.zip
Merge "Offer to add any OOV typed word to the dictionary."
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index 04e1f932a..4583eab2f 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -36,6 +36,7 @@ import android.widget.TextView;
import com.android.inputmethod.keyboard.Key;
import com.android.inputmethod.keyboard.Keyboard;
+import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
import java.util.Locale;
@@ -255,7 +256,8 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
}
protected void pickSuggestionManually(final int index, final String suggestion) {
- mLatinIME.pickSuggestionManually(index, suggestion);
+ mLatinIME.pickSuggestionManually(index, new SuggestedWordInfo(suggestion, 1,
+ SuggestedWordInfo.KIND_CORRECTION, "main"));
}
// Helper to avoid writing the try{}catch block each time