am 248dcdf0
: Merge "Fix a test."
* commit '248dcdf0eb69903368b3c2bf0e9eda574d1ebf9e': Fix a test.
This commit is contained in:
commit
7cd0ffdde4
1 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
mTextView = new MyTextView(getContext());
|
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);
|
mTextView.setEnabled(true);
|
||||||
setupService();
|
setupService();
|
||||||
mLatinIME = getService();
|
mLatinIME = getService();
|
||||||
|
@ -138,9 +140,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
|
||||||
mLatinIME.onCreate();
|
mLatinIME.onCreate();
|
||||||
setDebugMode(previousDebugSetting);
|
setDebugMode(previousDebugSetting);
|
||||||
final EditorInfo ei = new EditorInfo();
|
final EditorInfo ei = new EditorInfo();
|
||||||
ei.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
|
||||||
final InputConnection ic = mTextView.onCreateInputConnection(ei);
|
final InputConnection ic = mTextView.onCreateInputConnection(ei);
|
||||||
ei.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
|
||||||
final LayoutInflater inflater =
|
final LayoutInflater inflater =
|
||||||
(LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
(LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
final ViewGroup vg = new FrameLayout(getContext());
|
final ViewGroup vg = new FrameLayout(getContext());
|
||||||
|
|
Loading…
Reference in a new issue