From c5a1a6f77ddc2a7e10d976af470c26ab29c036db Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 26 Mar 2013 15:24:31 +0100 Subject: [PATCH] Attempt to stabilize tst_qquickanimatedsprite Change-Id: I557f985ca5e68eb75d0b032b1dfa28cc33d56b6a Reviewed-by: David Faure (KDE) Reviewed-by: Friedemann Kleint --- tests/auto/quick/qquickanimatedsprite/data/basic.qml | 4 ++-- tests/auto/quick/qquickanimatedsprite/tst_qquickanimatedsprite.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto/quick/qquickanimatedsprite/data/basic.qml b/tests/auto/quick/qquickanimatedsprite/data/basic.qml index b71f79f..d903230 100644 --- a/tests/auto/quick/qquickanimatedsprite/data/basic.qml +++ b/tests/auto/quick/qquickanimatedsprite/data/basic.qml @@ -48,10 +48,10 @@ Rectangle { AnimatedSprite { objectName: "sprite" - loops: 3 + loops: 30 source: "squarefacesprite.png" frameCount: 6 - frameDuration: 120 + frameDuration: 240 width: 160 height: 160 } diff --git a/tests/auto/quick/qquickanimatedsprite/tst_qquickanimatedsprite.cpp b/tests/auto/quick/qquickanimatedsprite/tst_qquickanimatedsprite.cpp index 34a1614..bf46b6e 100644 --- a/tests/auto/quick/qquickanimatedsprite/tst_qquickanimatedsprite.cpp +++ b/tests/auto/quick/qquickanimatedsprite/tst_qquickanimatedsprite.cpp @@ -74,10 +74,10 @@ void tst_qquickanimatedsprite::test_properties() QQuickAnimatedSprite* sprite = window->rootObject()->findChild("sprite"); QVERIFY(sprite); - QVERIFY(sprite->running()); + QTRY_VERIFY(sprite->running()); QVERIFY(!sprite->paused()); QVERIFY(sprite->interpolate()); - QCOMPARE(sprite->loops(), 3); + QCOMPARE(sprite->loops(), 30); sprite->setRunning(false); QVERIFY(!sprite->running()); -- 2.7.4