Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/virtual_desktop_test.cpp
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | |||||
132 | 132 | | |||
133 | void VirtualDesktopTest::testLastDesktopRemoved_data() | 133 | void VirtualDesktopTest::testLastDesktopRemoved_data() | ||
134 | { | 134 | { | ||
135 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 135 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
136 | 136 | | |||
137 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | 137 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | ||
138 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | 138 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | ||
139 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | 139 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | ||
140 | QTest::newRow("xdgWmBase") << Test::ShellSurfaceType::XdgShellStable; | ||||
140 | } | 141 | } | ||
141 | 142 | | |||
142 | void VirtualDesktopTest::testLastDesktopRemoved() | 143 | void VirtualDesktopTest::testLastDesktopRemoved() | ||
143 | { | 144 | { | ||
144 | // first create a new desktop | 145 | // first create a new desktop | ||
145 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | 146 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | ||
146 | VirtualDesktopManager::self()->setCount(2); | 147 | VirtualDesktopManager::self()->setCount(2); | ||
147 | QCOMPARE(VirtualDesktopManager::self()->count(), 2u); | 148 | QCOMPARE(VirtualDesktopManager::self()->count(), 2u); | ||
Show All 29 Lines | |||||
177 | 178 | | |||
178 | void VirtualDesktopTest::testWindowOnMultipleDesktops_data() | 179 | void VirtualDesktopTest::testWindowOnMultipleDesktops_data() | ||
179 | { | 180 | { | ||
180 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 181 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
181 | 182 | | |||
182 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | 183 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | ||
183 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | 184 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | ||
184 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | 185 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | ||
186 | QTest::newRow("xdgWmBase") << Test::ShellSurfaceType::XdgShellStable; | ||||
185 | } | 187 | } | ||
186 | 188 | | |||
187 | void VirtualDesktopTest::testWindowOnMultipleDesktops() | 189 | void VirtualDesktopTest::testWindowOnMultipleDesktops() | ||
188 | { | 190 | { | ||
189 | // first create two new desktops | 191 | // first create two new desktops | ||
190 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | 192 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | ||
191 | VirtualDesktopManager::self()->setCount(3); | 193 | VirtualDesktopManager::self()->setCount(3); | ||
192 | QCOMPARE(VirtualDesktopManager::self()->count(), 3u); | 194 | QCOMPARE(VirtualDesktopManager::self()->count(), 3u); | ||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
266 | 268 | | |||
267 | void VirtualDesktopTest::testRemoveDesktopWithWindow_data() | 269 | void VirtualDesktopTest::testRemoveDesktopWithWindow_data() | ||
268 | { | 270 | { | ||
269 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 271 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
270 | 272 | | |||
271 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | 273 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | ||
272 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | 274 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | ||
273 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | 275 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | ||
276 | QTest::newRow("xdgWmBase") << Test::ShellSurfaceType::XdgShellStable; | ||||
274 | } | 277 | } | ||
275 | 278 | | |||
276 | void VirtualDesktopTest::testRemoveDesktopWithWindow() | 279 | void VirtualDesktopTest::testRemoveDesktopWithWindow() | ||
277 | { | 280 | { | ||
278 | // first create two new desktops | 281 | // first create two new desktops | ||
279 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | 282 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | ||
280 | VirtualDesktopManager::self()->setCount(3); | 283 | VirtualDesktopManager::self()->setCount(3); | ||
281 | QCOMPARE(VirtualDesktopManager::self()->count(), 3u); | 284 | QCOMPARE(VirtualDesktopManager::self()->count(), 3u); | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |