]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/testimage.h
wxRTC: save and load the 'shown' status in case there's a situation where layout...
[wxWidgets.git] / tests / testimage.h
index 4c84b5cf51b0ea3021df516289dc628ccde18402..eecb7e1519d82fde1f2e30e0215e4a514d27c32e 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        tests/testimage.h
 // Purpose:     Unit test helpers for dealing with wxImage.
 // Author:      Vadim Zeitlin
-// RCS-ID:      $Id$
 // Copyright:   (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -31,9 +30,10 @@ struct assertion_traits<wxImage>
 
     static std::string toString(const wxImage& image)
     {
-        return wxString::Format("image of size %d*%d",
+        return wxString::Format("image of size %d*%d with%s alpha",
                                 image.GetWidth(),
-                                image.GetHeight())
+                                image.GetHeight(),
+                                image.HasAlpha() ? "" : "out")
                 .ToStdString();
     }
 };