Bug 823165 - fix robocop tests to work on panda boards. r=gbrown

This commit is contained in:
Joel Maher 2012-12-27 07:09:11 -05:00
parent 2e53e50313
commit 42e9f5bddc

View File

@ -34,10 +34,12 @@ public class testAwesomebarSwipes extends BaseTest {
ViewPager pager = (ViewPager)mSolo.getView(ViewPager.class, 0);
mAsserter.is(pager.getCurrentItem(), 0, "All pages is selected");
mSolo.scrollToSide(Solo.RIGHT);
int width = mDriver.getGeckoWidth() / 2;
int y = mDriver.getGeckoHeight() / 2;
mActions.drag(width, 0, y, y);
mAsserter.is(pager.getCurrentItem(), 1, "Bookmarks page is selected");
mSolo.scrollToSide(Solo.LEFT);
mActions.drag(0, width, y, y);
mAsserter.is(pager.getCurrentItem(), 0, "All pages is selected");
// Test tapping on the tab strip changes tabs