Bug 823165 - fix robocop tests to work on panda boards. r=gbrown
authorJoel Maher <jmaher@mozilla.com>
Thu, 27 Dec 2012 07:09:11 -0500
changeset 126199 c151510f79fbc6ed1a1ed0e4b7f1dda78f6ef4ea
parent 126198 de53cfa4b4917d15d37d42b3caec6daf41d00899
child 126200 47edb66a0137aabb62d42d24fe851a1f003adb8d
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs823165
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 823165 - fix robocop tests to work on panda boards. r=gbrown
mobile/android/base/tests/testAwesomebarSwipes.java.in
--- a/mobile/android/base/tests/testAwesomebarSwipes.java.in
+++ b/mobile/android/base/tests/testAwesomebarSwipes.java.in
@@ -29,20 +29,22 @@ public class testAwesomebarSwipes extend
         mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
 
         ListView list = getAllPagesList("about:firefox");
 
         // Test normal sliding of the list left and right
         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
         TabWidget tabwidget = (TabWidget)mSolo.getView(TabWidget.class, 0);
         mSolo.clickOnView(tabwidget.getChildAt(1));
         mAsserter.is(pager.getCurrentItem(), 1, "Clicking on tab selected bookmarks page");
 
         // Test typing in the awesomebar changes tabs and prevents panning