]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/misc/settings.cpp
Remove USE_GDIPLUS setting from bakefiles.
[wxWidgets.git] / tests / misc / settings.cpp
index 49b072e1fc846653a38812f250e716a58bbe1b61..09174d2888c35af8a65105a97b2ed05c143c4753 100644 (file)
@@ -106,7 +106,7 @@ void SettingsTestCase::GlobalColours()
 
 void SettingsTestCase::GlobalFonts()
 {
-    wxFont font[] =
+    const wxFont font[] =
     {
         *wxNORMAL_FONT,
         *wxSMALL_FONT,
@@ -115,8 +115,18 @@ void SettingsTestCase::GlobalFonts()
     };
 
     for (unsigned int i=0; i < WXSIZEOF(font); i++)
-        CPPUNIT_ASSERT( font[i].IsOk() && 
-                        wxFontEnumerator::IsValidFacename(font[i].GetFaceName()) );
+    {
+        CPPUNIT_ASSERT( font[i].IsOk() );
+
+        const wxString facename = font[i].GetFaceName();
+        if ( !facename.empty() )
+        {
+            WX_ASSERT_MESSAGE(
+                ("font #%u: facename \"%s\" is invalid", i, facename),
+                wxFontEnumerator::IsValidFacename(facename)
+            );
+        }
+    }
 }
 
 void SettingsTestCase::GlobalBrushes()