michael@0: package org.mozilla.gecko.tests; michael@0: michael@0: michael@0: public class testBookmarkKeyword extends AboutHomeTest { michael@0: public void testBookmarkKeyword() { michael@0: blockForGeckoReady(); michael@0: michael@0: final String url = getAbsoluteUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL); michael@0: final String keyword = "testkeyword"; michael@0: michael@0: // Add a bookmark, and update it to have a keyword. michael@0: mDatabaseHelper.addOrUpdateMobileBookmark(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE, url); michael@0: mDatabaseHelper.updateBookmark(url, StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE, keyword); michael@0: michael@0: // Enter the keyword in the urlbar. michael@0: inputAndLoadUrl(keyword); michael@0: michael@0: // Wait for the page to load. michael@0: waitForText(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE); michael@0: michael@0: // Make sure the title of the page appeared. michael@0: verifyPageTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE); michael@0: michael@0: // Delete the bookmark to clean up. michael@0: mDatabaseHelper.deleteBookmark(url); michael@0: } michael@0: }