Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
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 }