am 7294cc5b: Merge "Fix a test."
* commit '7294cc5bfe653fde80b257bd39e3ff7eb11e102d': Fix a test.main
commit
69d318a5b6
|
@ -381,7 +381,7 @@ public class InputLogicTests extends InputTestsBase {
|
||||||
type(WORD_TO_TYPE);
|
type(WORD_TO_TYPE);
|
||||||
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);
|
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);
|
||||||
runMessages();
|
runMessages();
|
||||||
// Test the first prediction is displayed
|
// Test the first prediction is not displayed
|
||||||
final SuggestedWords suggestedWords = mLatinIME.getSuggestedWords();
|
final SuggestedWords suggestedWords = mLatinIME.getSuggestedWords();
|
||||||
assertEquals("no prediction after period", 0, suggestedWords.size());
|
assertEquals("no prediction after period", 0, suggestedWords.size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,6 +201,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
|
||||||
mLatinIME.onStartInputView(ei, false);
|
mLatinIME.onStartInputView(ei, false);
|
||||||
mInputConnection = ic;
|
mInputConnection = ic;
|
||||||
changeLanguage("en_US");
|
changeLanguage("en_US");
|
||||||
|
// Run messages to avoid the messages enqueued by startInputView() and its friends
|
||||||
|
// to run on a later call and ruin things.
|
||||||
|
runMessages();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue