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:
parent
a8ea3eda11
commit
612dfa447a
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue