diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-21 16:06:20 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-27 09:23:30 +0100 |
commit | ed8127cf41951a9ff1d6032c2158e49fdebe51c3 (patch) | |
tree | 12e74c92f9c9a9ee940e4bde91ba4132454c1dd8 /tests | |
parent | 23813a319898e8951645a9f9bec5813090fd3a85 (diff) |
QmlCompiler: Introduce grouped scopes
This way we can analyze the left hand part of things like
"anchors.fill: parent" in qmllint.
Change-Id: I0f58312566c3d5062e0fb301c2bad908ab8b8cbb
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index d9671a6631..56dcd368c6 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -222,11 +222,11 @@ void TestQmllint::dirtyQmlCode_data() << QString(); QTest::newRow("nanchors2") << QStringLiteral("nanchors2.qml") - << QString() + << QString("unknown grouped property scope nanchors.") << QString(); QTest::newRow("nanchors3") << QStringLiteral("nanchors3.qml") - << QString() + << QString("unknown grouped property scope nanchors.") << QString(); QTest::newRow("badAliasObject") << QStringLiteral("badAliasObject.qml") @@ -246,9 +246,7 @@ void TestQmllint::dirtyQmlCode() QVERIFY(process.waitForFinished()); QCOMPARE(process.exitStatus(), QProcess::NormalExit); QEXPECT_FAIL("anchors3", "We don't see that QQuickItem cannot be assigned to QQuickAnchorLine", Abort); - 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); + QEXPECT_FAIL("nanchors1", "Invalid grouped properties are not always detected", Abort); QVERIFY(process.exitCode() != 0); }); |