Disable wxFont::SetStrikethrough() test under wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Jul 2013 01:32:00 +0000 (01:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Jul 2013 01:32:00 +0000 (01:32 +0000)
Strike through support is not available in wxFont under this platform, as
documented.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/font/fonttest.cpp

index bf1940320700a4179c80e6a052edcc6f13c52a44..165abf20840ff6967c5f409ef4bb34638b53f97e 100644 (file)
@@ -205,9 +205,12 @@ void FontTestCase::GetSet()
 
         // test Get/SetStrikethrough()
 
+        // Strike through support not implemented in wxOSX currently.
+#ifndef __WXOSX__
         test.SetStrikethrough(true);
         CPPUNIT_ASSERT( test.IsOk() );
         CPPUNIT_ASSERT_EQUAL( true, test.GetStrikethrough() );
+#endif // !__WXOSX__
 
 
         // test Get/SetWeight()