aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickgridview
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-12-29 22:28:58 +0100
committerLars Knoll <lars.knoll@qt.io>2017-12-29 21:30:13 +0000
commit5f8410750bebb31c1b61f3baca947e962afc1890 (patch)
tree89bc971465c30aeb3873e1eec6d4f6323243e0bc /tests/auto/quick/qquickgridview
parent3accc1dae76575120e71cadb547e961ecd50bcb0 (diff)
Fix test case accessing items that are out of bounds
The list is only populated with 30 items, so don't try to remove item 31. Change-Id: I27539dfb984fee9cdc3dae827b4e9b65a36ec566 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickgridview')
-rw-r--r--tests/auto/quick/qquickgridview/tst_qquickgridview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp b/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
index 9bba6c9291..447eeb8103 100644
--- a/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
+++ b/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
@@ -1141,7 +1141,7 @@ void tst_QQuickGridView::removed_defaultLayout_data()
QTest::newRow("remove multiple, after visible, content not at start")
<< 2.0 // show 6-23
<< 16+4 << 5
- << 15+10 << 7
+ << 15 << 7
<< 0.0 << "Item6" << "Item10";
QTest::newRow("remove multiple, mix of items from within and after visible items")