diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-05-24 16:36:29 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-05-24 16:36:29 +0200 |
commit | 6e6d4927f4620e58bd6acf71a0c6f54513f47c5f (patch) | |
tree | c2ef245f6f4bea0064983af4b3b577e259c622e4 /tests | |
parent | 0cfb29c88901e8b69ffdb996fc4ea7ba1098e033 (diff) |
If the frame number or the easing curve of a frame change,
then we have to update the timeline.
Change-Id: Id2a1b571727fa5414d62bf0bc549699c28da0dcd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtquicktimeline/tst_qtquicktimeline.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qtquicktimeline/tst_qtquicktimeline.cpp b/tests/auto/qtquicktimeline/tst_qtquicktimeline.cpp index f366b54..1f71294 100644 --- a/tests/auto/qtquicktimeline/tst_qtquicktimeline.cpp +++ b/tests/auto/qtquicktimeline/tst_qtquicktimeline.cpp @@ -355,6 +355,13 @@ void Tst_QtQuickTimeline::keyframeUpdate() keyframe->setProperty("value", 90); QCOMPARE(keyframe->property("value").toInt(), 90); QCOMPARE(rectangle->property("x").toInt(), 90); + + timeline->setProperty("currentFrame", 60); + QCOMPARE(timeline->property("currentFrame").toInt(), 60); + + QVERIFY(rectangle->property("x").toInt() != 90); + keyframe->setProperty("frame", 60); + QCOMPARE(rectangle->property("x").toInt(), 90); } void Tst_QtQuickTimeline::easingcurveInterpolation() |