aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmllanguage/data/QtObjectWithChildren.qml5
-rw-r--r--tests/auto/qml/qqmllanguage/data/defaultListProperty.qml6
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp9
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/QtObjectWithChildren.qml b/tests/auto/qml/qqmllanguage/data/QtObjectWithChildren.qml
new file mode 100644
index 0000000000..bb28e22110
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/QtObjectWithChildren.qml
@@ -0,0 +1,5 @@
+import QtQml 2.0
+
+QtObject {
+ default property list<QtObject> myChildren;
+}
diff --git a/tests/auto/qml/qqmllanguage/data/defaultListProperty.qml b/tests/auto/qml/qqmllanguage/data/defaultListProperty.qml
new file mode 100644
index 0000000000..d68ffd2979
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/defaultListProperty.qml
@@ -0,0 +1,6 @@
+import QtQml 2.0
+
+QtObjectWithChildren {
+ QtObject {
+ }
+}
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index ad06946b0b..658b4f5852 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -254,6 +254,8 @@ private slots:
void arrayBuffer_data();
void arrayBuffer();
+ void defaultListProperty();
+
private:
QQmlEngine engine;
QStringList defaultImportPathList;
@@ -4233,6 +4235,13 @@ void tst_qqmllanguage::arrayBuffer()
QCOMPARE(object->property("ok").toBool(), true);
}
+void tst_qqmllanguage::defaultListProperty()
+{
+ QQmlComponent component(&engine, testFileUrl("defaultListProperty.qml"));
+ VERIFY_ERRORS(0);
+ QScopedPointer<QObject> o(component.create());
+}
+
QTEST_MAIN(tst_qqmllanguage)
#include "tst_qqmllanguage.moc"