Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/maximize_animation_test.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 89 | { | |||
---|---|---|---|---|---|
92 | effectsImpl->unloadAllEffects(); | 92 | effectsImpl->unloadAllEffects(); | ||
93 | QVERIFY(effectsImpl->loadedEffects().isEmpty()); | 93 | QVERIFY(effectsImpl->loadedEffects().isEmpty()); | ||
94 | 94 | | |||
95 | Test::destroyWaylandConnection(); | 95 | Test::destroyWaylandConnection(); | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | void MaximizeAnimationTest::testMaximizeRestore_data() | 98 | void MaximizeAnimationTest::testMaximizeRestore_data() | ||
99 | { | 99 | { | ||
100 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 100 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | ||
101 | 101 | | |||
102 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | 102 | QTest::newRow("xdgShellV5") << Test::XdgShellSurfaceType::XdgShellV5; | ||
103 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | 103 | QTest::newRow("xdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; | ||
104 | QTest::newRow("xdgWmBase") << Test::ShellSurfaceType::XdgShellStable; | 104 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | void MaximizeAnimationTest::testMaximizeRestore() | 107 | void MaximizeAnimationTest::testMaximizeRestore() | ||
108 | { | 108 | { | ||
109 | // This test verifies that the maximize effect animates a client | 109 | // This test verifies that the maximize effect animates a client | ||
110 | // when it's maximized or restored. | 110 | // when it's maximized or restored. | ||
111 | 111 | | |||
112 | using namespace KWayland::Client; | 112 | using namespace KWayland::Client; | ||
113 | 113 | | |||
114 | // Create the test client. | 114 | // Create the test client. | ||
115 | QScopedPointer<Surface> surface(Test::createSurface()); | 115 | QScopedPointer<Surface> surface(Test::createSurface()); | ||
116 | QVERIFY(!surface.isNull()); | 116 | QVERIFY(!surface.isNull()); | ||
117 | 117 | | |||
118 | QFETCH(Test::ShellSurfaceType, type); | 118 | QFETCH(Test::XdgShellSurfaceType, type); | ||
119 | QScopedPointer<XdgShellSurface> shellSurface(createXdgShellSurface(type, surface.data(), nullptr, Test::CreationSetup::CreateOnly)); | 119 | QScopedPointer<XdgShellSurface> shellSurface(createXdgShellSurface(type, surface.data(), nullptr, Test::CreationSetup::CreateOnly)); | ||
120 | 120 | | |||
121 | // Wait for the initial configure event. | 121 | // Wait for the initial configure event. | ||
122 | XdgShellSurface::States states; | 122 | XdgShellSurface::States states; | ||
123 | QSignalSpy configureRequestedSpy(shellSurface.data(), &XdgShellSurface::configureRequested); | 123 | QSignalSpy configureRequestedSpy(shellSurface.data(), &XdgShellSurface::configureRequested); | ||
124 | 124 | | |||
125 | surface->commit(Surface::CommitFlag::None); | 125 | surface->commit(Surface::CommitFlag::None); | ||
126 | 126 | | |||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |