Bug 911105 - Wait for view in testSearchSuggestions. r=mfinkle, a=test-only
authorGeoff Brown <gbrown@mozilla.com>
Tue, 09 Dec 2014 07:32:55 -0700
changeset 242350 fef63651fcf034445c1df075d81057cd294c6c1d
parent 242349 54f34402f8b27be03c8e0821012a9b6b088640d0
child 242351 9ad04463c2d3061f75608196a22a3d89582d76c6
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, test-only
bugs911105
milestone36.0a2
Bug 911105 - Wait for view in testSearchSuggestions. r=mfinkle, a=test-only
mobile/android/base/tests/testSearchSuggestions.java
--- a/mobile/android/base/tests/testSearchSuggestions.java
+++ b/mobile/android/base/tests/testSearchSuggestions.java
@@ -48,16 +48,17 @@ public class testSearchSuggestions exten
             if (enginesEventExpecter != null) {
                 connectSuggestClient(getActivity());
                 enginesEventExpecter.blockForEvent();
                 enginesEventExpecter.unregisterListener();
                 enginesEventExpecter = null;
             }
 
             final String query = TEST_QUERY.substring(0, i+1);
+            mSolo.waitForView(R.id.suggestion_text);
             boolean success = waitForTest(new BooleanTest() {
                 @Override
                 public boolean test() {
                     // get the first suggestion row
                     ViewGroup suggestionGroup = (ViewGroup) getActivity().findViewById(R.id.suggestion_layout);
                     if (suggestionGroup == null)
                         return false;