From da765b0812c996bf8aab4203be8ab521a15c5528 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 14 Apr 2015 15:21:21 +0200 Subject: Fix tst_slider Change-Id: I37e2ab2c1f64f907b5895f41ee278b58af4e2655 Reviewed-by: Mitch Curtis --- tests/auto/controls/data/tst_slider.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/auto') 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) -- cgit v1.2.3