aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickanimations/tst_qquickanimations.cpp')
-rw-r--r--tests/auto/quick/qquickanimations/tst_qquickanimations.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp b/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
index 166f4b8276..878cd55eb9 100644
--- a/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
+++ b/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
@@ -961,11 +961,12 @@ void tst_qquickanimations::disabledTransition()
QCOMPARE(myRect->x(),qreal(200));
trans->setEnabled(true);
-
+ QSignalSpy runningSpy(trans, SIGNAL(runningChanged()));
QQuickItemPrivate::get(rect)->setState("");
QCOMPARE(myRect->x(),qreal(200));
QTest::qWait(300);
QTIMED_COMPARE(myRect->x(),qreal(100));
+ QCOMPARE(runningSpy.count(), 2); //stopped, running, stopped
}
void tst_qquickanimations::invalidDuration()