aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-02-12 11:32:53 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-02-19 13:14:05 +0100
commitf74d278994d35a3ac154ddd411009a785dd46800 (patch)
treec026d70a6e89ef876794a80a6fee5f5bfa34eedf /tests/auto
parentbf8888971732dbd0012eadc53cddada59bb17b2e (diff)
qmllint: Fix false unknown grouped property warning
We seem to be checking grouped properties twice by endVisit(UiObjectBinding*) and endVisit(UiObjectDefinition*). So the UiObjectBinding variant is removed here as this gets run before all type information is available. Change-Id: Idfe23869792f787df6109cde3b6bc1d96cce3dc3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4660f51f25a6c56182dff0ea24f7c1ad2bac9cea)
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/qmllint/data/groupedScope.qml7
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/groupedScope.qml b/tests/auto/qml/qmllint/data/groupedScope.qml
new file mode 100644
index 0000000000..40f9b41be8
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/groupedScope.qml
@@ -0,0 +1,7 @@
+import QtQuick 2.0
+
+Rectangle {
+ border.width: 1
+
+ gradient: Gradient {}
+}
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index 54e0adee51..8a07391ed0 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -364,6 +364,7 @@ void TestQmllint::cleanQmlCode_data()
QTest::newRow("overridescript") << QStringLiteral("overridescript.qml");
QTest::newRow("multiExtension") << QStringLiteral("multiExtension.qml");
QTest::newRow("segFault") << QStringLiteral("SegFault.qml");
+ QTest::newRow("grouped scope failure") << QStringLiteral("groupedScope.qml");
}
void TestQmllint::cleanQmlCode()