gecko/mobile/android/base/tests/testAwesomebar.java.in
Brian Nicholson cd32dfd543 Bug 850487 - More code cleanup (@Overrides and unused imports). r=kats
--HG--
extra : rebase_source : 376574e0c41b91c16a6be335584a4a61768bb4a9
2013-03-13 13:20:57 -07:00

33 lines
940 B
Java

#filter substitution
package @ANDROID_PACKAGE_NAME@.tests;
public class testAwesomebar extends BaseTest {
@Override
protected int getTestType() {
return TEST_MOCHITEST;
}
public void testAwesomebar() {
blockForGeckoReady();
String url = getAbsoluteUrl("/robocop/robocop_blank_01.html");
loadUrl(url);
mDriver.setupScrollHandling();
// Calculate where we should be dragging.
int midX = mDriver.getGeckoLeft() + mDriver.getGeckoWidth()/2;
int midY = mDriver.getGeckoTop() + mDriver.getGeckoHeight()/2;
int endY = mDriver.getGeckoTop() + mDriver.getGeckoHeight()/10;
for (int i = 0; i < 10; i++) {
mActions.drag(midX, midX, midY, endY);
try {
Thread.sleep(200);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
verifyUrl(url);
}
}