aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmllint/data/Things/plugins.qmltypes1
-rw-r--r--tests/auto/qml/qmllint/data/externalEnumProperty.qml5
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp1
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/Things/plugins.qmltypes b/tests/auto/qml/qmllint/data/Things/plugins.qmltypes
index 99e1fdc466..9ad8c71468 100644
--- a/tests/auto/qml/qmllint/data/Things/plugins.qmltypes
+++ b/tests/auto/qml/qmllint/data/Things/plugins.qmltypes
@@ -62,5 +62,6 @@ Module {
exports: [
"Things/ItemDerived 1.0"
]
+ Property { name: "alignment"; type: "Qt::Alignment" }
}
}
diff --git a/tests/auto/qml/qmllint/data/externalEnumProperty.qml b/tests/auto/qml/qmllint/data/externalEnumProperty.qml
new file mode 100644
index 0000000000..2ba56a03a4
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/externalEnumProperty.qml
@@ -0,0 +1,5 @@
+import Things
+
+ItemDerived {
+ alignment: Qt.AlignCenter
+}
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index db44193871..9c0077582e 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -382,6 +382,7 @@ void TestQmllint::cleanQmlCode_data()
QTest::newRow("layouts depends quick") << QStringLiteral("layouts.qml");
QTest::newRow("attached") << QStringLiteral("attached.qml");
QTest::newRow("enumProperty") << QStringLiteral("enumProperty.qml");
+ QTest::newRow("externalEnumProperty") << QStringLiteral("externalEnumProperty.qml");
}
void TestQmllint::cleanQmlCode()