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:
Vadim Zeitlin
2026-07-21 19:13:54 +02:00
parent 662221abd9
commit 19ce586634
+2 -2
View File
@@ -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]")
{