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:
@@ -120,7 +120,12 @@ void SettingsTestCase::GlobalFonts()
|
|||||||
|
|
||||||
const wxString facename = font[i].GetFaceName();
|
const wxString facename = font[i].GetFaceName();
|
||||||
if ( !facename.empty() )
|
if ( !facename.empty() )
|
||||||
CPPUNIT_ASSERT( wxFontEnumerator::IsValidFacename(facename) );
|
{
|
||||||
|
WX_ASSERT_MESSAGE(
|
||||||
|
("font #%u: facename \"%s\" is invalid", i, facename),
|
||||||
|
wxFontEnumerator::IsValidFacename(facename)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user