aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/qtbug48870.qml
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-11-23 18:35:02 -0800
committerGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-12-07 16:10:24 +0000
commitd2305265af0552f9fcab4c93bed6b93e25a28f78 (patch)
tree8a0ac1dee758fea8bd2ba2ff5f3fb4008c426252 /tests/auto/quick/qquicklistview/data/qtbug48870.qml
parentf9f99c43fbea600f61d065b30a5453e95dfa6ade (diff)
Auto-tests for fast model updates while flicking
Stress testing might sound unfair, but it can happen that the user is flicking the view while the model gets updated resulting in an internally inconsistent state. We need to cover this and start working on a solution. The test is initially blacklisted as it's not expected to pass all the time. Task-number: QTBUG 48870 Change-Id: I7c1e4fd1876f52dd2dad5a28584b571753ebe69a Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qquicklistview/data/qtbug48870.qml')
-rw-r--r--tests/auto/quick/qquicklistview/data/qtbug48870.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/data/qtbug48870.qml b/tests/auto/quick/qquicklistview/data/qtbug48870.qml
new file mode 100644
index 0000000000..217f58af48
--- /dev/null
+++ b/tests/auto/quick/qquicklistview/data/qtbug48870.qml
@@ -0,0 +1,24 @@
+import QtQuick 2.6
+
+Rectangle {
+ width: 500
+ height: 500
+ color: "blue"
+
+ ListView {
+ objectName: "list"
+ anchors.fill: parent
+ model: testModel
+
+ delegate: Rectangle {
+ height: 50
+ width: ListView.view ? ListView.view.width : height
+ color: "green"
+
+ Text {
+ anchors.centerIn: parent
+ text: "Item " + index
+ }
+ }
+ }
+}