mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-27 21:39:15 +00:00
29 lines
1.0 KiB
Java
29 lines
1.0 KiB
Java
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package org.mozilla.goanna.tests;
|
|
|
|
|
|
public class testBookmarkKeyword extends AboutHomeTest {
|
|
public void testBookmarkKeyword() {
|
|
blockForGoannaReady();
|
|
|
|
final String url = getAbsoluteUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
|
|
final String keyword = "testkeyword";
|
|
|
|
// Add a bookmark, and update it to have a keyword.
|
|
mDatabaseHelper.addOrUpdateMobileBookmark(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE, url);
|
|
mDatabaseHelper.updateBookmark(url, StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE, keyword);
|
|
|
|
// Enter the keyword in the urlbar.
|
|
inputAndLoadUrl(keyword);
|
|
|
|
// Make sure the title of the page appeared.
|
|
verifyUrlBarTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
|
|
|
|
// Delete the bookmark to clean up.
|
|
mDatabaseHelper.deleteBookmark(url);
|
|
}
|
|
}
|