aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-03-28 12:49:43 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-03-29 08:02:08 +0000
commit7c31b884b932034bb907db638f155b813d90aff2 (patch)
treec4a7c52a38774f09408ec4e14531538f503dc9cb
parentd0f6b28618f7252f3f7c915a6a91a153f350e354 (diff)
Attempt to stabilize Tumbler::test_itemsCorrectlyPositioned
I'm not sure if this will help (because I haven't been able to reproduce the flakiness, even in a CI VM), but the tumbler should really not still be spinning after we got the position of its items, so make sure it's stopped before doing any comparisons. Task-number: QTBUG-70597 Change-Id: I72555747b2ea4ef136cdaa13f7b0757be2624e73 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r--tests/auto/controls/data/tst_tumbler.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_tumbler.qml b/tests/auto/controls/data/tst_tumbler.qml
index 7c2095f8..c9cc10d7 100644
--- a/tests/auto/controls/data/tst_tumbler.qml
+++ b/tests/auto/controls/data/tst_tumbler.qml
@@ -357,12 +357,12 @@ TestCase {
tumbler.forceActiveFocus();
keyClick(Qt.Key_Down);
tryCompare(tumblerView, "offset", 3.0);
+ tryCompare(tumbler, "moving", false);
firstItemCenterPos = itemCenterPos(0);
firstItem = tumblerView.itemAt(firstItemCenterPos.x, firstItemCenterPos.y);
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);