From 3224cf64f6a4a627bf84042657a269de216894e1 Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Wed, 19 Dec 2012 18:54:04 -0700 Subject: [PATCH] Bug 795928 - testAllPagesTab: wait for first bookmark instead of url that is likely already displayed in awesomebar; r=wesj --- mobile/android/base/tests/testAllPagesTab.java.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/android/base/tests/testAllPagesTab.java.in b/mobile/android/base/tests/testAllPagesTab.java.in index 19cfba170d1..0190d6b38c1 100644 --- a/mobile/android/base/tests/testAllPagesTab.java.in +++ b/mobile/android/base/tests/testAllPagesTab.java.in @@ -59,7 +59,7 @@ public class testAllPagesTab extends BaseTest { private void testList(String url) { final ListView list = getAllPagesList(url); - mSolo.waitForText(url); + mSolo.waitForText(bookmarks[0]); // some basic checks for the tab strip TabWidget tabwidget = (TabWidget)mSolo.getView(TabWidget.class, 0); @@ -116,7 +116,7 @@ public class testAllPagesTab extends BaseTest { private void testContextMenu(String url) { ListView list = getAllPagesList(url); - mSolo.waitForText(url); + mSolo.waitForText(bookmarks[0]); View child = list.getChildAt(0); mSolo.clickLongOnView(child); @@ -133,7 +133,7 @@ public class testAllPagesTab extends BaseTest { private void testClick(String url) { ListView list = getAllPagesList(url); - mSolo.waitForText(url); + mSolo.waitForText(bookmarks[0]); Actions.EventExpecter contentEventExpecter = mActions.expectGeckoEvent("DOMContentLoaded"); View child = list.getChildAt(0); @@ -144,7 +144,7 @@ public class testAllPagesTab extends BaseTest { private ListView getAllPagesList(String url) { Activity awesomeBarActivity = clickOnAwesomeBar(); - mSolo.waitForText(url); + mSolo.waitForText(bookmarks[0]); final ArrayList views = mSolo.getCurrentListViews();