summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-05-02 14:37:02 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-05-25 07:46:52 +0000
commit1eba531d5b62bc171839d71e4a745ab9cdaaf907 (patch)
treea2409c663aeea41fe61f1dc567009c4b561cb327 /tests
parent40068e5bb5511f5ccbc28e1edd1ee26b91d0c1ec (diff)
downloadqtwayland-1eba531d5b62bc171839d71e4a745ab9cdaaf907.tar.gz
Client tests: Remove redundant cleanup testing
We already have a QTRY_VERIFY(!compositor->surface()); in tst_WaylandClient::cleanup() which is already run after every test. The assertions from tests that are explicitly testing surface creation and destruction have not been removed. Change-Id: I21d574f5fe33d4e4c309dcfb2f50bde447238df2 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/client/client/tst_client.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/auto/client/client/tst_client.cpp b/tests/auto/client/client/tst_client.cpp
index 05b8bac1..978a9d5e 100644
--- a/tests/auto/client/client/tst_client.cpp
+++ b/tests/auto/client/client/tst_client.cpp
@@ -263,9 +263,6 @@ void tst_WaylandClient::windowScreens()
compositor->sendRemoveOutput(secondOutput);
QTRY_COMPARE(QGuiApplication::screens().size(), 1);
QCOMPARE(window.screen(), primaryScreen);
-
- window.destroy();
- QTRY_VERIFY(!compositor->surface());
}
void tst_WaylandClient::removePrimaryScreen()
@@ -297,9 +294,6 @@ void tst_WaylandClient::removePrimaryScreen()
QTRY_COMPARE(window.mousePressEventCount, 1);
compositor->sendMouseRelease(surface);
QTRY_COMPARE(window.mouseReleaseEventCount, 1);
-
- window.destroy();
- QTRY_VERIFY(!compositor->surface());
}
void tst_WaylandClient::createDestroyWindow()
@@ -516,8 +510,6 @@ void tst_WaylandClient::dontCrashOnMultipleCommits()
}
delete window;
-
- QTRY_VERIFY(!compositor->surface());
}
void tst_WaylandClient::hiddenTransientParent()