aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputTestsBase.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-03 19:33:05 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-03 19:33:05 -0700
commitc840ec9eb7b905f50eee67f9b9d8154a45d2283a (patch)
treecd28beabb29263fb3166980e5a66c7b912f914cf /tests/src/com/android/inputmethod/latin/InputTestsBase.java
parent64dd4754e3da0b43ad83e891f8dcacdb0e0c37dd (diff)
parent7cd0ffdde4f684e00c2f9805706ab9514e9733dd (diff)
downloadlatinime-c840ec9eb7b905f50eee67f9b9d8154a45d2283a.tar.gz
latinime-c840ec9eb7b905f50eee67f9b9d8154a45d2283a.tar.xz
latinime-c840ec9eb7b905f50eee67f9b9d8154a45d2283a.zip
am 7cd0ffdd: am 248dcdf0: Merge "Fix a test."
* commit '7cd0ffdde4f684e00c2f9805706ab9514e9733dd': Fix a test.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index 4ccbf4857..d0ab841ae 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -130,7 +130,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
protected void setUp() throws Exception {
super.setUp();
mTextView = new MyTextView(getContext());
- mTextView.setInputType(InputType.TYPE_CLASS_TEXT);
+ final int inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT
+ | InputType.TYPE_TEXT_FLAG_MULTI_LINE;
+ mTextView.setInputType(inputType);
mTextView.setEnabled(true);
setupService();
mLatinIME = getService();
@@ -138,9 +140,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
mLatinIME.onCreate();
setDebugMode(previousDebugSetting);
final EditorInfo ei = new EditorInfo();
- ei.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
final InputConnection ic = mTextView.onCreateInputConnection(ei);
- ei.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
final LayoutInflater inflater =
(LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final ViewGroup vg = new FrameLayout(getContext());