aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-04-14 15:21:21 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-04-15 08:01:01 +0000
commitda765b0812c996bf8aab4203be8ab521a15c5528 (patch)
treee6261e5f50d75bf60fb1b7ac955663ac594e23fb /tests/auto
parent80f19b5be92785c3ac26125c3d60b47444260616 (diff)
Fix tst_slider
Change-Id: I37e2ab2c1f64f907b5895f41ee278b58af4e2655 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_slider.qml10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_slider.qml b/tests/auto/controls/data/tst_slider.qml
index ec88376e..2c1b0f47 100644
--- a/tests/auto/controls/data/tst_slider.qml
+++ b/tests/auto/controls/data/tst_slider.qml
@@ -162,7 +162,8 @@ TestCase {
compare(control.value, 0.0)
compare(control.position, 0.0)
- mouseMove(control, -control.width, -control.height, 0, Qt.LeftButton)
+ // mininum on the left in horizontal vs. at the bottom in vertical
+ mouseMove(control, -control.width, 2 * control.height, 0, Qt.LeftButton)
compare(pressedSpy.count, 1)
compare(control.pressed, true)
compare(control.value, 0.0)
@@ -186,19 +187,20 @@ TestCase {
compare(control.value, 0.5)
compare(control.position, 0.5)
- mouseMove(control, control.width * 2, control.height * 2, 0, Qt.LeftButton)
+ // maximum on the right in horizontal vs. at the top in vertical
+ mouseMove(control, control.width * 2, -control.height, 0, Qt.LeftButton)
compare(pressedSpy.count, 3)
compare(control.pressed, true)
compare(control.value, 0.5)
compare(control.position, 1.0)
- mouseMove(control, control.width * 0.75, control.height * 0.75, 0, Qt.LeftButton)
+ mouseMove(control, control.width * 0.75, control.height * 0.25, 0, Qt.LeftButton)
compare(pressedSpy.count, 3)
compare(control.pressed, true)
compare(control.value, 0.5)
verify(control.position >= 0.75)
- mouseRelease(control, control.width * 0.25, control.height * 0.25, Qt.LeftButton)
+ mouseRelease(control, control.width * 0.25, control.height * 0.75, Qt.LeftButton)
compare(pressedSpy.count, 4)
compare(control.pressed, false)
compare(control.value, control.position)