aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-04-07 13:01:53 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-04-09 09:26:31 +0200
commit50b679a03cda1789c8a6c3b252551e5d143ce017 (patch)
treec148b8d298be380e4e2ba74ccb0738e34e8e1b81 /tests
parent0a07a6261263bb915c20539812146afd9005b64b (diff)
When resolving property types, also update the property type names
Otherwise we end up with a mixture of QML and C++ names. Task-number: QTBUG-92447 Change-Id: I94c44307d8dd762d11cfd8f178f33ab6a895ee83 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4beba3a2b68a389c426791dd43c638f3539d8f20)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmllint/data/stringLength2.qml10
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp1
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/stringLength2.qml b/tests/auto/qml/qmllint/data/stringLength2.qml
new file mode 100644
index 0000000000..6dc2942b37
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/stringLength2.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.15
+
+Item {
+ id: foo
+
+ property string s
+ Component.onCompleted: {
+ console.log("s.length", foo.s.length);
+ }
+}
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index 1a102fe81f..19b0111eba 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -315,6 +315,7 @@ void TestQmllint::cleanQmlCode_data()
QTest::newRow("goodAliasObject") << QStringLiteral("goodAliasObject.qml");
QTest::newRow("segFault") << QStringLiteral("SegFault.qml");
QTest::newRow("stringLength") << QStringLiteral("stringLength.qml");
+ QTest::newRow("stringLength2") << QStringLiteral("stringLength2.qml");
}
void TestQmllint::cleanQmlCode()