summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-02-23 10:31:19 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-02-23 10:31:19 (GMT)
commita419d587a666aaf55310b3a18e9f9e1993fef16e (patch)
treead18802322f76c9600697d9450bf1b3fd4b596d0 /tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
parent06638a4c08aaf86d606abc59f642c3c34815e8e6 (diff)
downloadQt-a419d587a666aaf55310b3a18e9f9e1993fef16e.zip
Qt-a419d587a666aaf55310b3a18e9f9e1993fef16e.tar.gz
Qt-a419d587a666aaf55310b3a18e9f9e1993fef16e.tar.bz2
Use QTRY_COMPARE to give the animation a chance to finish
Using duration + 100 ms is apparently not sufficient.
Diffstat (limited to 'tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp')
-rw-r--r--tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
index d020d8f..66cfeb7 100644
--- a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
+++ b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
@@ -44,6 +44,7 @@
#include <QtCore/qpropertyanimation.h>
#include <QtCore/qvariantanimation.h>
#include <QtGui/qwidget.h>
+#include "../../shared/util.h"
//TESTED_CLASS=QPropertyAnimation
//TESTED_FILES=
@@ -1095,7 +1096,7 @@ void tst_QPropertyAnimation::valueChanged()
QTest::qWait(anim.duration() + 100);
- QCOMPARE(anim.state(), QAbstractAnimation::Stopped);
+ QTRY_COMPARE(anim.state(), QAbstractAnimation::Stopped);
QCOMPARE(anim.currentTime(), anim.duration());
//let's check that the values go forward