mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 818095 - Intermittent testHistoryTab | history list has 3 children - got 0, expected 3. r=gbrown.
This commit is contained in:
parent
0780ccfe6b
commit
808e6a48c8
@ -99,13 +99,17 @@ public class testHistoryTab extends PixelTest {
|
||||
|
||||
private void testList(String url) {
|
||||
listview = getHistoryList();
|
||||
mSolo.waitForText(url);
|
||||
|
||||
// Around midnight we will switch from Today -> Yesterday, account for both
|
||||
if (!mSolo.waitForText("Today")) {
|
||||
mSolo.waitForText("Yesterday");
|
||||
}
|
||||
|
||||
mAsserter.isnot(listview, null, "checking that history list exists");
|
||||
|
||||
mAsserter.is(listview.getChildCount(), 3, "history list has 3 children");
|
||||
|
||||
final int count = listview.getChildCount();
|
||||
mAsserter.is(count, 3, "history list has 3 children");
|
||||
|
||||
String loadUrl = "";
|
||||
for (int i = count - 1; i >= 0; i--) {
|
||||
View child = listview.getChildAt(i);
|
||||
|
Loading…
Reference in New Issue
Block a user