am 85f6edba: Merge "Fix a failing test."

* commit '85f6edbaba0a8ce54257ca79d18b9c6ab241558c':
  Fix a failing test.
main
Jean Chalard 2014-02-12 21:02:42 -08:00 committed by Android Git Automerger
commit 542d21e124
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
mInputConnection = ic;
changeLanguage("en_US");
// Run messages to avoid the messages enqueued by startInputView() and its friends
// to run on a later call and ruin things.
// to run on a later call and ruin things. We need to wait first because some of them
// can be posted with a delay (notably, MSG_RESUME_SUGGESTIONS)
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);
runMessages();
}