From 9ab1a6759018b78b0f160c5286f8b0235a34ec50 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 24 Jul 2020 08:34:18 +0200 Subject: Support required list properties The corresponding rules were missing so far. Fixes: QTBUG-85716 Change-Id: Ic97546ea2e574f694a96d974ee355ac84f8650b5 Reviewed-by: Fawzi Mohamed --- tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp') diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp index 0865628061..88f9a39ab8 100644 --- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp +++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp @@ -1729,6 +1729,12 @@ void tst_qqmllanguage::requiredProperty() QVERIFY(!component.errors().empty()); QVERIFY(component.errorString().contains("Property blub was marked as required but does not exist")); } + { + QQmlComponent component(&engine, testFileUrl("RequiredListPropertiesUser.qml")); + VERIFY_ERRORS(0); + QScopedPointer object(component.create()); + QVERIFY(object); + } } class MyClassWithRequiredProperty : public QObject -- cgit v1.2.3