gecko/mobile/android/base/tests/testBookmark.java.in

34 lines
1.1 KiB
Java
Raw Normal View History

#filter substitution
package @ANDROID_PACKAGE_NAME@.tests;
import @ANDROID_PACKAGE_NAME@.*;
public class testBookmark extends BaseTest {
private static final String URL = "http://mochi.test:8888/tests/robocop/robocop_blank_02.html";
public void testBookmark() {
enterUrl(URL);
//Click the top item in the list.
mActions.sendSpecialKey(Actions.SpecialKey.DOWN);
hitEnterAndWait();
verifyUrl(URL);
//Click the Top item in the history list.
getInstrumentation().waitForIdleSync();
mActions.sendSpecialKey(Actions.SpecialKey.RIGHT);
mActions.sendSpecialKey(Actions.SpecialKey.RIGHT);
getInstrumentation().waitForIdleSync();
mActions.sendSpecialKey(Actions.SpecialKey.DOWN);
mActions.sendSpecialKey(Actions.SpecialKey.DOWN);
hitEnterAndWait();
getInstrumentation().waitForIdleSync();
//Unfortunately, the item isn't constant so can't be tested.
//awesomebar.click();
//asserter.is(url, urlbar.getText(),"Shouldn't this be the last url in the history?");
}
}