Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_rules_test.cpp
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Line(s) | 253 | { | |||
---|---|---|---|---|---|
261 | VirtualDesktopManager::self()->setCount(1); | 261 | VirtualDesktopManager::self()->setCount(1); | ||
262 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | 262 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | ||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | #define TEST_DATA(name) \ | 265 | #define TEST_DATA(name) \ | ||
266 | void TestShellClientRules::name##_data() \ | 266 | void TestShellClientRules::name##_data() \ | ||
267 | { \ | 267 | { \ | ||
268 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); \ | 268 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); \ | ||
269 | QTest::newRow("XdgShellV5") << Test::XdgShellSurfaceType::XdgShellV5; \ | | |||
270 | QTest::newRow("XdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; \ | 269 | QTest::newRow("XdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; \ | ||
271 | QTest::newRow("XdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; \ | 270 | QTest::newRow("XdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; \ | ||
272 | } | 271 | } | ||
273 | 272 | | |||
274 | std::tuple<ShellClient *, Surface *, XdgShellSurface *> createWindow(Test::XdgShellSurfaceType type, const QByteArray &appId) | 273 | std::tuple<ShellClient *, Surface *, XdgShellSurface *> createWindow(Test::XdgShellSurfaceType type, const QByteArray &appId) | ||
275 | { | 274 | { | ||
276 | // Create an xdg surface. | 275 | // Create an xdg surface. | ||
277 | Surface *surface = Test::createSurface(); | 276 | Surface *surface = Test::createSurface(); | ||
▲ Show 20 Lines • Show All 4268 Lines • Show Last 20 Lines |