diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-05-15 11:32:26 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-06-08 08:31:49 +0000 |
commit | 93ea4251c7771f11cf93b47651af3d4ede46d1f2 (patch) | |
tree | d38c3bc9e47a3f160fd11d93674d7ae095d72e80 /tests/auto/animation/animationutils/tst_animationutils.cpp | |
parent | ab0a43e9efba3da95da2ebc7662a1437d5e3a899 (diff) |
Fix animation inifinite looping
Trigger also on -1, which is what QAbstractClipAnimator::Infinite
is defined as. Updated tests to reflect this change.
Change-Id: Ib33a5e9b58f48b3810a0238b7682e532e382c050
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/auto/animation/animationutils/tst_animationutils.cpp')
-rw-r--r-- | tests/auto/animation/animationutils/tst_animationutils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/animation/animationutils/tst_animationutils.cpp b/tests/auto/animation/animationutils/tst_animationutils.cpp index ac4fb6fa0..a70fd271c 100644 --- a/tests/auto/animation/animationutils/tst_animationutils.cpp +++ b/tests/auto/animation/animationutils/tst_animationutils.cpp @@ -626,7 +626,7 @@ private Q_SLOTS: globalStartTime = 0.0; playbackRate = 1.0; duration = 1.0; - loopCount = 0; + loopCount = -1; expectedLocalTime = 0.5; expectedCurrentLoop = 1; QTest::newRow("simple, loopCount = inf, t_global = 1.5") @@ -637,7 +637,7 @@ private Q_SLOTS: globalStartTime = 0.0; playbackRate = 1.0; duration = 1.0; - loopCount = 0; + loopCount = -1; expectedLocalTime = 0.2; expectedCurrentLoop = 10; QTest::newRow("simple, loopCount = inf, t_global = 10.2") @@ -791,7 +791,7 @@ private Q_SLOTS: globalStartTime = 0.0; playbackRate = 1.0; duration = 1.0; - loopCount = 0; + loopCount = -1; expectedPhase = 0.5; expectedCurrentLoop = 1; QTest::newRow("simple, loopCount = inf, t_global = 1.5") @@ -802,7 +802,7 @@ private Q_SLOTS: globalStartTime = 0.0; playbackRate = 1.0; duration = 1.0; - loopCount = 0; + loopCount = -1; expectedPhase = 0.2; expectedCurrentLoop = 10; QTest::newRow("simple, loopCount = inf, t_global = 10.2") |