From ba1fdd6e275ab6d22efe6329325b7cd6aa40a56e Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Fri, 12 Feb 2010 10:41:47 +1000 Subject: 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. --- .../declarative/qmlgraphicspositioners/tst_qmlgraphicspositioners.cpp | 1 - 1 file changed, 1 deletion(-) 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("one"); QVERIFY(one != 0); -- cgit v0.12