Bug 725911 - Add more logging to help diagnose random orange in robocop tests. r=jmaher

This commit is contained in:
Kartikaya Gupta 2012-02-10 11:25:28 -05:00
parent a9e7539f67
commit 1898bff99a

View File

@ -52,6 +52,11 @@ public class test_bug720538 extends PixelTest {
// and now we check a pixel at the bottom of the view to ensure that we have the page
// background and not some checkerboarding. use the second-last row of pixels instead of
// the last row because the last row is subject to rounding and clipping errors
for (int y = 2; y < 10; y++) {
for (int x = 0; x < 10; x++) {
mAsserter.dumpLog("Pixel at " + x + ", " + (mDriver.getGeckoHeight() - y) + ": " + Integer.toHexString(painted[mDriver.getGeckoHeight() - y][x]));
}
}
mAsserter.ispixel(painted[mDriver.getGeckoHeight() - 2][0], 0, 0x80, 0, "Checking bottom-left corner of viewport");
}
}