From a5a3571659761b2cbb2b3ed54ffae0a5267df80c Mon Sep 17 00:00:00 2001 From: Brian Nicholson Date: Mon, 9 Jul 2012 23:38:36 -0700 Subject: [PATCH] Bug 769524 - Add sleep to testSearchSuggestions to workaround blocked event queue. r=gbrown --- mobile/android/base/tests/testSearchSuggestions.java.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/android/base/tests/testSearchSuggestions.java.in b/mobile/android/base/tests/testSearchSuggestions.java.in index 3c558d8db267..a9f5aeb8d593 100644 --- a/mobile/android/base/tests/testSearchSuggestions.java.in +++ b/mobile/android/base/tests/testSearchSuggestions.java.in @@ -42,6 +42,9 @@ public class testSearchSuggestions extends BaseTest { final int suggestionLayoutId = mDriver.findElement(getActivity(), "suggestion_layout").getId(); final int suggestionTextId = mDriver.findElement(getActivity(), "suggestion_text").getId(); + // workaround for bug 769524 + mSolo.sleep(5000); + Actions.EventExpecter enginesEventExpecter = mActions.expectGeckoEvent("SearchEngines:Data"); final Activity awesomeBarActivity = clickOnAwesomeBar(); enginesEventExpecter.blockForEvent();