2011-12-16 11:27:52 -08:00
|
|
|
#filter substitution
|
|
|
|
package @ANDROID_PACKAGE_NAME@.tests;
|
|
|
|
|
|
|
|
import @ANDROID_PACKAGE_NAME@.*;
|
2012-01-18 10:44:47 -08:00
|
|
|
import android.widget.TextView;
|
|
|
|
import java.util.ArrayList;
|
2011-12-16 11:27:52 -08:00
|
|
|
|
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
|
|
|
|
2012-01-18 10:44:47 -08:00
|
|
|
//Click the top item in the awesome list.
|
2012-01-05 07:20:22 -08:00
|
|
|
mActions.sendSpecialKey(Actions.SpecialKey.DOWN);
|
2012-01-05 18:36:17 -08:00
|
|
|
hitEnterAndWait();
|
2012-01-05 07:20:22 -08:00
|
|
|
|
2012-01-21 09:47:48 -08:00
|
|
|
//Click the top item in the bookmark list.
|
2012-01-10 11:15:18 -08:00
|
|
|
clickOnAwesomeBar();
|
2012-01-05 07:20:22 -08:00
|
|
|
mActions.sendSpecialKey(Actions.SpecialKey.RIGHT);
|
2012-01-18 10:44:47 -08:00
|
|
|
ArrayList<TextView> l = null;
|
|
|
|
while (l == null || l.size() < 1) {
|
2012-01-21 09:47:48 -08:00
|
|
|
l = mSolo.clickInList(1);
|
2012-01-18 10:44:47 -08:00
|
|
|
}
|
|
|
|
waitForLoad();
|
2012-01-05 07:20:22 -08:00
|
|
|
|
2012-01-21 09:47:48 -08:00
|
|
|
//Items in bookmarks aren't constant so URL can't be tested.
|
2012-01-05 07:20:22 -08:00
|
|
|
}
|
2011-12-16 11:27:52 -08:00
|
|
|
}
|