diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-02-23 10:31:19 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-02-23 10:31:19 (GMT) |
commit | a419d587a666aaf55310b3a18e9f9e1993fef16e (patch) | |
tree | ad18802322f76c9600697d9450bf1b3fd4b596d0 /tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp | |
parent | 06638a4c08aaf86d606abc59f642c3c34815e8e6 (diff) | |
download | Qt-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.cpp | 3 |
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 |