summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-10-27 08:56:28 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-10-27 09:50:27 (GMT)
commit0f6ab9612eba6c5418991443b65a10820d6b5a1f (patch)
tree8dfe20548e9aaec6f1d88de55b76c794c8aecbbc /tests
parent68ab3b34571cfdde4002de9982388f9eec4d9939 (diff)
downloadQt-0f6ab9612eba6c5418991443b65a10820d6b5a1f.zip
Qt-0f6ab9612eba6c5418991443b65a10820d6b5a1f.tar.gz
Qt-0f6ab9612eba6c5418991443b65a10820d6b5a1f.tar.bz2
Stabilize sequential animation startDelay autotest on win
Reviewed-by: thierry
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp b/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp
index aa6801a..f6afc5b 100644
--- a/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp
+++ b/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp
@@ -929,16 +929,13 @@ void tst_QSequentialAnimationGroup::startDelay()
group.addPause(125);
QCOMPARE(group.totalDuration(), 375);
- QEventLoop loop;
- QObject::connect(&group, SIGNAL(finished()), &loop, SLOT(quit()));
-
- QTime time;
- time.start();
group.start();
- loop.exec();
+ QCOMPARE(group.state(), QAnimationGroup::Running);
- QVERIFY(time.elapsed() >= 375);
- QVERIFY(time.elapsed() < 1000);
+ QTest::qWait(500);
+
+ QVERIFY(group.currentTime() == 375);
+ QCOMPARE(group.state(), QAnimationGroup::Stopped);
}
void tst_QSequentialAnimationGroup::clearGroup()