Bug 905591 - Load URLs in PixelTest without requiring input injection (r=gbrown)
authorLucas Rocha <lucasr@mozilla.com>
Mon, 19 Aug 2013 21:33:49 +0100
changeset 143566 1efcc5f4d314f361183bab9498e4d60c0bf0914c
parent 143565 63f9dbf0e3923e152e819fe6f00dd7370953aa7f
child 143567 9d9eab84d2e7b1a067fa4613ee5c949056c2d44a
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs905591
milestone26.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 905591 - Load URLs in PixelTest without requiring input injection (r=gbrown)
mobile/android/base/tests/PixelTest.java.in
mobile/android/base/tests/testTabHistory.java.in
--- a/mobile/android/base/tests/PixelTest.java.in
+++ b/mobile/android/base/tests/PixelTest.java.in
@@ -3,17 +3,17 @@ package @ANDROID_PACKAGE_NAME@.tests;
 
 import @ANDROID_PACKAGE_NAME@.*;
 
 abstract class PixelTest extends BaseTest {
     private static final long PAINT_CLEAR_DELAY = 3000; // milliseconds
 
     protected final PaintedSurface loadAndGetPainted(String url) {
         Actions.RepeatedEventExpecter paintExpecter = mActions.expectPaint();
-        inputAndLoadUrl(url);
+        loadUrl(url);
         paintExpecter.blockUntilClear(PAINT_CLEAR_DELAY);
         paintExpecter.unregisterListener();
         PaintedSurface p = mDriver.getPaintedSurface();
         if (p == null) {
             mAsserter.ok(p != null, "checking that painted surface loaded", 
                  "painted surface loaded");
         }
         return p;
--- a/mobile/android/base/tests/testTabHistory.java.in
+++ b/mobile/android/base/tests/testTabHistory.java.in
@@ -17,18 +17,21 @@ public class testTabHistory extends Pixe
         blockForGeckoReady();
 
         String url = getAbsoluteUrl("/robocop/robocop_blank_01.html");
         String url2 = getAbsoluteUrl("/robocop/robocop_blank_02.html");
         String url3 = getAbsoluteUrl("/robocop/robocop_blank_03.html");
 
         // Create tab history
         loadAndPaint(url);
+        verifyPageTitle("Browser Blank Page 01");
         loadAndPaint(url2);
+        verifyPageTitle("Browser Blank Page 02");
         loadAndPaint(url3);
+        verifyPageTitle("Browser Blank Page 03");
 
         // Get the device information and create the navigation for it
         Navigation nav = new Navigation(mDevice);
         mAsserter.dumpLog("device type: "+mDevice.type);
         mAsserter.dumpLog("device version: "+mDevice.version);
         mAsserter.dumpLog("device width: "+mDevice.width);
         mAsserter.dumpLog("device height: "+mDevice.height);