From: Vadim Zeitlin Date: Mon, 4 Oct 2010 10:41:39 +0000 (+0000) Subject: Fix tests compilation with wxUSE_TOOLTIPS==0 as in wxX11. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa38073670aed659204460bb7484bc16c30f5b1b?ds=inline Fix tests compilation with wxUSE_TOOLTIPS==0 as in wxX11. Unit test suite didn't compile in wxX11 build because it doesn't support tooltips, just disable the relevant test then. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/controls/windowtest.cpp b/tests/controls/windowtest.cpp index 971160269e..2794da3f37 100644 --- a/tests/controls/windowtest.cpp +++ b/tests/controls/windowtest.cpp @@ -41,7 +41,9 @@ private: CPPUNIT_TEST( FocusEvent ); CPPUNIT_TEST( Mouse ); CPPUNIT_TEST( Properties ); +#if wxUSE_TOOLTIPS CPPUNIT_TEST( ToolTip ); +#endif // wxUSE_TOOLTIPS CPPUNIT_TEST( Help ); CPPUNIT_TEST( Parent ); CPPUNIT_TEST( Siblings ); @@ -58,7 +60,9 @@ private: void FocusEvent(); void Mouse(); void Properties(); +#if wxUSE_TOOLTIPS void ToolTip(); +#endif // wxUSE_TOOLTIPS void Help(); void Parent(); void Siblings(); @@ -201,6 +205,7 @@ void WindowTestCase::Properties() CPPUNIT_ASSERT_EQUAL(wxID_HIGHEST + 10, m_window->GetId()); } +#if wxUSE_TOOLTIPS void WindowTestCase::ToolTip() { CPPUNIT_ASSERT(!m_window->GetToolTip()); @@ -222,6 +227,7 @@ void WindowTestCase::ToolTip() CPPUNIT_ASSERT_EQUAL(tip, m_window->GetToolTip()); CPPUNIT_ASSERT_EQUAL("other tip", m_window->GetToolTipText()); } +#endif // wxUSE_TOOLTIPS void WindowTestCase::Help() {