aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickgridview
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qquickgridview')
-rw-r--r--tests/auto/declarative/qquickgridview/data/gridview-initCurrent.qml1
-rw-r--r--tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qquickgridview/data/gridview-initCurrent.qml b/tests/auto/declarative/qquickgridview/data/gridview-initCurrent.qml
index e3ec8f2d4a..624f639962 100644
--- a/tests/auto/declarative/qquickgridview/data/gridview-initCurrent.qml
+++ b/tests/auto/declarative/qquickgridview/data/gridview-initCurrent.qml
@@ -58,6 +58,7 @@ Rectangle {
cellWidth: 80
cellHeight: 60
delegate: myDelegate
+ highlightMoveDuration: 400
model: testModel
header: root.showHeader ? headerFooter : null
footer: root.showFooter ? headerFooter : null
diff --git a/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp b/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp
index 717423244e..322587876b 100644
--- a/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp
+++ b/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp
@@ -1365,6 +1365,9 @@ void tst_QQuickGridView::currentIndex()
gridview->moveCurrentIndexLeft();
QCOMPARE(gridview->currentIndex(), 35);
+ // wait until motion stops
+ QTRY_VERIFY(gridview->verticalVelocity() == 0.0);
+
// no wrap
gridview->setCurrentIndex(0);
QCOMPARE(gridview->currentIndex(), 0);