Allow for some delay on starting transitions in flickable test
authorUlf Hermann <ulf.hermann@theqtcompany.com>
Thu, 28 May 2015 17:20:48 +0000 (19:20 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Fri, 5 Jun 2015 05:51:06 +0000 (05:51 +0000)
Change-Id: I218ea874def6060e147cb05eafeb857a9e66eb44
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp

index 7d08c3c..d3f05ab 100644 (file)
@@ -299,7 +299,7 @@ void tst_qquickflickable::rebound()
     flick(window.data(), QPoint(20,120), QPoint(120,20), 200);     // only x will bounce back
 
     QVERIFY(flickable->isMoving());
-    QVERIFY(window->rootObject()->property("transitionsStarted").toInt() >= 1);
+    QTRY_VERIFY(window->rootObject()->property("transitionsStarted").toInt() >= 1);
     QCOMPARE(hMoveSpy.count(), 1);
     QCOMPARE(vMoveSpy.count(), 1);
     QCOMPARE(movementStartedSpy.count(), 1);