mobile/android/base/tests/testBookmarkKeyword.java

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 package org.mozilla.gecko.tests;
     4 public class testBookmarkKeyword extends AboutHomeTest {
     5     public void testBookmarkKeyword() {
     6         blockForGeckoReady();
     8         final String url = getAbsoluteUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
     9         final String keyword = "testkeyword";
    11         // Add a bookmark, and update it to have a keyword.
    12         mDatabaseHelper.addOrUpdateMobileBookmark(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE, url);
    13         mDatabaseHelper.updateBookmark(url, StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE, keyword);
    15         // Enter the keyword in the urlbar.
    16         inputAndLoadUrl(keyword);
    18         // Wait for the page to load.
    19         waitForText(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE);
    21         // Make sure the title of the page appeared.
    22         verifyPageTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE);
    24         // Delete the bookmark to clean up.
    25         mDatabaseHelper.deleteBookmark(url);
    26     }
    27 }

mercurial