Fix flakiness in xdg-shell v6 client tests

Change-Id: I4b63edef6ea130ad7f7f294bf0903d84b8db4723
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Johan Klokkhammer Helsing 2018-05-28 11:39:12 +02:00 committed by Johan Helsing
parent 389cc81a99
commit 4183147e80

View File

@ -169,6 +169,10 @@ void tst_WaylandClientXdgShellV6::showMinimized()
window.showMinimized(); window.showMinimized();
QCOMPARE(window.windowStates(), Qt::WindowMinimized); // should return minimized until QCOMPARE(window.windowStates(), Qt::WindowMinimized); // should return minimized until
QTRY_COMPARE(window.windowStates(), Qt::WindowNoState); // rejected by handleWindowStateChanged QTRY_COMPARE(window.windowStates(), Qt::WindowNoState); // rejected by handleWindowStateChanged
// Make sure the window on the compositor side is/was created here, and not after the test
// finishes, as that may mess up for later tests.
QTRY_VERIFY(m_compositor->xdgToplevelV6());
} }
void tst_WaylandClientXdgShellV6::setMinimized() void tst_WaylandClientXdgShellV6::setMinimized()