aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/listIndices.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/listIndices.qml')
-rw-r--r--tests/auto/qml/qmllint/data/listIndices.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/listIndices.qml b/tests/auto/qml/qmllint/data/listIndices.qml
new file mode 100644
index 0000000000..b5fda4ef0d
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/listIndices.qml
@@ -0,0 +1,14 @@
+pragma Strict
+import QtQml
+
+QtObject {
+ id: self
+ property list<QtObject> items
+ property int numItems: items.length
+
+ Component.onCompleted: {
+ items.length = 3
+ for (var i = 0; i < 3; ++i)
+ items[i] = self
+ }
+}