X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09fa09bf2ba6395965eb2e0327b1626372f0e16f..f0e5d5d22ce012e9312a63175d79c0f4a8d444be:/tests/graphics/affinematrix.cpp diff --git a/tests/graphics/affinematrix.cpp b/tests/graphics/affinematrix.cpp index 0e544663f1..ee6c5470dd 100644 --- a/tests/graphics/affinematrix.cpp +++ b/tests/graphics/affinematrix.cpp @@ -60,7 +60,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( AffineTransformTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( AffineTransformTestCase, "AffineTransformTestCase" ); void AffineTransformTestCase::setUp() @@ -117,10 +117,8 @@ void AffineTransformTestCase::VMirrorAndTranslate() dc.DrawBitmap(m_bmpOrig, 0, 0); } - wxImage imgUsingMatrix = bmpUsingMatrix.ConvertToImage(); - wxImage imgOrigVMirrored = m_imgOrig.Mirror(false); - - CPPUNIT_ASSERT_EQUAL( imgUsingMatrix, imgOrigVMirrored ); + CPPUNIT_ASSERT_EQUAL( bmpUsingMatrix.ConvertToImage(), + m_imgOrig.Mirror(false) ); } void AffineTransformTestCase::Rotate90Clockwise() @@ -141,10 +139,8 @@ void AffineTransformTestCase::Rotate90Clockwise() dc.DrawBitmap(m_bmpOrig, 0, 0); } - wxImage imgUsingMatrix = bmpUsingMatrix.ConvertToImage(); - wxImage imgOrigRotate90Clockwise = m_imgOrig.Rotate90(true); - - CPPUNIT_ASSERT_EQUAL( imgUsingMatrix, imgOrigRotate90Clockwise ); + CPPUNIT_ASSERT_EQUAL( bmpUsingMatrix.ConvertToImage(), + m_imgOrig.Rotate90(true) ); } #endif // wxUSE_DC_TRANSFORM_MATRIX