mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 08:54:19 +08:00
Don't define a test case doing nothing when wxUSE_HELP==0
Just don't define this test case at all.
See #26674.
(cherry picked from commit 28dc69f8bd)
This commit is contained in:
@@ -257,10 +257,10 @@ TEST_CASE_METHOD(WindowTestCase, "Window::Mouse", "[window]")
|
||||
CHECK(!m_window->HasCapture());
|
||||
}
|
||||
|
||||
#if wxUSE_HELP
|
||||
TEST_CASE_METHOD(WindowTestCase, "Window::ContextHelpCaptureLost",
|
||||
"[window][help]")
|
||||
{
|
||||
#if wxUSE_HELP
|
||||
wxScopedPtr<ContextHelpCaptureLostTester>
|
||||
winPtr(new ContextHelpCaptureLostTester(wxTheApp->GetTopWindow()));
|
||||
ContextHelpCaptureLostTester* const win = winPtr.get();
|
||||
@@ -276,8 +276,8 @@ TEST_CASE_METHOD(WindowTestCase, "Window::ContextHelpCaptureLost",
|
||||
CHECK(state.WasCaptureLostSent());
|
||||
CHECK(!state.WasFallbackUsed());
|
||||
CHECK(!win->HasCapture());
|
||||
#endif // wxUSE_HELP
|
||||
}
|
||||
#endif // wxUSE_HELP
|
||||
|
||||
TEST_CASE_METHOD(WindowTestCase, "Window::Properties", "[window]")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user