summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanimations
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-02 23:35:00 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-02 23:36:45 (GMT)
commitd88f9fbe1522c48dfef153eef768f9eec123ec9e (patch)
tree9c3f60af5e61f2df5b632966c66e01f623edb1fc /tests/auto/declarative/qdeclarativeanimations
parentb0b19d286e10d307db4b9e477d4463eabc2b319d (diff)
downloadQt-d88f9fbe1522c48dfef153eef768f9eec123ec9e.zip
Qt-d88f9fbe1522c48dfef153eef768f9eec123ec9e.tar.gz
Qt-d88f9fbe1522c48dfef153eef768f9eec123ec9e.tar.bz2
Make test more reliable.
Diffstat (limited to 'tests/auto/declarative/qdeclarativeanimations')
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
index 0c166df..f5e15fb 100644
--- a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
+++ b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
@@ -217,11 +217,11 @@ void tst_qdeclarativeanimations::resume()
animation.setProperty("x");
animation.setFrom(10);
animation.setTo(200);
- animation.setDuration(500);
+ animation.setDuration(1000);
QVERIFY(animation.from() == 10);
animation.start();
- QTest::qWait(200);
+ QTest::qWait(400);
animation.pause();
qreal x = rect.x();
QVERIFY(x != qreal(200) && x != qreal(10));
@@ -231,7 +231,7 @@ void tst_qdeclarativeanimations::resume()
animation.resume();
QVERIFY(animation.isRunning());
QVERIFY(!animation.isPaused());
- QTest::qWait(200);
+ QTest::qWait(400);
animation.stop();
QVERIFY(rect.x() > x);
}