Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 }