Bug 725911 - Add more logging to help diagnose random orange in robocop tests. r=jmaher
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 10 Feb 2012 11:25:28 -0500
changeset 89537 8716f10ab139b8e5045ce7acc3f024c12c2f79b3
parent 89536 71f5bf4df2f60a730733073a15e6766d929e9516
child 89538 742ae4efad72a2225a756ecfdd1fe75b8d802462
push idunknown
push userunknown
push dateunknown
reviewersjmaher
bugs725911
milestone13.0a1
Bug 725911 - Add more logging to help diagnose random orange in robocop tests. r=jmaher
mobile/android/base/tests/test_bug720538.java.in
--- a/mobile/android/base/tests/test_bug720538.java.in
+++ b/mobile/android/base/tests/test_bug720538.java.in
@@ -47,11 +47,16 @@ public class test_bug720538 extends Pixe
         // now we do double-tap again to zoom out and wait for the animation to finish, as before
         paintExpecter = mActions.expectPaint();
         meh.doubleTap(100, mDriver.getGeckoWidth() / 2);
         painted = waitForPaint(paintExpecter);
 
         // 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");
     }
 }