From 698cffce2171bed322aa9d0df1fda316c379efda Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 12 Jan 2017 14:59:44 +0100 Subject: Fix tst_toolbutton.qml A copy-paste mistake. There's no such thing as Qt.LeftToolButton. It evaluated to undefined, and ended up using the default value Qt.LeftButton. Change-Id: Ie8d6714f663daa2bdfed2645a4fdc3e370e236ed Reviewed-by: Mitch Curtis --- tests/auto/controls/data/tst_toolbutton.qml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/auto/controls/data/tst_toolbutton.qml b/tests/auto/controls/data/tst_toolbutton.qml index c00661f0..d23effdc 100644 --- a/tests/auto/controls/data/tst_toolbutton.qml +++ b/tests/auto/controls/data/tst_toolbutton.qml @@ -87,12 +87,12 @@ TestCase { verify(clickedSpy.valid) // check - mousePress(control, control.width / 2, control.height / 2, Qt.LeftToolButton) + mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(pressedSpy.count, 1) compare(downSpy.count, 1) compare(control.pressed, true) compare(control.down, true) - mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftToolButton) + mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(clickedSpy.count, 1) compare(pressedSpy.count, 2) compare(downSpy.count, 2) @@ -100,12 +100,12 @@ TestCase { compare(control.down, false) // uncheck - mousePress(control, control.width / 2, control.height / 2, Qt.LeftToolButton) + mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(pressedSpy.count, 3) compare(downSpy.count, 3) compare(control.pressed, true) compare(control.down, true) - mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftToolButton) + mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(clickedSpy.count, 2) compare(pressedSpy.count, 4) compare(downSpy.count, 4) @@ -113,15 +113,15 @@ TestCase { compare(control.down, false) // release outside - mousePress(control, control.width / 2, control.height / 2, Qt.LeftToolButton) + mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(pressedSpy.count, 5) compare(downSpy.count, 5) compare(control.pressed, true) compare(control.down, true) - mouseMove(control, control.width * 2, control.height * 2, 0, Qt.LeftToolButton) + mouseMove(control, control.width * 2, control.height * 2, 0, Qt.LeftButton) compare(control.pressed, false) compare(control.down, false) - mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftToolButton) + mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton) compare(clickedSpy.count, 2) compare(pressedSpy.count, 6) compare(downSpy.count, 6) -- cgit v1.2.3