aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp')
-rw-r--r--tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp b/tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp
index 78d114c904..137b5c08e4 100644
--- a/tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp
+++ b/tests/auto/quick/qquickspringanimation/tst_qquickspringanimation.cpp
@@ -41,6 +41,7 @@
#include <qtest.h>
#include <QtQml/qqmlengine.h>
#include <QtQml/qqmlcomponent.h>
+#include <QtQuick/qquickview.h>
#include <private/qquickspringanimation_p.h>
#include <private/qqmlvaluetype_p.h>
#include "../../shared/util.h"
@@ -55,6 +56,7 @@ private slots:
void defaultValues();
void values();
void disabled();
+ void inTransition();
private:
QQmlEngine engine;
@@ -128,6 +130,14 @@ void tst_qquickspringanimation::disabled()
delete obj;
}
+void tst_qquickspringanimation::inTransition()
+{
+ QQuickView view(testFileUrl("inTransition.qml"));
+ view.show();
+ // this used to crash after ~1 sec, once the spring animation was done
+ QTest::qWait(2000);
+}
+
QTEST_MAIN(tst_qquickspringanimation)
#include "tst_qquickspringanimation.moc"