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

30 lines
863 B
Java
Raw Normal View History

#filter substitution
package @ANDROID_PACKAGE_NAME@.tests;
import @ANDROID_PACKAGE_NAME@.*;
import android.widget.TextView;
import java.util.ArrayList;
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 awesome list.
mActions.sendSpecialKey(Actions.SpecialKey.DOWN);
hitEnterAndWait();
//Click the top item in the bookmark list.
clickOnAwesomeBar();
mActions.sendSpecialKey(Actions.SpecialKey.RIGHT);
ArrayList<TextView> l = null;
while (l == null || l.size() < 1) {
l = mSolo.clickInList(1);
}
waitForLoad();
//Items in bookmarks aren't constant so URL can't be tested.
}
}