aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-10 19:35:50 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-10 19:35:50 -0700
commit1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93 (patch)
treef2cadacc2e2fd63043b6d365c296df62dc656d24 /tests/src
parentfd89cd20c956ce9618353dcd5d7648a2bab3b7ab (diff)
parent75618c3321b8eae559886ba5f71e967591da7065 (diff)
downloadlatinime-1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93.tar.gz
latinime-1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93.tar.xz
latinime-1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93.zip
am 75618c33: am 19dcd154: Merge "Offer to add any OOV typed word to the dictionary."
* commit '75618c3321b8eae559886ba5f71e967591da7065': 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