Commit 15e6ef2d authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Fix backwards logging in test.

The test terminated its loop in the correct condition, but logged as if
it hadn't.  Adjust the code so it logs when the loop doesn't terminate.

Bug: none
Change-Id: I6587eccf76538a6170df84c7dfb58a179cf3f498
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2116540
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752717}
parent a6bfcbda
......@@ -122,10 +122,11 @@ class AccessibilityHighlightControllerTest : public AshTestBase {
bitmap.height() != bounds.height()) {
LOG(INFO) << "Bitmap not correct size, trying to capture again";
continue;
} else if (255 == SkColorGetA(bitmap.getColor(0, 0))) {
} else if (255 != SkColorGetA(bitmap.getColor(0, 0))) {
LOG(INFO) << "Bitmap is transparent, trying to capture again";
break;
continue;
}
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment