Changeset View
Changeset View
Standalone View
Standalone View
autotests/themetest.cpp
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | |||||
203 | 203 | | |||
204 | void ThemeTest::testCompositingChange() | 204 | void ThemeTest::testCompositingChange() | ||
205 | { | 205 | { | ||
206 | // this test simulates the compositing change on X11 | 206 | // this test simulates the compositing change on X11 | ||
207 | #if HAVE_X11 | 207 | #if HAVE_X11 | ||
208 | if (!KWindowSystem::isPlatformX11()) { | 208 | if (!KWindowSystem::isPlatformX11()) { | ||
209 | QSKIP("Test is only for X11"); | 209 | QSKIP("Test is only for X11"); | ||
210 | } | 210 | } | ||
211 | QVERIFY(!KWindowSystem::compositingActive()); | 211 | | ||
212 | if (KWindowSystem::compositingActive()) { | ||||
213 | QSKIP("Test can only be performed without a running window manager"); | ||||
214 | } | ||||
212 | 215 | | |||
213 | // image path should give us an opaque variant | 216 | // image path should give us an opaque variant | ||
214 | QVERIFY(m_theme->imagePath(QStringLiteral("element")).endsWith(QLatin1String("/desktoptheme/testtheme/opaque/element.svg"))); | 217 | QVERIFY(m_theme->imagePath(QStringLiteral("element")).endsWith(QLatin1String("/desktoptheme/testtheme/opaque/element.svg"))); | ||
215 | 218 | | |||
216 | QSignalSpy themeChangedSpy(m_theme, &Plasma::Theme::themeChanged); | 219 | QSignalSpy themeChangedSpy(m_theme, &Plasma::Theme::themeChanged); | ||
217 | QVERIFY(themeChangedSpy.isValid()); | 220 | QVERIFY(themeChangedSpy.isValid()); | ||
218 | 221 | | |||
219 | // fake the compositor | 222 | // fake the compositor | ||
Show All 27 Lines |