diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-06-22 18:35:53 +1000 |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-06-22 18:35:53 +1000 |
commit | 82fc4df25e8fad1380fcfb8290464dd544aa9020 (patch) | |
tree | ebc1371f5f0de1d71d722bd8589e5c5b3e3e0dd5 | |
parent | 5da45e409103d978bb5c274e86262a8f32b36516 (diff) |
Make test more reliable
-rw-r--r-- | tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp b/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp index 505361bc27..f67d5c5a89 100644 --- a/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp +++ b/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp @@ -77,7 +77,7 @@ void tst_qdeclarativedebughelper::setAnimationSlowDownFactor() // first check whether setup works QCOMPARE(animation.updateCalled, 0); animation.start(); - QTest::qWait(animation.totalDuration() + 50); + QTest::qWait(animation.totalDuration() + 150); #ifdef Q_OS_WIN if (animation.state() != QAbstractAnimation::Stopped) QEXPECT_FAIL("", "On windows, consistent timing is not working properly due to bad timer resolution", Abort); @@ -89,14 +89,14 @@ void tst_qdeclarativedebughelper::setAnimationSlowDownFactor() animation.updateCalled = 0; QDeclarativeDebugHelper::setAnimationSlowDownFactor(0.0); animation.start(); - QTest::qWait(animation.totalDuration() + 50); + QTest::qWait(animation.totalDuration() + 150); QVERIFY(animation.updateCalled <= 1); // updateCurrentTime seems to be called at least once // now run them again animation.updateCalled = 0; QDeclarativeDebugHelper::setAnimationSlowDownFactor(2.0); animation.start(); - QTest::qWait(animation.totalDuration() + 50); + QTest::qWait(animation.totalDuration() + 150); QVERIFY(animation.updateCalled > 1); } |