Bug 849260 - Fix waitForText timeouts in testBookmarksTab; r=jmaher DONTBUILD
authorGeoff Brown <gbrown@mozilla.com>
Fri, 08 Mar 2013 09:52:55 -0700
changeset 124225 2f4e44ec0b9aa987940def320004a9b12d8a0f24
parent 124224 f07b485e54ebb842dac5a56487926406dc8b58a4
child 124226 e25ca1ca1f17090a78dcb2fa4426bfe1978e77ba
push id24301
push usergbrown@mozilla.com
push dateFri, 08 Mar 2013 16:53:11 +0000
treeherdermozilla-inbound@2f4e44ec0b9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs849260
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 849260 - Fix waitForText timeouts in testBookmarksTab; r=jmaher DONTBUILD
mobile/android/base/tests/testBookmarksTab.java.in
--- a/mobile/android/base/tests/testBookmarksTab.java.in
+++ b/mobile/android/base/tests/testBookmarksTab.java.in
@@ -179,17 +179,17 @@ public class testBookmarksTab extends Ba
     }
 
     private void editBookmark(int bookmarkIndex, int fieldIndex, String addedText) {
 
         // Open the Edit Bookmark context menu
         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");
         waitForText("Edit Bookmark");
 
         // Clear the Field
         mSolo.clearEditText(fieldIndex);
 
@@ -202,36 +202,36 @@ public class testBookmarksTab extends Ba
     }
 
     private boolean checkBookmarkEdit(int bookmarkIndex, String addedText) {
         Device mDevice = new Device();
         // Open the Edit Bookmark context menu
         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");
         waitForText("Edit Bookmark");
 
         // If the OS is not Gingerbread the vkb will be opened so we need to close it in order to press the "Cancel" button
         if (!(mDevice.version.equals("2.x"))) {
             mActions.sendSpecialKey(Actions.SpecialKey.BACK); // close the VKB
         }
 
         // 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;
         }
     }
 
     private void compareRow(View child, int numTextViews, int numImageViews) {
         ArrayList<View> views = mSolo.getViews(child);
         ArrayList<ImageView> imageViews = new ArrayList<ImageView>();