diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-04-10 12:47:40 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-04-11 13:59:02 +0000 |
commit | 3f40adc92f5eefed7860a09ddbbc1eae07ba1de6 (patch) | |
tree | 7ef04428dd0fb42d6c56ec7c88ad0cc4cd8e794b /tests | |
parent | 5ef85a13da557e81a598f9a867817dfcba25ef98 (diff) | |
download | qtwayland-3f40adc92f5eefed7860a09ddbbc1eae07ba1de6.tar.gz |
tst_xdgshell::showMinimized: Really make sure the window was created
The surface(), may be a leftover cursor surface from earlier tests. Check for
an xdgSurface instead, as those are verified to be cleaned up between tests.
Change-Id: I6a2b402130814e896d335787fcb90fd8d57cafb7
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/client/xdgshell/tst_xdgshell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/client/xdgshell/tst_xdgshell.cpp b/tests/auto/client/xdgshell/tst_xdgshell.cpp index 6efffc8a..dc463e38 100644 --- a/tests/auto/client/xdgshell/tst_xdgshell.cpp +++ b/tests/auto/client/xdgshell/tst_xdgshell.cpp @@ -62,7 +62,7 @@ void tst_xdgshell::showMinimized() // 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. - QCOMPOSITOR_TRY_VERIFY(surface()); + QCOMPOSITOR_TRY_VERIFY(xdgSurface()); QVERIFY(!window.isExposed()); } |