aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-09 03:31:15 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-09 03:31:15 -0700
commit75618c3321b8eae559886ba5f71e967591da7065 (patch)
treeb1b13d6f5bc29a68fbde715464f10e6265e953d2 /tests/src
parentdaef4e8f194632a501270ea28c0ae8764a9fe97a (diff)
parent19dcd154932b8aef07f371bdda7f879a70c3c3c8 (diff)
downloadlatinime-75618c3321b8eae559886ba5f71e967591da7065.tar.gz
latinime-75618c3321b8eae559886ba5f71e967591da7065.tar.xz
latinime-75618c3321b8eae559886ba5f71e967591da7065.zip
am 19dcd154: Merge "Offer to add any OOV typed word to the dictionary."
* commit '19dcd154932b8aef07f371bdda7f879a70c3c3c8': 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