Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/toplevel_open_close_animation_test.cpp
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | 164 | { | |||
---|---|---|---|---|---|
203 | 203 | | |||
204 | // Destroy the popup, it should not be animated. | 204 | // Destroy the popup, it should not be animated. | ||
205 | QSignalSpy popupClosedSpy(popup, &ShellClient::windowClosed); | 205 | QSignalSpy popupClosedSpy(popup, &ShellClient::windowClosed); | ||
206 | QVERIFY(popupClosedSpy.isValid()); | 206 | QVERIFY(popupClosedSpy.isValid()); | ||
207 | popupShellSurface.reset(); | 207 | popupShellSurface.reset(); | ||
208 | popupSurface.reset(); | 208 | popupSurface.reset(); | ||
209 | QVERIFY(popupClosedSpy.wait()); | 209 | QVERIFY(popupClosedSpy.wait()); | ||
210 | QVERIFY(!effect->isActive()); | 210 | QVERIFY(!effect->isActive()); | ||
211 | | ||||
212 | // Destroy the main window. | ||||
213 | mainWindowSurface.reset(); | ||||
214 | QVERIFY(Test::waitForWindowDestroyed(mainWindow)); | ||||
211 | } | 215 | } | ||
212 | 216 | | |||
213 | WAYLANDTEST_MAIN(ToplevelOpenCloseAnimationTest) | 217 | WAYLANDTEST_MAIN(ToplevelOpenCloseAnimationTest) | ||
214 | #include "toplevel_open_close_animation_test.moc" | 218 | #include "toplevel_open_close_animation_test.moc" |