mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
#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?");
|
|
}
|
|
}
|