diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 11:17:29 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 15:31:59 +0200 |
commit | febb6ba891616b71476b736d4c583054685c7766 (patch) | |
tree | 4a9be0ab41fcb3f844d6460497da2448f78fd9b3 /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | b1afde8ada7959b29acb4ac0fae87d7a8ae8aa08 (diff) |
qmllint: Fix updating of parent property
We need to check for the baseTypeName, not for the internalName. Also,
this is not really the scope's business but a property of how qmllint
sets up its scopes.
Task-number: QTBUG-87116
Change-Id: I8f0e558a4a5861164c6e85f90e3d88e469ea0769
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Evgeniy Dushistov <dushistov@mail.ru>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index cd0042d291..da210e6abf 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -203,6 +203,10 @@ void TestQmllint::dirtyQmlCode_data() << QStringLiteral("nanchors1.qml") << QString() << QString(); + QTest::newRow("nanchors2") + << QStringLiteral("nanchors2.qml") + << QString() + << QString(); QTest::newRow("nanchors3") << QStringLiteral("nanchors3.qml") << QString() @@ -221,6 +225,7 @@ void TestQmllint::dirtyQmlCode() QVERIFY(process.waitForFinished()); QCOMPARE(process.exitStatus(), QProcess::NormalExit); QEXPECT_FAIL("nanchors1", "Invalid grouped properties are not detected", Abort); + QEXPECT_FAIL("nanchors2", "Invalid grouped properties are not detected", Abort); QEXPECT_FAIL("nanchors3", "Invalid grouped properties are not detected", Abort); QVERIFY(process.exitCode() != 0); }); @@ -262,6 +267,7 @@ void TestQmllint::cleanQmlCode_data() << QStringLiteral("javascriptMethodsInModuleGood.qml"); QTest::newRow("enumFromQtQml") << QStringLiteral("enumFromQtQml.qml"); QTest::newRow("anchors1") << QStringLiteral("anchors1.qml"); + QTest::newRow("anchors2") << QStringLiteral("anchors2.qml"); QTest::newRow("anchors3") << QStringLiteral("anchors3.qml"); } |