Bug 725787 - Robotium: loadUrl should be callable more than one time r=gbrown

This commit is contained in:
Mark Finkle 2012-02-10 09:44:06 -05:00
parent b20251a822
commit cb43505d4e
11 changed files with 22 additions and 2 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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