]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/misc/settings.cpp
Convert wxFSW_EVENT_{WARNING,ERROR} to string correctly.
[wxWidgets.git] / tests / misc / settings.cpp
index 0c01100932df36027636af012eca1c6f6df4c043..c89fdfcfb237a27d9c1b0abfd33844ec9e53c937 100644 (file)
@@ -56,7 +56,7 @@ private:
 // register in the unnamed registry so that these tests are run by default
 CPPUNIT_TEST_SUITE_REGISTRATION( SettingsTestCase );
 
-// 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( SettingsTestCase, "SettingsTestCase" );
 
 
@@ -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)
+            );
+        }
     }
 }