Bug 849260 - Fix waitForText timeouts in testBookmarksTab; r=jmaher DONTBUILD

This commit is contained in:
Geoff Brown 2013-03-08 09:52:55 -07:00
parent 4bbb5c3520
commit f6e6134a73

View File

@ -184,7 +184,7 @@ public class testBookmarksTab extends BaseTest {
View child;
mSolo.clickOnText("Bookmarks");
child = list.getChildAt(bookmarkIndex);
waitForText("about:firefox");
waitForText("about:home");
mSolo.clickLongOnView(child);
waitForText("Open in New Tab");
mSolo.clickOnText("Edit");
@ -207,7 +207,7 @@ public class testBookmarksTab extends BaseTest {
View child;
mSolo.clickOnText("Bookmarks");
child = list.getChildAt(bookmarkIndex);
waitForText("about:firefox");
waitForText("about:home");
mSolo.clickLongOnView(child);
waitForText("Open in New Tab");
mSolo.clickOnText("Edit");
@ -221,12 +221,12 @@ public class testBookmarksTab extends BaseTest {
// Check if the new text was added
if (mSolo.searchText(addedText)) {
mSolo.clickOnText("Cancel");
waitForText("about:firefox");
waitForText("about:home");
mActions.sendSpecialKey(Actions.SpecialKey.BACK); // close the VKB
return true;
} else {
mSolo.clickOnText("Cancel");
waitForText("about:firefox");
waitForText("about:home");
mActions.sendSpecialKey(Actions.SpecialKey.BACK); // close the VKB
return false;
}