aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/listview/tst_listview.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmltest/listview/tst_listview.qml')
-rw-r--r--tests/auto/qmltest/listview/tst_listview.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qmltest/listview/tst_listview.qml b/tests/auto/qmltest/listview/tst_listview.qml
index 5e9bb22e8e..bea6b45c3a 100644
--- a/tests/auto/qmltest/listview/tst_listview.qml
+++ b/tests/auto/qmltest/listview/tst_listview.qml
@@ -213,6 +213,10 @@ Item {
id: multiDelegate2
}
+ MultiDelegate3 {
+ id: multiDelegate3
+ }
+
TestCase {
name: "ListView"
when: windowShown
@@ -414,5 +418,18 @@ Item {
var delegate = multiDelegate2.itemAt(10, row.y)
compare(delegate.choiceType, row.type)
}
+
+ function test_multipleDelegates3_data() {
+ return [
+ { y: 25, type: "Rectangle", property: "color", value: "#ff0000" },
+ { y: 75, type: "Text", property: "text", value: "Hello world" }
+ ]
+ }
+
+ function test_multipleDelegates3(row) {
+ var delegate = multiDelegate3.itemAt(10, row.y)
+ verify(delegate.toString().includes(row.type))
+ compare(delegate[row.property], row.value)
+ }
}
}