Fixed failing image test.

ImageTestCase::DibPadding was always failing due to differences in pixel data between the decoded GIF and encoded ICO image. Instead of comparing image content just check if the saving of the ICO succeeds (prior to r67296 it would crash).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2011-04-03 22:41:58 +00:00
parent fa68bafba7
commit a5a0ba3dbd

View File

@@ -1267,8 +1267,8 @@ void ImageTestCase::DibPadding()
image = image.Scale(99, 99);
CompareImage(*wxImage::FindHandler(wxBITMAP_TYPE_ICO),
image, wxIMAGE_HAVE_PALETTE);
wxMemoryOutputStream memOut;
CPPUNIT_ASSERT( image.SaveFile(memOut, wxBITMAP_TYPE_ICO) );
}
#endif //wxUSE_IMAGE