[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:
parent
d288276269
commit
3f13a493c8
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ void ToplevelOpenCloseAnimationTest::testDontAnimatePopups()
|
||||||
popupSurface.reset();
|
popupSurface.reset();
|
||||||
QVERIFY(popupClosedSpy.wait());
|
QVERIFY(popupClosedSpy.wait());
|
||||||
QVERIFY(!effect->isActive());
|
QVERIFY(!effect->isActive());
|
||||||
|
|
||||||
|
// Destroy the main window.
|
||||||
|
mainWindowSurface.reset();
|
||||||
|
QVERIFY(Test::waitForWindowDestroyed(mainWindow));
|
||||||
}
|
}
|
||||||
|
|
||||||
WAYLANDTEST_MAIN(ToplevelOpenCloseAnimationTest)
|
WAYLANDTEST_MAIN(ToplevelOpenCloseAnimationTest)
|
||||||
|
|
Loading…
Reference in a new issue