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
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