2011-12-16 11:27:52 -08:00
|
|
|
#filter substitution
|
|
|
|
package @ANDROID_PACKAGE_NAME@.tests;
|
|
|
|
|
|
|
|
import @ANDROID_PACKAGE_NAME@.*;
|
|
|
|
|
2012-01-05 07:20:22 -08:00
|
|
|
public class testBookmark extends BaseTest {
|
2012-01-05 07:20:22 -08:00
|
|
|
private static final String URL = "http://mochi.test:8888/tests/robocop/robocop_blank_02.html";
|
2012-01-05 07:20:22 -08:00
|
|
|
|
2012-01-05 07:20:22 -08:00
|
|
|
public void testBookmark() {
|
|
|
|
enterUrl(URL);
|
2012-01-05 07:20:22 -08:00
|
|
|
|
|
|
|
//Click the top item in the list.
|
|
|
|
mActions.sendSpecialKey(Actions.SpecialKey.DOWN);
|
2012-01-05 18:36:17 -08:00
|
|
|
hitEnterAndWait();
|
2012-01-05 07:20:22 -08:00
|
|
|
|
2012-01-05 07:20:22 -08:00
|
|
|
verifyUrl(URL);
|
2012-01-05 07:20:22 -08:00
|
|
|
|
|
|
|
//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);
|
2012-01-05 18:36:17 -08:00
|
|
|
|
|
|
|
hitEnterAndWait();
|
2012-01-05 07:20:22 -08:00
|
|
|
|
|
|
|
getInstrumentation().waitForIdleSync();
|
|
|
|
//Unfortunately, the item isn't constant so can't be tested.
|
2012-01-05 07:20:22 -08:00
|
|
|
//awesomebar.click();
|
2012-01-05 07:20:22 -08:00
|
|
|
//asserter.is(url, urlbar.getText(),"Shouldn't this be the last url in the history?");
|
|
|
|
}
|
2011-12-16 11:27:52 -08:00
|
|
|
}
|