summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-12-12 11:07:00 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-12-12 12:14:40 +0100
commit1190a44dda397d669ce2d489ef88ab76330eacb6 (patch)
treeb31f7945036391aa65dec2b8245fb032e397f487
parent47c5f14f1f4715a7ae129969ef81649d243a30da (diff)
Wait for window.isExposed() in flushUnconfiguredXdgSurface() test5.15
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>
-rw-r--r--tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp b/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp
index e44475de..76df6eb5 100644
--- a/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp
+++ b/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp
@@ -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()