From: Andrew den Exter Date: Tue, 24 Jan 2012 02:31:59 +0000 (+1000) Subject: Stabalize SpriteImage test. X-Git-Tag: qt-v5.0.0-alpha1~614 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecab027748352b2529902ba3e8bd01550e0c53c3;p=profile%2Fivi%2Fqtdeclarative.git Stabalize SpriteImage test. 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 --- diff --git a/tests/auto/qtquick2/qquickspriteimage/tst_qquickspriteimage.cpp b/tests/auto/qtquick2/qquickspriteimage/tst_qquickspriteimage.cpp index 7fd04b3..f7b27cf 100644 --- a/tests/auto/qtquick2/qquickspriteimage/tst_qquickspriteimage.cpp +++ b/tests/auto/qtquick2/qquickspriteimage/tst_qquickspriteimage.cpp @@ -89,7 +89,7 @@ void tst_qquickspriteimage::test_framerateAdvance() QQuickSpriteImage* sprite = canvas->rootObject()->findChild("sprite"); QVERIFY(sprite); - QCOMPARE(sprite->currentSprite(), QLatin1String("secondState")); + QTRY_COMPARE(sprite->currentSprite(), QLatin1String("secondState")); delete canvas; }