Wait for window.isExposed() in flushUnconfiguredXdgSurface() test

We generally don't expect the window to react synchronously, as shown in
other tests that already have the QTRY_VERIFY(window.isExposed()). Add
the waiting behavior to flushUnconfiguredXdgSurface() in order to avoid
flakiness.

Change-Id: I5824be0a806ec4bd0df30b3187a6549fd81d16be
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Ulf Hermann 2019-12-12 11:07:00 +01:00
parent 1f54136d65
commit 2a13fba24b

View File

@ -403,7 +403,7 @@ void tst_WaylandClientXdgShellV6::flushUnconfiguredXdgSurface()
m_compositor->sendShellSurfaceConfigure(surface);
QTRY_COMPARE(surface->image.size(), window.frameGeometry().size());
QTRY_COMPARE(surface->image.pixel(window.frameMargins().left(), window.frameMargins().top()), color.rgba());
QVERIFY(window.isExposed());
QTRY_VERIFY(window.isExposed());
}
void tst_WaylandClientXdgShellV6::dontSpamExposeEvents()