summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-10-28 10:46:35 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-10-28 10:46:35 (GMT)
commit8cf53009aa8012c1d911eb3ccac5c5345da712e7 (patch)
tree9a1a9720d131090c4adee85fa6127f8491f8ca91 /tests/auto
parent51a644360cdf9ef4d936700f02da6cc380ae1f9d (diff)
downloadQt-8cf53009aa8012c1d911eb3ccac5c5345da712e7.zip
Qt-8cf53009aa8012c1d911eb3ccac5c5345da712e7.tar.gz
Qt-8cf53009aa8012c1d911eb3ccac5c5345da712e7.tar.bz2
Changing the time we wait for the end of the animation
We now wait for the animation duration + 100 (instead of 50). It makes tests more reliable on windows (and probably embedded)
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
index 92bed7d..56c1ced 100644
--- a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
+++ b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
@@ -1093,7 +1093,7 @@ void tst_QPropertyAnimation::valueChanged()
QSignalSpy spy(&anim, SIGNAL(valueChanged(QVariant)));
anim.start();
- QTest::qWait(anim.duration() + 50);
+ QTest::qWait(anim.duration() + 100);
QCOMPARE(anim.state(), QAbstractAnimation::Stopped);
QCOMPARE(anim.currentTime(), anim.duration());
@@ -1144,7 +1144,7 @@ void tst_QPropertyAnimation::twoAnimations()
o1.anim.start();
o2.anim.start();
- QTest::qWait(o1.anim.duration() + 50);
+ QTest::qWait(o1.anim.duration() + 100);
QCOMPARE(o1.anim.state(), QAbstractAnimation::Stopped);
QCOMPARE(o2.anim.state(), QAbstractAnimation::Stopped);
@@ -1194,7 +1194,7 @@ void tst_QPropertyAnimation::deletedInUpdateCurrentTime()
MyComposedAnimation composedAnimation(&o, "value", "realValue");
composedAnimation.start();
QCOMPARE(composedAnimation.state(), QAbstractAnimation::Running);
- QTest::qWait(composedAnimation.duration() + 50);
+ QTest::qWait(composedAnimation.duration() + 100);
QCOMPARE(composedAnimation.state(), QAbstractAnimation::Stopped);
QCOMPARE(o.value(), 1000);