[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
This commit is contained in:
Vlad Zagorodniy 2019-01-07 14:35:44 +02:00
parent d288276269
commit 3f13a493c8

View file

@ -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)