Make the assert in SettingsTestCase::GlobalFonts() more informative.

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
This commit is contained in:
Vadim Zeitlin
2009-11-24 00:01:51 +00:00
parent 92a2a0ef91
commit 009f89f75d

View 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)
);
}
}
}