]> git.saurik.com Git - wxWidgets.git/commitdiff
Make the assert in SettingsTestCase::GlobalFonts() more informative.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Nov 2009 00:01:51 +0000 (00:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Nov 2009 00:01:51 +0000 (00:01 +0000)
Show the index of the font and the face name which was invalid.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/misc/settings.cpp

index 0c01100932df36027636af012eca1c6f6df4c043..09174d2888c35af8a65105a97b2ed05c143c4753 100644 (file)
@@ -120,7 +120,12 @@ void SettingsTestCase::GlobalFonts()
 
         const wxString facename = font[i].GetFaceName();
         if ( !facename.empty() )
-            CPPUNIT_ASSERT( wxFontEnumerator::IsValidFacename(facename) );
+        {
+            WX_ASSERT_MESSAGE(
+                ("font #%u: facename \"%s\" is invalid", i, facename),
+                wxFontEnumerator::IsValidFacename(facename)
+            );
+        }
     }
 }