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
This commit is contained in:
parent
f5b7586bfe
commit
fa38073670
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user