kwin/autotests/integration/effects
David Edmundson 3332b32101 [scripting] Fix effect.animate() curve argument being actually used
Summary:
One cannot use a non metatype frrom an external class inside an
invokable. https://bugreports.qt.io/browse/QTBUG-58454

End result is the script engine arguments wouldn't match up and MOC
would just use the default value.

As far as I can tell this has been broken for 6 years.
The global animate method that unboxes a QJSValue as an object is
unaffected.
No shipped kwin effect actually used it.

To some extent we didn't even actually want to enforce the enum as we
also accept custom value of ScriptedEffect::GuassianCurve, so it has
been switched for an int.

Test Plan: Unit test

Reviewers: #kwin, broulik

Reviewed By: broulik

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14669
2018-08-07 21:33:29 +01:00
..
scripts [scripting] Fix effect.animate() curve argument being actually used 2018-08-07 21:33:29 +01:00
CMakeLists.txt [autotests] Unit most scripted effects API 2018-07-31 12:29:04 +01:00
fade_test.cpp XdgV6 - Kwin side 2017-09-25 16:47:30 +01:00
scripted_effects_test.cpp [scripting] Fix effect.animate() curve argument being actually used 2018-08-07 21:33:29 +01:00
slidingpopups_test.cpp
translucency_test.cpp
windowgeometry_test.cpp [effects] Delay creation of EffectFrames in WindowGeometryEffect 2017-11-21 19:28:00 +01:00
wobbly_shade_test.cpp Sanity check WindowQuad before trying to create a grid out of it 2018-03-05 19:31:51 +01:00