mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 795928 - testAllPagesTab: wait for first bookmark instead of url that is likely already displayed in awesomebar; r=wesj
This commit is contained in:
parent
83dd349ecf
commit
3224cf64f6
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user