summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpropertyanimation
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-02-23 11:31:19 +0100
committerKent Hansen <kent.hansen@nokia.com>2010-02-23 11:31:19 +0100
commita419d587a666aaf55310b3a18e9f9e1993fef16e (patch)
treead18802322f76c9600697d9450bf1b3fd4b596d0 /tests/auto/qpropertyanimation
parent06638a4c08aaf86d606abc59f642c3c34815e8e6 (diff)
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')
-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 d020d8f1c0..66cfeb7fcd 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