aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Zagorodniy <[email protected]>2019-01-07 14:35:44 +0200
committerVlad Zagorodniy <[email protected]>2019-01-07 15:09:22 +0200
commit3f13a493c8def6978f596f75c22fa7121dc896ab (patch)
tree2911fdc331b614af72fb9b2c843dc010d116b497
parentd28827626931ed9f8fbfd618bbdcdf3fdce6a5e6 (diff)
[autotests] Destroy main window in ToplevelOpenCloseAnimationTest::testDontAnimatePopups
Summary: Be nice and destroy all created windows in testDontAnimatePopups. Test Plan: The test still passes. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18037
-rw-r--r--autotests/integration/effects/toplevel_open_close_animation_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/autotests/integration/effects/toplevel_open_close_animation_test.cpp b/autotests/integration/effects/toplevel_open_close_animation_test.cpp
index 87dfe29..0fe95c6 100644
--- a/autotests/integration/effects/toplevel_open_close_animation_test.cpp
+++ b/autotests/integration/effects/toplevel_open_close_animation_test.cpp
@@ -208,6 +208,10 @@ void ToplevelOpenCloseAnimationTest::testDontAnimatePopups()
popupSurface.reset();
QVERIFY(popupClosedSpy.wait());
QVERIFY(!effect->isActive());
+
+ // Destroy the main window.
+ mainWindowSurface.reset();
+ QVERIFY(Test::waitForWindowDestroyed(mainWindow));
}
WAYLANDTEST_MAIN(ToplevelOpenCloseAnimationTest)