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 f460dc3cad..d95f25df98 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -517,6 +517,8 @@ private slots:
void argumentsUsageInBindings_data();
void argumentsUsageInBindings();
+ void aliasToLargeRevision();
+
private:
QQmlEngine engine;
QStringList defaultImportPathList;
@@ -9767,6 +9769,21 @@ void tst_qqmllanguage::argumentsUsageInBindings() {
QCOMPARE(object->property("result").toString(), object->property("expected").toString());
}
+void tst_qqmllanguage::aliasToLargeRevision()
+{
+ QQmlEngine engine;
+ QQmlComponent c(&engine, testFileUrl("aliasToLargeRevision.qml"));
+
+ QVERIFY2(c.isReady(), qPrintable(c.errorString()));
+ QScopedPointer<QObject> o(c.create());
+ QVERIFY(!o.isNull());
+
+ QCOMPARE(o->property("aa"), 13);
+ QCOMPARE(o->property("bb"), 14);
+ QCOMPARE(o->property("cc"), 15);
+ QCOMPARE(o->property("dd"), 16);
+}
+
QTEST_MAIN(tst_qqmllanguage)
#include "tst_qqmllanguage.moc"