mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-23 06:33:59 +08:00
Log image information earlier in the image unit test
Use INFO() before some checks that may already fail to at least show in which test the failures occur.
This commit is contained in:
@@ -949,6 +949,10 @@ void CompareImage(const wxImageHandler& handler, const wxImage& image,
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned bitsPerPixel = testPalette ? 8 : (testAlpha ? 32 : 24);
|
||||
wxINFO_FMT("Compare test '%s (%d-bit)' for saving",
|
||||
handler.GetExtension(), bitsPerPixel);
|
||||
|
||||
wxMemoryInputStream memIn(memOut);
|
||||
REQUIRE(memIn.IsOk());
|
||||
|
||||
@@ -956,10 +960,6 @@ void CompareImage(const wxImageHandler& handler, const wxImage& image,
|
||||
REQUIRE(actual.IsOk());
|
||||
|
||||
const wxImage *expected = compareTo ? compareTo : ℑ
|
||||
|
||||
unsigned bitsPerPixel = testPalette ? 8 : (testAlpha ? 32 : 24);
|
||||
wxINFO_FMT("Compare test '%s (%d-bit)' for saving",
|
||||
handler.GetExtension(), bitsPerPixel);
|
||||
CHECK_THAT(actual, RGBSameAs(*expected));
|
||||
|
||||
#if wxUSE_PALETTE
|
||||
|
||||
Reference in New Issue
Block a user