Increase test tolerance.
NOTREECHECKS=true CQ_EXTRA_TRYBOTS=tryserver.skia:Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Release-Trybot BUG=skia: R=mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/516503003
This commit is contained in:
parent
5ff9132693
commit
90e8457ab3
@ -137,12 +137,9 @@ 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 %x %x %x %x, got %x %x %x %x\n",
|
||||
0.0f, 0.0f, 400.0f, 480.0f,
|
||||
bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
|
||||
}
|
||||
REPORTER_ASSERT(r, bbh.entries[i].bounds == SkRect::MakeWH(400, 480));
|
||||
// We'd like to assert bounds == SkRect::MakeWH(400, 480).
|
||||
// But we allow a little slop in recognition that float equality can be weird.
|
||||
REPORTER_ASSERT(r, SkRect::MakeLTRB(-1, -1, 401, 481).contains(bbh.entries[i].bounds));
|
||||
REPORTER_ASSERT(r, !SkRect::MakeLTRB(+1, +1, 399, 479).contains(bbh.entries[i].bounds));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user