Add some debugging to figure out what's up with failing Mac 10.8 Release bot.

BUG=skia:

Review URL: https://codereview.chromium.org/511013002
This commit is contained in:
Mike Klein 2014-08-27 19:08:52 -04:00
parent da0b7a6a52
commit 56fa442503

View File

@ -137,6 +137,11 @@ DEF_TEST(RecordDraw_BBH, r) {
for (int i = 0; i < bbh.entries.count(); i++) {
REPORTER_ASSERT(r, bbh.entries[i].data == (uintptr_t)i);
if (bbh.entries[i].bounds != SkRect::MakeWH(400, 480)) {
SkRect bounds = bbh.entries[i].bounds;
SkDebugf("Expected 0,0,400,480, got %f %f %f %f\n",
bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
}
REPORTER_ASSERT(r, bbh.entries[i].bounds == SkRect::MakeWH(400, 480));
}
}