use a different known good face name under non-MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a15239a6fd
commit
3f7c8a8762
1 changed files with 9 additions and 1 deletions
|
|
@ -109,7 +109,15 @@ void FontTestCase::GetSet()
|
|||
CPPUNIT_ASSERT( !test.SetFaceName("a dummy face name") );
|
||||
CPPUNIT_ASSERT( !test.IsOk() );
|
||||
|
||||
CPPUNIT_ASSERT( test.SetFaceName("Arial") );
|
||||
// if the call to SetFaceName() below fails on your system/port,
|
||||
// consider adding another branch to this #if
|
||||
#if defined(__WXMSW__) || defined(__WXOSX__)
|
||||
static const char *knownGoodFaceName = "Arial";
|
||||
#else
|
||||
static const char *knownGoodFaceName = "Fixed";
|
||||
#endif
|
||||
|
||||
CPPUNIT_ASSERT( test.SetFaceName(knownGoodFaceName) );
|
||||
CPPUNIT_ASSERT( test.IsOk() );
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue