From: Dimitri Schoolwerth Date: Sun, 3 Apr 2011 22:41:58 +0000 (+0000) Subject: Fixed failing image test. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a5a0ba3dbdc22ac3f78b0a2f08c896cc817babf5?ds=sidebyside 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 --- diff --git a/tests/image/image.cpp b/tests/image/image.cpp index 810b56d069..98487b0f85 100644 --- a/tests/image/image.cpp +++ b/tests/image/image.cpp @@ -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