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