Bug 905591 - Load URLs in PixelTest without requiring input injection (r=gbrown)

This commit is contained in:
Lucas Rocha 2013-08-19 21:33:49 +01:00
parent 776de3bdb7
commit 0a8736dac7
2 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ abstract class PixelTest extends BaseTest {
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();

View File

@ -22,8 +22,11 @@ public class testTabHistory extends PixelTest {
// 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);