summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_calendar.qml6
-rw-r--r--tests/auto/controls/data/tst_switch.qml2
2 files changed, 4 insertions, 4 deletions
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);
}