Skip all wxPaintDC tests for clipping on wxOSX

All test are known to fail because there is a problem with effectively
repainting a window in the testing environment.
This commit is contained in:
Artur Wieczorek 2022-12-18 15:26:22 +01:00 committed by AW
parent e09bf951b9
commit 6ba55b96b8

View file

@ -3906,6 +3906,9 @@ TEST_CASE("ClippingBoxTestCase::wxSVGFileDC", "[clip][dc][svgdc]")
TEST_CASE("ClippingBoxTestCase::wxPaintDC", "[clip][dc][paintdc]")
{
#ifdef __WXOSX__
WARN("Skipping tests known to fail in wxOSX");
#else
wxBitmap bmp; // We need wxNullBitmap because we can't check the output
// Ensure window is shown and large enough for testing
wxTheApp->GetTopWindow()->Raise();
@ -4260,6 +4263,7 @@ TEST_CASE("ClippingBoxTestCase::wxPaintDC", "[clip][dc][paintdc]")
testWin->Refresh();
testWin->Update();
CHECK(paintExecuted == true);
#endif // !__WXOSX__
}
#if wxUSE_GRAPHICS_CONTEXT