diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-21 14:11:10 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-22 09:57:57 +0200 |
commit | 826b7c3b18b2104cd0ff2c4b90892e72e149a88d (patch) | |
tree | ec337d2708e9944216b62c3c002c3765ed1dfa6f /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | ec9d125f553c073ec7a431114a568eaeb6534b63 (diff) |
qmllint: Resolve aliases in nested objects
So far we've just ignored them.
Change-Id: I2ca522ef825a341a3f4bf1c2a42fb0376180cdda
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 0d2ab4c4cc..d9671a6631 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -228,6 +228,10 @@ void TestQmllint::dirtyQmlCode_data() << QStringLiteral("nanchors3.qml") << QString() << QString(); + QTest::newRow("badAliasObject") + << QStringLiteral("badAliasObject.qml") + << QString("Warning: Property \"wrongwrongwrong\" not found on type \"QtObject\"") + << QString(); } void TestQmllint::dirtyQmlCode() @@ -287,6 +291,7 @@ void TestQmllint::cleanQmlCode_data() QTest::newRow("anchors1") << QStringLiteral("anchors1.qml"); QTest::newRow("anchors2") << QStringLiteral("anchors2.qml"); QTest::newRow("optionalImport") << QStringLiteral("optionalImport.qml"); + QTest::newRow("goodAliasObject") << QStringLiteral("goodAliasObject.qml"); } void TestQmllint::cleanQmlCode() |