]> git.saurik.com Git - wxWidgets.git/commitdiff
provide more info when a check for native font [user] info fails
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 13 Apr 2009 09:03:45 +0000 (09:03 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 13 Apr 2009 09:03:45 +0000 (09:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/font/fonttest.cpp

index 4944921748291a8fa74caa75b5c25b10ad219d3f..d98c48c0e085da92eaa04e7e29c1656e2574fb2f 100644 (file)
@@ -109,7 +109,9 @@ void FontTestCase::GetSet()
         wxFont temp;
         CPPUNIT_ASSERT( temp.SetNativeFontInfo(nid) );
         CPPUNIT_ASSERT( temp.IsOk() );
-        CPPUNIT_ASSERT( temp == test );
+        WX_ASSERT_MESSAGE( 
+            ("Test #%lu failed; native info desc was \"%s\"", n, nid),
+            temp == test );
 
         
         // test Get/SetNativeFontInfoUserDesc 
@@ -124,7 +126,9 @@ void FontTestCase::GetSet()
 
 #ifdef __WXGTK__
         // Pango saves/restores all font info in the user-friendly string:
-        CPPUNIT_ASSERT( temp2 == test );
+        WX_ASSERT_MESSAGE( 
+            ("Test #%lu failed; native info user desc was \"%s\"", n, niud),
+            temp2 == test );
 #else
         // NOTE: as documented GetNativeFontInfoUserDesc/SetNativeFontInfoUserDesc
         //       are not granted to save/restore all font info.