Try to ensure that testing window is shown
wxClientDC tests are reliable only if testing window is visible.
This commit is contained in:
parent
ab2a578475
commit
c3eb9cbaa5
1 changed files with 3 additions and 1 deletions
|
|
@ -3907,7 +3907,9 @@ TEST_CASE("ClippingBoxTestCase::wxSVGFileDC", "[clip][dc][svgdc]")
|
||||||
TEST_CASE("ClippingBoxTestCase::wxClientDC", "[clip][dc][clientdc]")
|
TEST_CASE("ClippingBoxTestCase::wxClientDC", "[clip][dc][clientdc]")
|
||||||
{
|
{
|
||||||
wxBitmap bmp; // We need wxNullBitmap because we can't check the output
|
wxBitmap bmp; // We need wxNullBitmap because we can't check the output
|
||||||
// Ensure window is large enough for testing
|
// Ensure window is shown and large enough for testing
|
||||||
|
wxTheApp->GetTopWindow()->Raise();
|
||||||
|
REQUIRE(wxTheApp->GetTopWindow()->IsShown());
|
||||||
wxSize winSize = wxTheApp->GetTopWindow()->GetSize();
|
wxSize winSize = wxTheApp->GetTopWindow()->GetSize();
|
||||||
winSize.x = wxMax(winSize.x, s_dcSize.x + 50);
|
winSize.x = wxMax(winSize.x, s_dcSize.x + 50);
|
||||||
winSize.y = wxMax(winSize.y, s_dcSize.y + 50);
|
winSize.y = wxMax(winSize.y, s_dcSize.y + 50);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue