summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tst_scrollview.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_scrollview.qml')
-rw-r--r--tests/auto/controls/data/tst_scrollview.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_scrollview.qml b/tests/auto/controls/data/tst_scrollview.qml
index d3bfac4b..95aa6e98 100644
--- a/tests/auto/controls/data/tst_scrollview.qml
+++ b/tests/auto/controls/data/tst_scrollview.qml
@@ -197,8 +197,12 @@ TestCase {
mouseRelease(scrollView, scrollView.width - 2, 8 + 16)
waitForRendering(scrollView)
- verify(Math.round(scrollView.flickableItem.contentHeight) > 60 * 20)
- verify(Math.round(scrollView.flickableItem.contentY) < -(60 * 20))
+ tryVerify(
+ function() { return Math.round(scrollView.flickableItem.contentHeight) > 60 * 20 },
+ 50, "contentHeight did not adjust to new data.")
+ tryVerify(
+ function() { return Math.round(scrollView.flickableItem.contentY) < -(60 * 20) },
+ 50, "contentY did not adjust to new data.")
scrollView.destroy()
}