aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-04 17:45:21 +0900
committerJean Chalard <jchalard@google.com>2013-04-09 12:05:54 +0900
commit9310f42a36eabe99ed7dcd3b835d6cdaa3c6fdca (patch)
tree7dd337757f59fefa3c6e513fe6e7125f8b29df05 /tests/src
parenta8d29082843cc22bb37fcd88ae581affdf0eaec7 (diff)
downloadlatinime-9310f42a36eabe99ed7dcd3b835d6cdaa3c6fdca.tar.gz
latinime-9310f42a36eabe99ed7dcd3b835d6cdaa3c6fdca.tar.xz
latinime-9310f42a36eabe99ed7dcd3b835d6cdaa3c6fdca.zip
Offer to add any OOV typed word to the dictionary.
That includes gestures, which used not to work. Bug: 8532637 Change-Id: I04606565d7000faadf954c4a806c39d4d162a2c1
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