diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-02 04:35:02 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-02 04:35:33 (GMT) |
commit | 3507c6fbbb585ea3b7f6a13b16fa216aea4574ab (patch) | |
tree | a1e5c3a5177022ae4a851c6a591892916aa8ac90 /tests | |
parent | 05f9a6aa5d6e4f20eb4dacff3acea9d186867ab1 (diff) | |
download | Qt-3507c6fbbb585ea3b7f6a13b16fa216aea4574ab.zip Qt-3507c6fbbb585ea3b7f6a13b16fa216aea4574ab.tar.gz Qt-3507c6fbbb585ea3b7f6a13b16fa216aea4574ab.tar.bz2 |
Make test more reliable.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp | 6 |
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 53c63b5..0c166df 100644 --- a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp +++ b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp @@ -221,17 +221,17 @@ void tst_qdeclarativeanimations::resume() QVERIFY(animation.from() == 10); animation.start(); - QTest::qWait(100); + QTest::qWait(200); animation.pause(); qreal x = rect.x(); - QVERIFY(x != qreal(200)); + QVERIFY(x != qreal(200) && x != qreal(10)); QVERIFY(animation.isRunning()); QVERIFY(animation.isPaused()); animation.resume(); QVERIFY(animation.isRunning()); QVERIFY(!animation.isPaused()); - QTest::qWait(100); + QTest::qWait(200); animation.stop(); QVERIFY(rect.x() > x); } |