aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_scrollbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_scrollbar.qml')
-rw-r--r--tests/auto/controls/data/tst_scrollbar.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_scrollbar.qml b/tests/auto/controls/data/tst_scrollbar.qml
index 9e649e37..f15983a9 100644
--- a/tests/auto/controls/data/tst_scrollbar.qml
+++ b/tests/auto/controls/data/tst_scrollbar.qml
@@ -277,9 +277,11 @@ TestCase {
compare(control.pressed, false)
compare(control.position, 0.5)
- mousePress(control, control.width, control.height, Qt.LeftButton)
+ mousePress(control, control.width - 1, control.height - 1, Qt.LeftButton)
compare(pressedSpy.count, 3)
compare(control.pressed, true)
+ // We can't click on right and bottom edge, so click to (width-1, height-1), and move mouse to (width,height)
+ mouseMove(control, control.width, control.height, 0)
compare(control.position, 1.0)
mouseMove(control, control.width * 2, control.height * 2, 0)
@@ -354,7 +356,7 @@ TestCase {
compare(control.pressed, false)
compare(control.position, 0.5)
- touch.press(0, control, control.width, control.height).commit()
+ touch.press(0, control, control.width - 1, control.height - 1).commit()
compare(pressedSpy.count, 3)
compare(control.pressed, true)
compare(control.position, 0.5)