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() {