]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/fontmap/fontmaptest.cpp
Better fix
[wxWidgets.git] / tests / fontmap / fontmaptest.cpp
index b267f0d04ed7102dc2a424be005282ac5119815c..ea36961c174c80b74fb518441d9af69eea310e38 100644 (file)
@@ -5,13 +5,14 @@
 // Created:     14.02.04
 // RCS-ID:      $Id$
 // Copyright:   (c) 2003 TT-Solutions
 // Created:     14.02.04
 // RCS-ID:      $Id$
 // Copyright:   (c) 2003 TT-Solutions
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
 
 ///////////////////////////////////////////////////////////////////////////////
 
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
 
-#include "wx/wxprec.h"
+#include "testprec.h"
 
 #ifdef __BORLANDC__
     #pragma hdrstop
 
 #ifdef __BORLANDC__
     #pragma hdrstop
@@ -25,8 +26,6 @@
 
 #include "wx/fontmap.h"
 
 
 #include "wx/fontmap.h"
 
-#include "wx/cppunit.h"
-
 // ----------------------------------------------------------------------------
 // test class
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // test class
 // ----------------------------------------------------------------------------
@@ -93,7 +92,7 @@ void FontMapperTestCase::NamesAndDesc()
 
     static const wxChar *descriptions[] =
     {
 
     static const wxChar *descriptions[] =
     {
-        // some vali charsets
+        // some valid charsets
         _T("Default encoding"                  ),
         _T("Western European (ISO-8859-1)"     ),
         _T("Indian (ISO-8859-12)"              ),
         _T("Default encoding"                  ),
         _T("Western European (ISO-8859-1)"     ),
         _T("Indian (ISO-8859-12)"              ),
@@ -111,9 +110,9 @@ void FontMapperTestCase::NamesAndDesc()
 
     for ( size_t n = 0; n < WXSIZEOF(charsets); n++ )
     {
 
     for ( size_t n = 0; n < WXSIZEOF(charsets); n++ )
     {
-        wxFontEncoding enc = wxFontMapper::Get()->CharsetToEncoding(charsets[n]);
-        CPPUNIT_ASSERT( wxFontMapper::Get()->GetEncodingName(enc) == names[n] );
-        CPPUNIT_ASSERT( wxFontMapper::Get()->GetEncodingDescription(enc) == descriptions[n] );
+        wxFontEncoding enc = wxFontMapperBase::Get()->CharsetToEncoding(charsets[n]);
+        CPPUNIT_ASSERT( wxFontMapperBase::Get()->GetEncodingName(enc).CmpNoCase(names[n]) == 0 );
+        CPPUNIT_ASSERT( wxFontMapperBase::Get()->GetEncodingDescription(enc) == descriptions[n] );
     }
 }
 
     }
 }