diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-20 11:19:33 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-20 11:19:33 (GMT) |
commit | e0aeecfa8cc41a476bef070b349683be9aec2243 (patch) | |
tree | df1ce33f02fbb35843186aeb81e7132a1885dd13 /tests/auto/qpauseanimation | |
parent | 462b2eae2386d22709943187820ec3f071399682 (diff) | |
download | Qt-e0aeecfa8cc41a476bef070b349683be9aec2243.zip Qt-e0aeecfa8cc41a476bef070b349683be9aec2243.tar.gz Qt-e0aeecfa8cc41a476bef070b349683be9aec2243.tar.bz2 |
QPauseAnimation autotests fixed
Diffstat (limited to 'tests/auto/qpauseanimation')
-rw-r--r-- | tests/auto/qpauseanimation/tst_qpauseanimation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qpauseanimation/tst_qpauseanimation.cpp b/tests/auto/qpauseanimation/tst_qpauseanimation.cpp index 62b43c4..b11efa0 100644 --- a/tests/auto/qpauseanimation/tst_qpauseanimation.cpp +++ b/tests/auto/qpauseanimation/tst_qpauseanimation.cpp @@ -169,7 +169,7 @@ void tst_QPauseAnimation::noTimerUpdates() animation.start(); QTest::qWait(animation.totalDuration() + 100); QVERIFY(animation.state() == QAbstractAnimation::Stopped); - QCOMPARE(animation.m_updateCurrentTimeCount, 2); + QCOMPARE(animation.m_updateCurrentTimeCount, 1 + loopCount); timer->setConsistentTiming(false); } @@ -399,6 +399,7 @@ void tst_QPauseAnimation::multipleSequentialGroups() void tst_QPauseAnimation::zeroDuration() { TestablePauseAnimation animation; + animation.setDuration(0); animation.start(); QTest::qWait(animation.totalDuration() + 100); QVERIFY(animation.state() == QAbstractAnimation::Stopped); |