Changeset View
Changeset View
Standalone View
Standalone View
autotests/kwindowinfox11test.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | |||||
192 | { | 192 | { | ||
193 | QTest::addColumn<NET::States>("state"); | 193 | QTest::addColumn<NET::States>("state"); | ||
194 | 194 | | |||
195 | QTest::newRow("max") << NET::States(NET::Max); | 195 | QTest::newRow("max") << NET::States(NET::Max); | ||
196 | QTest::newRow("maxHoriz") << NET::States(NET::MaxHoriz); | 196 | QTest::newRow("maxHoriz") << NET::States(NET::MaxHoriz); | ||
197 | QTest::newRow("shaded") << NET::States(NET::Shaded); | 197 | QTest::newRow("shaded") << NET::States(NET::Shaded); | ||
198 | QTest::newRow("skipTaskbar") << NET::States(NET::SkipTaskbar); | 198 | QTest::newRow("skipTaskbar") << NET::States(NET::SkipTaskbar); | ||
199 | QTest::newRow("skipPager") << NET::States(NET::SkipPager); | 199 | QTest::newRow("skipPager") << NET::States(NET::SkipPager); | ||
200 | QTest::newRow("skipSwitcher") << NET::States(NET::SkipSwitcher); | | |||
201 | QTest::newRow("keep above") << NET::States(NET::KeepAbove); | 200 | QTest::newRow("keep above") << NET::States(NET::KeepAbove); | ||
202 | QTest::newRow("keep below") << NET::States(NET::KeepBelow); | 201 | QTest::newRow("keep below") << NET::States(NET::KeepBelow); | ||
203 | QTest::newRow("fullscreen") << NET::States(NET::FullScreen); | 202 | QTest::newRow("fullscreen") << NET::States(NET::FullScreen); | ||
204 | 203 | | |||
204 | NETRootInfo info(QX11Info::connection(), NET::Supported); | ||||
205 | if (info.isSupported(NET::SkipSwitcher)) { | ||||
206 | QTest::newRow("skipSwitcher") << NET::States(NET::SkipSwitcher); | ||||
207 | } | ||||
208 | | ||||
205 | // NOTE: modal, sticky and hidden cannot be tested with this variant | 209 | // NOTE: modal, sticky and hidden cannot be tested with this variant | ||
206 | // demands attention is not tested as that's already part of the first run adjustments | 210 | // demands attention is not tested as that's already part of the first run adjustments | ||
207 | } | 211 | } | ||
208 | 212 | | |||
209 | void KWindowInfoX11Test::testState() | 213 | void KWindowInfoX11Test::testState() | ||
210 | { | 214 | { | ||
211 | QFETCH(NET::States, state); | 215 | QFETCH(NET::States, state); | ||
212 | QX11Info::getTimestamp(); | 216 | QX11Info::getTimestamp(); | ||
▲ Show 20 Lines • Show All 566 Lines • Show Last 20 Lines |