diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-12 00:41:47 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-12 00:41:47 (GMT) |
commit | ba1fdd6e275ab6d22efe6329325b7cd6aa40a56e (patch) | |
tree | 53144658e0b9c4b3ca5ea53bbf20af41225484e9 /tests/auto | |
parent | 8e872ed96a77a1bef37a5612e1825bd045447029 (diff) | |
download | Qt-ba1fdd6e275ab6d22efe6329325b7cd6aa40a56e.zip Qt-ba1fdd6e275ab6d22efe6329325b7cd6aa40a56e.tar.gz Qt-ba1fdd6e275ab6d22efe6329325b7cd6aa40a56e.tar.bz2 |
Make test more stable.
qApp->processEvents() has the same effect as QTest::qWait(0) and
should already `Let the animation start'. The additional events
processing would let the animation progress too far on a slow machine.
Timing tested by running under Valgrind.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qmlgraphicspositioners/tst_qmlgraphicspositioners.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmlgraphicspositioners/tst_qmlgraphicspositioners.cpp b/tests/auto/declarative/qmlgraphicspositioners/tst_qmlgraphicspositioners.cpp index 0e2109b..da541c8 100644 --- a/tests/auto/declarative/qmlgraphicspositioners/tst_qmlgraphicspositioners.cpp +++ b/tests/auto/declarative/qmlgraphicspositioners/tst_qmlgraphicspositioners.cpp @@ -125,7 +125,6 @@ void tst_QmlGraphicsPositioners::test_horizontal_animated() canvas->execute(); qApp->processEvents(); - QTest::qWait(0);//Let the animation start //Note that they animate in QmlGraphicsRectangle *one = canvas->root()->findChild<QmlGraphicsRectangle*>("one"); QVERIFY(one != 0); |