aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 195a9687a8..6a3418f1ab 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -38,6 +38,7 @@
#include <QFont>
#include <QQmlFileSelector>
#include <QFileSelector>
+#include <QEasingCurve>
#include <private/qqmlproperty_p.h>
#include <private/qqmlmetatype_p.h>
@@ -283,6 +284,8 @@ private slots:
void thisInQmlScope();
+ void valueTypeGroupPropertiesInBehavior();
+
private:
QQmlEngine engine;
QStringList defaultImportPathList;
@@ -4926,6 +4929,20 @@ void tst_qqmllanguage::thisInQmlScope()
QCOMPARE(o->property("y"), QVariant(42));
}
+void tst_qqmllanguage::valueTypeGroupPropertiesInBehavior()
+{
+ QQmlEngine engine;
+ QQmlComponent component(&engine, testFileUrl("groupPropertyInPropertyValueSource.qml"));
+ VERIFY_ERRORS(0);
+ QScopedPointer<QObject> o(component.create());
+ QVERIFY(!o.isNull());
+
+ QObject *animation = qmlContext(o.data())->contextProperty("animation").value<QObject*>();
+ QVERIFY(animation);
+
+ QCOMPARE(animation->property("easing").value<QEasingCurve>().type(), QEasingCurve::InOutQuad);
+}
+
QTEST_MAIN(tst_qqmllanguage)
#include "tst_qqmllanguage.moc"