diff options
author | 2013-04-02 02:24:36 -0700 | |
---|---|---|
committer | 2013-04-02 02:24:36 -0700 | |
commit | 7cd0ffdde4f684e00c2f9805706ab9514e9733dd (patch) | |
tree | 0290e43478a2852ad2abc53c631e66e67ac7a979 /tests/src/com/android/inputmethod/latin/InputTestsBase.java | |
parent | 63742fe53072a9a706c4bfc51dde00c5fbb9829a (diff) | |
parent | 248dcdf0eb69903368b3c2bf0e9eda574d1ebf9e (diff) | |
download | latinime-7cd0ffdde4f684e00c2f9805706ab9514e9733dd.tar.gz latinime-7cd0ffdde4f684e00c2f9805706ab9514e9733dd.tar.xz latinime-7cd0ffdde4f684e00c2f9805706ab9514e9733dd.zip |
am 248dcdf0: Merge "Fix a test."
* commit '248dcdf0eb69903368b3c2bf0e9eda574d1ebf9e':
Fix a test.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputTestsBase.java | 6 |
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()); |