mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 725787 - Robotium: loadUrl should be callable more than one time r=gbrown
This commit is contained in:
parent
b20251a822
commit
cb43505d4e
@ -104,8 +104,6 @@ abstract class BaseTest extends ActivityInstrumentationTestCase2<Activity> {
|
||||
}
|
||||
|
||||
protected final void enterUrl(String url) {
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
Activity awesomeBarActivity = clickOnAwesomeBar();
|
||||
Element urlbar = mDriver.findElement(awesomeBarActivity, "awesomebar_text");
|
||||
mActions.sendKeys(url);
|
||||
|
@ -7,6 +7,8 @@ public class testAwesomebar extends BaseTest {
|
||||
public void testAwesomebar() {
|
||||
setTestType("mochitest");
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
String url = getAbsoluteUrl("/robocop/robocop_blank_01.html");
|
||||
loadUrl(url);
|
||||
|
||||
|
@ -19,6 +19,8 @@ public class testAxisLocking extends PixelTest {
|
||||
|
||||
MotionEventHelper meh = new MotionEventHelper(getInstrumentation(), mDriver.getGeckoLeft(), mDriver.getGeckoTop());
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
// load page and check we're at 0,0
|
||||
loadAndVerifyBoxes(url);
|
||||
|
||||
|
@ -12,6 +12,9 @@ public class testBookmark extends BaseTest {
|
||||
|
||||
public void testBookmark() {
|
||||
setTestType("mochitest");
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
String url = getAbsoluteUrl("/robocop/robocop_blank_02.html");
|
||||
enterUrl(url);
|
||||
|
||||
|
@ -15,6 +15,9 @@ public class testCheck extends PixelTest {
|
||||
public void testCheck() {
|
||||
setTestType("talos");
|
||||
String url = getAbsoluteUrl("/startup_test/fennecmark/wikipedia.html");
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
loadAndPaint(url);
|
||||
|
||||
mDriver.setupScrollHandling();
|
||||
|
@ -17,6 +17,8 @@ public class testFlingCorrectness extends PixelTest {
|
||||
|
||||
MotionEventHelper meh = new MotionEventHelper(getInstrumentation(), mDriver.getGeckoLeft(), mDriver.getGeckoTop());
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
// load page and check we're at 0,0
|
||||
loadAndVerifyBoxes(url);
|
||||
|
||||
|
@ -14,6 +14,8 @@ public class testLoad extends PixelTest {
|
||||
setTestType("mochitest");
|
||||
String url = getAbsoluteUrl("/robocop/robocop_boxes.html");
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
loadAndVerifyBoxes(url);
|
||||
|
||||
verifyUrl(url);
|
||||
|
@ -17,6 +17,8 @@ public class testOverscroll extends PixelTest {
|
||||
|
||||
MotionEventHelper meh = new MotionEventHelper(getInstrumentation(), mDriver.getGeckoLeft(), mDriver.getGeckoTop());
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
// load page and check we're at 0,0
|
||||
loadAndVerifyBoxes(url);
|
||||
|
||||
|
@ -14,6 +14,8 @@ public class testPan extends PixelTest {
|
||||
setTestType("talos");
|
||||
String url = getAbsoluteUrl("/startup_test/fennecmark/wikipedia.html");
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
loadAndPaint(url);
|
||||
|
||||
mDriver.setupScrollHandling();
|
||||
|
@ -17,6 +17,8 @@ public class testPanCorrectness extends PixelTest {
|
||||
|
||||
MotionEventHelper meh = new MotionEventHelper(getInstrumentation(), mDriver.getGeckoLeft(), mDriver.getGeckoTop());
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
// load page and check we're at 0,0
|
||||
loadAndVerifyBoxes(url);
|
||||
|
||||
|
@ -9,6 +9,8 @@ public class test_bug720538 extends PixelTest {
|
||||
setTestType("mochitest");
|
||||
String url = getAbsoluteUrl("/robocop/test_bug720538.html");
|
||||
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
/*
|
||||
* for this test, we load the associated test_bug720538.html file. this file has two
|
||||
* iframes (painted completely blue - #0000FF) and the rest of the page is the background
|
||||
|
Loading…
Reference in New Issue
Block a user