aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/BitmapTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-12-15 09:20:19 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-15 09:20:19 -0800
commit02faf310805cae2d11e0342408a2082f96565d93 (patch)
tree3564807eef8022b623020d8bddb62e2472844276 /tests/BitmapTest.cpp
parent19b0420e877d3e27d5315d8a539e671cf2b479eb (diff)
Tests: reduce verbosity
Diffstat (limited to 'tests/BitmapTest.cpp')
-rw-r--r--tests/BitmapTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/BitmapTest.cpp b/tests/BitmapTest.cpp
index 58e3c8b3ec..015b917464 100644
--- a/tests/BitmapTest.cpp
+++ b/tests/BitmapTest.cpp
@@ -151,7 +151,9 @@ static void test_erasecolor_premul(skiatest::Reporter* reporter, SkColorType ct,
SkBitmap bm;
bm.allocPixels(SkImageInfo::Make(1, 1, ct, kPremul_SkAlphaType));
bm.eraseColor(input);
- SkDebugf("expected: %x actual: %x\n", expected, bm.getColor(0, 0));
+ if (reporter->verbose()) {
+ SkDebugf("expected: %x actual: %x\n", expected, bm.getColor(0, 0));
+ }
REPORTER_ASSERT(reporter, bm.getColor(0, 0) == expected);
}