mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
27 lines
842 B
Java
27 lines
842 B
Java
package org.mozilla.gecko.tests;
|
|
|
|
public class testAwesomebar extends BaseTest {
|
|
public void testAwesomebar() {
|
|
blockForGeckoReady();
|
|
|
|
String url = getAbsoluteUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
|
|
inputAndLoadUrl(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);
|
|
}
|
|
}
|