summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/repeater/data/intmodel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/repeater/data/intmodel.qml')
-rw-r--r--tests/auto/declarative/repeater/data/intmodel.qml18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/auto/declarative/repeater/data/intmodel.qml b/tests/auto/declarative/repeater/data/intmodel.qml
index a779079..2d6eae8 100644
--- a/tests/auto/declarative/repeater/data/intmodel.qml
+++ b/tests/auto/declarative/repeater/data/intmodel.qml
@@ -6,12 +6,24 @@ Rectangle {
width: 240
height: 320
color: "white"
+
+ function checkProperties() {
+ testObject.error = false;
+ if (repeater.delegate != comp) {
+ print("delegate property incorrect");
+ testObject.error = true;
+ }
+ }
+
+ Component {
+ id: comp
+ Item{}
+ }
+
Repeater {
id: repeater
objectName: "repeater"
model: testData
- Component {
- Item{}
- }
+ delegate: comp
}
}