diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-01-22 13:10:11 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-01-22 12:54:16 +0000 |
commit | b500fbfb5b24f24f6cb3cb02981726fb858287ce (patch) | |
tree | dbb24ec6d1760c628a62345d45055927f6eb63c3 | |
parent | 0dbbfc2f2824aa3891fde0b219fb4951e94a64c9 (diff) |
Fix test_itemsCorrectlyPositioned() failure
Ensure that "moving" is false before comparing the y position of
the delegate item.
Change-Id: Ie23e86c1f89180c5afca3a48b9361a82635d5e39
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r-- | tests/auto/controls/data/tst_tumbler.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_tumbler.qml b/tests/auto/controls/data/tst_tumbler.qml index 03908566..058cbeca 100644 --- a/tests/auto/controls/data/tst_tumbler.qml +++ b/tests/auto/controls/data/tst_tumbler.qml @@ -349,6 +349,7 @@ TestCase { verify(firstItem); // Test QTBUG-40298. actualPos = testCase.mapFromItem(firstItem, 0, 0); + tryCompare(tumbler, "moving", false); fuzzyCompare(actualPos.x, tumbler.leftPadding, 0.0001); fuzzyCompare(actualPos.y, tumbler.topPadding, 0.0001); |