Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/idle_inhibition_test.cpp
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 78 | { | |||
---|---|---|---|---|---|
81 | VirtualDesktopManager::self()->setCount(1); | 81 | VirtualDesktopManager::self()->setCount(1); | ||
82 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | 82 | QCOMPARE(VirtualDesktopManager::self()->count(), 1u); | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void TestIdleInhibition::testInhibit_data() | 85 | void TestIdleInhibition::testInhibit_data() | ||
86 | { | 86 | { | ||
87 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | 87 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | ||
88 | 88 | | |||
89 | QTest::newRow("xdgShellV5") << Test::XdgShellSurfaceType::XdgShellV5; | | |||
90 | QTest::newRow("xdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; | 89 | QTest::newRow("xdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; | ||
91 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | 90 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | ||
92 | } | 91 | } | ||
93 | 92 | | |||
94 | void TestIdleInhibition::testInhibit() | 93 | void TestIdleInhibition::testInhibit() | ||
95 | { | 94 | { | ||
96 | auto idle = waylandServer()->display()->findChild<IdleInterface*>(); | 95 | auto idle = waylandServer()->display()->findChild<IdleInterface*>(); | ||
97 | QVERIFY(idle); | 96 | QVERIFY(idle); | ||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |