aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-07-06 21:27:20 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2021-07-12 14:38:36 +0000
commit0d1d4d0e0036a321227a17eab058b948aadedbf4 (patch)
tree6d26c6d5c0f138ca64f8a6de5dfbacc9d61c26a3 /tests
parentd728049372ee3020a11d28bb4d214a48876df630 (diff)
QtTest: use delay properly in mouseWheel()
As in mouseEvent(), it's not the qWait() that usually matters as much as the timestamp difference that the delivery code will see. Task-number: QTBUG-56075 Change-Id: Ifc3b0830b6973997916465f3a9313d607428ede1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit a7579771e35bfd7318bd80f7b59e6f53388e7e36)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qmltest/events/tst_wheel.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qmltest/events/tst_wheel.qml b/tests/auto/qmltest/events/tst_wheel.qml
index 96338a51ec..fc38141971 100644
--- a/tests/auto/qmltest/events/tst_wheel.qml
+++ b/tests/auto/qmltest/events/tst_wheel.qml
@@ -64,7 +64,7 @@ Rectangle {
verify(flick.contentX == 0);
flick.contentY = 0;
verify(flick.contentY == 0);
- mouseWheel(flick, 200, 200, -120, 0, Qt.NoButton, Qt.NoModifier, -1);
+ mouseWheel(flick, 200, 200, -120, 0, Qt.NoButton, Qt.NoModifier, 100);
wait(1000);
verify(flick.contentX > 0);
verify(flick.contentY == 0);