summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/xdgshell
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-04-10 12:47:40 +0200
committerJohan Helsing <johan.helsing@qt.io>2019-04-11 13:59:02 +0000
commit3f40adc92f5eefed7860a09ddbbc1eae07ba1de6 (patch)
tree7ef04428dd0fb42d6c56ec7c88ad0cc4cd8e794b /tests/auto/client/xdgshell
parent5ef85a13da557e81a598f9a867817dfcba25ef98 (diff)
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/auto/client/xdgshell')
-rw-r--r--tests/auto/client/xdgshell/tst_xdgshell.cpp2
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());
}