Fix tests.

Looper.prepare() is not called automatically for us any more.

Bug: 17518123
Change-Id: I2fb6caa4ef79ce7ed86ff58518f4b000483e508f
This commit is contained in:
Jean Chalard 2014-09-17 19:12:04 +09:00
parent f116f91033
commit 161080c029

View File

@ -183,6 +183,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
| InputType.TYPE_TEXT_FLAG_MULTI_LINE;
mEditText.setInputType(inputType);
mEditText.setEnabled(true);
if (null == Looper.myLooper()) {
Looper.prepare();
}
setupService();
mLatinIME = getService();
setDebugMode(true);