aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier De Cannière <[email protected]>2025-04-24 16:59:12 +0200
committerOlivier De Cannière <[email protected]>2025-04-25 14:32:20 +0200
commit14f1b4bce3966c58d5db2ef773e339675394e8af (patch)
tree6d7a583f99cd6fc796d1f8d1a63707749a68c6e9 /tests
parente0d8eed56422390229907e2d333e9e00a5286f09 (diff)
qmllint: Fix name of inline component scopes for required properties
Amends daf57e29de918b7b4be7bb0d469db0c51d41bb07 Task-number: QTBUG-136058 Pick-to: 6.9 6.8 Change-Id: Ibf412089427e4d9d5a568ee24c224b9fa41fd20a Reviewed-by: Sami Shalayel <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp4
-rw-r--r--tests/auto/qml/qmltc_qprocess/tst_qmltc_qprocess.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index b9521861ae..2d9717fd8e 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -1311,7 +1311,7 @@ expression: \${expr} \${expr} \\\${expr} \\\${expr}`)",
<< Result {{ Message { QStringLiteral("Unqualified access") }}};
QTest::newRow("missingRequiredOnObjectDefinitionBinding")
<< QStringLiteral("missingRequiredPropertyOnObjectDefinitionBinding.qml")
- << Result{ { { uR"(Component is missing required property i from here)"_s, 4, 26 } } };
+ << Result{ { { uR"(Component is missing required property i from QtObject)"_s, 4, 26 } } };
QTest::newRow("PropertyAliasCycles") << QStringLiteral("settings/propertyAliasCycle/file.qml")
<< Result::cleanWithSettings();
@@ -2381,7 +2381,7 @@ void TestQmllint::requiredProperty()
Result { { Message { QStringLiteral("Component is missing required property "
"required_now_string from Base") },
Message { QStringLiteral("Component is missing required property "
- "required_defined_here_string from here") } } });
+ "required_defined_here_string from Derived") } } });
runTest("requiredPropertyBindingsLater.qml",
Result { { Message { QStringLiteral("Component is missing required property "
"required_later_string from "
diff --git a/tests/auto/qml/qmltc_qprocess/tst_qmltc_qprocess.cpp b/tests/auto/qml/qmltc_qprocess/tst_qmltc_qprocess.cpp
index 13b2caa330..becc8c602f 100644
--- a/tests/auto/qml/qmltc_qprocess/tst_qmltc_qprocess.cpp
+++ b/tests/auto/qml/qmltc_qprocess/tst_qmltc_qprocess.cpp
@@ -360,7 +360,7 @@ void tst_qmltc_qprocess::innerLevelRequiredProperty()
{
const auto errors = runQmltc(u"innerLevelRequiredProperty.qml"_s, false);
QVERIFY(errors.contains(
- u"innerLevelRequiredProperty.qml:7:5: Component is missing required property foo from here [required]"
+ u"innerLevelRequiredProperty.qml:7:5: Component is missing required property foo from Item [required]"
));
}
}