diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-11-25 15:06:34 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-11-26 07:22:28 +0100 |
commit | dfd79afda5faf9e732f83715e11dc7aaf5cce164 (patch) | |
tree | 318e1e81fa32cd1cb47e9c975cafe31849a08b67 | |
parent | 5d76ced033cf1b2a1466a1b1b2a3a4f1102fab3f (diff) | |
download | qtquickcontrols-dfd79afda5faf9e732f83715e11dc7aaf5cce164.tar.gz |
tst_tumbler.qml: fix failing test_currentIndex() test
Use correct (i.e large enough distance) to ensure the current index
changes.
Fixes: QTBUG-80152
Change-Id: I26873e83fbd520965495104177ba09a38f566257
Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r-- | tests/auto/extras/data/tst_tumbler.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/extras/data/tst_tumbler.qml b/tests/auto/extras/data/tst_tumbler.qml index 6f207b4b..d2fa38b2 100644 --- a/tests/auto/extras/data/tst_tumbler.qml +++ b/tests/auto/extras/data/tst_tumbler.qml @@ -58,8 +58,8 @@ import "TestUtils.js" as TestUtils Item { id: container - width: 200 - height: 200 + width: 400 + height: 400 TestCase { id: testCase @@ -123,7 +123,7 @@ Item { waitForRendering(tumbler); var pos = Qt.point(columnXCenter(tumbler, 0), tumbler.height / 2); - mouseDrag(tumbler, pos.x, pos.y, 0, -tumbler.__style.__delegateHeight / 2, Qt.LeftButton, Qt.NoModifier, 200); + mouseDrag(tumbler, pos.x, pos.y, 0, -tumbler.__style.__delegateHeight, Qt.LeftButton, Qt.NoModifier, 200); compare(tumbler.currentIndexAt(0), 1); compare(column.currentIndex, 1); } |