Stabalize SpriteImage test.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 24 Jan 2012 02:31:59 +0000 (12:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 06:01:22 +0000 (07:01 +0100)
Use a QTRY_COMPARE to allow a little more time for the required frames
to be rendered as needed.

Change-Id: If60aeaa3af42476c19582c5efc3f96f7db1b148d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/qtquick2/qquickspriteimage/tst_qquickspriteimage.cpp

index 7fd04b3..f7b27cf 100644 (file)
@@ -89,7 +89,7 @@ void tst_qquickspriteimage::test_framerateAdvance()
     QQuickSpriteImage* sprite = canvas->rootObject()->findChild<QQuickSpriteImage*>("sprite");
     QVERIFY(sprite);
 
-    QCOMPARE(sprite->currentSprite(), QLatin1String("secondState"));
+    QTRY_COMPARE(sprite->currentSprite(), QLatin1String("secondState"));
     delete canvas;
 }