Changeset View
Changeset View
Standalone View
Standalone View
autotests/test_builtin_effectloader.cpp
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 76 | { | |||
---|---|---|---|---|---|
108 | QTest::newRow("ShowFps") << QStringLiteral("showfps") << true; | 108 | QTest::newRow("ShowFps") << QStringLiteral("showfps") << true; | ||
109 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true; | 109 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true; | ||
110 | QTest::newRow("Slide") << QStringLiteral("slide") << true; | 110 | QTest::newRow("Slide") << QStringLiteral("slide") << true; | ||
111 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true; | 111 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true; | ||
112 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true; | 112 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true; | ||
113 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true; | 113 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true; | ||
114 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << true; | 114 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << true; | ||
115 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true; | 115 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true; | ||
116 | QTest::newRow("Touchpoints") << QStringLiteral("touchpoints") << true; | ||||
116 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true; | 117 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true; | ||
117 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true; | 118 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true; | ||
118 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << true; | 119 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << true; | ||
119 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true; | 120 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true; | ||
120 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false; | 121 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false; | ||
121 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false; | 122 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false; | ||
122 | QTest::newRow("Fade - Scripted + kwin4_effect") << QStringLiteral("kwin4_effect_fade") << false; | 123 | QTest::newRow("Fade - Scripted + kwin4_effect") << QStringLiteral("kwin4_effect_fade") << false; | ||
123 | } | 124 | } | ||
Show All 39 Lines | 138 | expectedEffects << QStringLiteral("blur") | |||
163 | << QStringLiteral("showfps") | 164 | << QStringLiteral("showfps") | ||
164 | << QStringLiteral("showpaint") | 165 | << QStringLiteral("showpaint") | ||
165 | << QStringLiteral("slide") | 166 | << QStringLiteral("slide") | ||
166 | << QStringLiteral("slideback") | 167 | << QStringLiteral("slideback") | ||
167 | << QStringLiteral("slidingpopups") | 168 | << QStringLiteral("slidingpopups") | ||
168 | << QStringLiteral("snaphelper") | 169 | << QStringLiteral("snaphelper") | ||
169 | << QStringLiteral("startupfeedback") | 170 | << QStringLiteral("startupfeedback") | ||
170 | << QStringLiteral("thumbnailaside") | 171 | << QStringLiteral("thumbnailaside") | ||
172 | << QStringLiteral("touchpoints") | ||||
171 | << QStringLiteral("trackmouse") | 173 | << QStringLiteral("trackmouse") | ||
172 | << QStringLiteral("windowgeometry") | 174 | << QStringLiteral("windowgeometry") | ||
173 | << QStringLiteral("wobblywindows") | 175 | << QStringLiteral("wobblywindows") | ||
174 | << QStringLiteral("zoom"); | 176 | << QStringLiteral("zoom"); | ||
175 | 177 | | |||
176 | KWin::BuiltInEffectLoader loader; | 178 | KWin::BuiltInEffectLoader loader; | ||
177 | QStringList result = loader.listOfKnownEffects(); | 179 | QStringList result = loader.listOfKnownEffects(); | ||
178 | QCOMPARE(result.size(), expectedEffects.size()); | 180 | QCOMPARE(result.size(), expectedEffects.size()); | ||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 188 | { | |||
242 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true << xc << true; | 244 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true << xc << true; | ||
243 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc << true; | 245 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc << true; | ||
244 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc << true; | 246 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc << true; | ||
245 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc << true; | 247 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc << true; | ||
246 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc << true; | 248 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc << true; | ||
247 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc << true; | 249 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc << true; | ||
248 | QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc << true; | 250 | QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc << true; | ||
249 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true << xc << true; | 251 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true << xc << true; | ||
252 | QTest::newRow("TouchPoints") << QStringLiteral("touchpoints") << true << xc << true; | ||||
250 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc << true; | 253 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc << true; | ||
251 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc << true; | 254 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc << true; | ||
252 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc << true; | 255 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc << true; | ||
253 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc << true; | 256 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc << true; | ||
254 | QTest::newRow("WobblyWindows-GL-no-anim") << QStringLiteral("wobblywindows") << false << oc << false; | 257 | QTest::newRow("WobblyWindows-GL-no-anim") << QStringLiteral("wobblywindows") << false << oc << false; | ||
255 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc << true; | 258 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc << true; | ||
256 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc << true; | 259 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc << true; | ||
257 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false << xc << true; | 260 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false << xc << true; | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 330 | // QTest::newRow("ShowFps") << QStringLiteral("showfps") << true << xc; | |||
329 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc; | 332 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc; | ||
330 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc; | 333 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc; | ||
331 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc; | 334 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc; | ||
332 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc; | 335 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc; | ||
333 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc; | 336 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc; | ||
334 | // Tries to load shader and makes our test abort | 337 | // Tries to load shader and makes our test abort | ||
335 | // QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc; | 338 | // QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc; | ||
336 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true << xc; | 339 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true << xc; | ||
340 | QTest::newRow("Touchpoints") << QStringLiteral("touchpoints") << true << xc; | ||||
337 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc; | 341 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc; | ||
338 | // TODO: Accesses EffectFrame and crashes | 342 | // TODO: Accesses EffectFrame and crashes | ||
339 | // QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc; | 343 | // QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc; | ||
340 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc; | 344 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc; | ||
341 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc; | 345 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc; | ||
342 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc; | 346 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc; | ||
343 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc; | 347 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc; | ||
344 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false << xc; | 348 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false << xc; | ||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |