diff options
-rw-r--r-- | tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp b/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp index 0cb88c501d..1905c0f660 100644 --- a/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp +++ b/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp @@ -417,7 +417,9 @@ void tst_QQuickListView2::flickDuringFlicking() // QTBUG-103832 listView->setBoundsBehavior(boundsBehavior); flickWithTouch(&window, {100, 400}, {100, 100}); - QTRY_VERIFY(listView->contentY() > 1000); // let it flick some distance + // let it flick some distance + QTRY_VERIFY2(listView->contentY() > 1000, qPrintable(QString::fromLatin1( + "Expected ListView's contentY to be greater than 1000, but it's %1").arg(listView->contentY()))); QVERIFY(listView->isFlicking()); // we want to test the case when it's moving and then we flick again const qreal posBeforeSecondFlick = listView->contentY(); |