From abc2ec74e9131cdae1bf9a458dfe9a2ef46b889c Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 21 Jul 2015 16:24:36 +0200 Subject: Remove unused Qt.LeftButton argument to mouseMove() in auto tests. That parameter is actually delay, so a delay of 1 millisecond was being passed. These were found with: git grep "mouseMove\(.*\, .*\, .*\, Qt.LeftButton\)" Change-Id: I00172dcd457aa4aae12d98421bc95525235c9570 Reviewed-by: Gabriel de Dietrich --- tests/auto/controls/data/tst_calendar.qml | 6 +++--- tests/auto/controls/data/tst_switch.qml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/auto/controls/data/tst_calendar.qml b/tests/auto/controls/data/tst_calendar.qml index 7aa0547f..310451b0 100644 --- a/tests/auto/controls/data/tst_calendar.qml +++ b/tests/auto/controls/data/tst_calendar.qml @@ -574,7 +574,7 @@ Item { } function dragTo(cellX, cellY, expectedCellIndex, expectedDate) { - mouseMove(calendar, toPixelsX(cellX), toPixelsY(cellY), Qt.LeftButton); + mouseMove(calendar, toPixelsX(cellX), toPixelsY(cellY)); compare(calendar.selectedDate, expectedDate); compare(calendar.__panel.pressedCellIndex, expectedCellIndex); compare(hoveredSignalSpy.count, 1); @@ -657,7 +657,7 @@ Item { // unwanted month changes if moving within a bunch of "next month" cells. // We still emit the signals as usual, though. var oldDate = calendar.selectedDate; - mouseMove(calendar, toPixelsX(5), toPixelsY(4), Qt.LeftButton); + mouseMove(calendar, toPixelsX(5), toPixelsY(4)); compare(calendar.selectedDate, oldDate); compare(calendar.__panel.pressedCellIndex, 32); compare(calendar.__panel.hoveredCellIndex, 33); @@ -689,7 +689,7 @@ Item { calendar.selectedDate = calendar.minimumDate; compare(calendar.visibleMonth, calendar.minimumDate.getMonth()); - mouseMove(calendar, toPixelsX(4), toPixelsY(0), Qt.LeftButton); + mouseMove(calendar, toPixelsX(4), toPixelsY(0)); compare(calendar.selectedDate, calendar.minimumDate); compare(calendar.__panel.pressedCellIndex, -1); compare(hoveredSignalSpy.count, 0); diff --git a/tests/auto/controls/data/tst_switch.qml b/tests/auto/controls/data/tst_switch.qml index fd929d48..2ab0582b 100644 --- a/tests/auto/controls/data/tst_switch.qml +++ b/tests/auto/controls/data/tst_switch.qml @@ -127,7 +127,7 @@ Item { // release outside -> no clicked() mousePress(aSwitch, aSwitch.x + 1, aSwitch.y + 1, Qt.LeftButton); - mouseMove(aSwitch, aSwitch.x - 1, aSwitch.y - 1, Qt.LeftButton); + mouseMove(aSwitch, aSwitch.x - 1, aSwitch.y - 1); mouseRelease(aSwitch, aSwitch.x - 1, aSwitch.y - 1, Qt.LeftButton); compare(signalSpy.count, 1); } -- cgit v1.2.1