Bug 795928 - testAllPagesTab: wait for first bookmark instead of url that is likely already displayed in awesomebar; r=wesj

This commit is contained in:
Geoff Brown 2012-12-19 18:54:04 -07:00
parent 83dd349ecf
commit 3224cf64f6

View File

@ -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<ListView> views = mSolo.getCurrentListViews();