Changeset View
Changeset View
Standalone View
Standalone View
autotests/test_builtin_effectloader.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 78 | { | |||
---|---|---|---|---|---|
107 | QTest::newRow("Sheet") << QStringLiteral("sheet") << true; | 107 | QTest::newRow("Sheet") << QStringLiteral("sheet") << true; | ||
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; | | |||
116 | QTest::newRow("Touchpoints") << QStringLiteral("touchpoints") << true; | 115 | QTest::newRow("Touchpoints") << QStringLiteral("touchpoints") << true; | ||
117 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true; | 116 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true; | ||
118 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true; | 117 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true; | ||
119 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << true; | 118 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << true; | ||
120 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true; | 119 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true; | ||
121 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false; | 120 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false; | ||
122 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false; | 121 | QTest::newRow("Fade - Scripted") << QStringLiteral("fade") << false; | ||
123 | QTest::newRow("Fade - Scripted + kwin4_effect") << QStringLiteral("kwin4_effect_fade") << false; | 122 | QTest::newRow("Fade - Scripted + kwin4_effect") << QStringLiteral("kwin4_effect_fade") << false; | ||
Show All 37 Lines | 137 | expectedEffects << QStringLiteral("blur") | |||
161 | << QStringLiteral("sheet") | 160 | << QStringLiteral("sheet") | ||
162 | << QStringLiteral("showfps") | 161 | << QStringLiteral("showfps") | ||
163 | << QStringLiteral("showpaint") | 162 | << QStringLiteral("showpaint") | ||
164 | << QStringLiteral("slide") | 163 | << QStringLiteral("slide") | ||
165 | << QStringLiteral("slideback") | 164 | << QStringLiteral("slideback") | ||
166 | << QStringLiteral("slidingpopups") | 165 | << QStringLiteral("slidingpopups") | ||
167 | << QStringLiteral("snaphelper") | 166 | << QStringLiteral("snaphelper") | ||
168 | << QStringLiteral("startupfeedback") | 167 | << QStringLiteral("startupfeedback") | ||
169 | << QStringLiteral("thumbnailaside") | | |||
170 | << QStringLiteral("touchpoints") | 168 | << QStringLiteral("touchpoints") | ||
171 | << QStringLiteral("trackmouse") | 169 | << QStringLiteral("trackmouse") | ||
172 | << QStringLiteral("windowgeometry") | 170 | << QStringLiteral("windowgeometry") | ||
173 | << QStringLiteral("wobblywindows") | 171 | << QStringLiteral("wobblywindows") | ||
174 | << QStringLiteral("zoom"); | 172 | << QStringLiteral("zoom"); | ||
175 | 173 | | |||
176 | KWin::BuiltInEffectLoader loader; | 174 | KWin::BuiltInEffectLoader loader; | ||
177 | QStringList result = loader.listOfKnownEffects(); | 175 | QStringList result = loader.listOfKnownEffects(); | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 184 | { | |||
240 | QTest::newRow("ShowFps") << QStringLiteral("showfps") << true << xc << true; | 238 | QTest::newRow("ShowFps") << QStringLiteral("showfps") << true << xc << true; | ||
241 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true << xc << true; | 239 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true << xc << true; | ||
242 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc << true; | 240 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc << true; | ||
243 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc << true; | 241 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc << true; | ||
244 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc << true; | 242 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc << true; | ||
245 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc << true; | 243 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc << true; | ||
246 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc << true; | 244 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc << true; | ||
247 | QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc << true; | 245 | QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc << true; | ||
248 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true << xc << true; | | |||
249 | QTest::newRow("TouchPoints") << QStringLiteral("touchpoints") << true << xc << true; | 246 | QTest::newRow("TouchPoints") << QStringLiteral("touchpoints") << true << xc << true; | ||
250 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc << true; | 247 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc << true; | ||
251 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc << true; | 248 | QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc << true; | ||
252 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc << true; | 249 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc << true; | ||
253 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc << true; | 250 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc << true; | ||
254 | QTest::newRow("WobblyWindows-GL-no-anim") << QStringLiteral("wobblywindows") << false << oc << false; | 251 | QTest::newRow("WobblyWindows-GL-no-anim") << QStringLiteral("wobblywindows") << false << oc << false; | ||
255 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc << true; | 252 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc << true; | ||
256 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc << true; | 253 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc << true; | ||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 323 | // QTest::newRow("ShowFps") << QStringLiteral("showfps") << true << xc; | |||
327 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true << xc; | 324 | QTest::newRow("ShowPaint") << QStringLiteral("showpaint") << true << xc; | ||
328 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc; | 325 | QTest::newRow("Slide") << QStringLiteral("slide") << true << xc; | ||
329 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc; | 326 | QTest::newRow("SlideBack") << QStringLiteral("slideback") << true << xc; | ||
330 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc; | 327 | QTest::newRow("SlidingPopups") << QStringLiteral("slidingpopups") << true << xc; | ||
331 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc; | 328 | QTest::newRow("SnapHelper") << QStringLiteral("snaphelper") << true << xc; | ||
332 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc; | 329 | QTest::newRow("StartupFeedback") << QStringLiteral("startupfeedback") << false << xc; | ||
333 | // Tries to load shader and makes our test abort | 330 | // Tries to load shader and makes our test abort | ||
334 | // QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc; | 331 | // QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc; | ||
335 | QTest::newRow("ThumbnailAside") << QStringLiteral("thumbnailaside") << true << xc; | | |||
336 | QTest::newRow("Touchpoints") << QStringLiteral("touchpoints") << true << xc; | 332 | QTest::newRow("Touchpoints") << QStringLiteral("touchpoints") << true << xc; | ||
337 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc; | 333 | QTest::newRow("TrackMouse") << QStringLiteral("trackmouse") << true << xc; | ||
338 | // TODO: Accesses EffectFrame and crashes | 334 | // TODO: Accesses EffectFrame and crashes | ||
339 | // QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc; | 335 | // QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc; | ||
340 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc; | 336 | QTest::newRow("WobblyWindows") << QStringLiteral("wobblywindows") << false << xc; | ||
341 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc; | 337 | QTest::newRow("WobblyWindows-GL") << QStringLiteral("wobblywindows") << true << oc; | ||
342 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc; | 338 | QTest::newRow("Zoom") << QStringLiteral("zoom") << true << xc; | ||
343 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc; | 339 | QTest::newRow("Non Existing") << QStringLiteral("InvalidName") << false << xc; | ||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |