diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-01-12 15:02:10 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-12 14:36:57 +0000 |
commit | 6d00ed2d5328e605bf846622a9dbe4dfe821aee4 (patch) | |
tree | b512efe8d87941fdf0abf2a2f2fd052672721509 /tests/auto/controls/data/tst_switchdelegate.qml | |
parent | 166b31be92c45a0b1fe2bd0c0f393f1a51d20943 (diff) |
tst_control: fix TestCase::mouseMove() usage
TestCase::mouseMove() does not take a mouse button argument. What we
intended to pass as a button argument, was actually used as a 1ms delay
(the value of Qt.LeftButton is 1).
Change-Id: I5e6e6b05a521702e99418cceba2d0a7cdbc68109
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_switchdelegate.qml')
-rw-r--r-- | tests/auto/controls/data/tst_switchdelegate.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_switchdelegate.qml b/tests/auto/controls/data/tst_switchdelegate.qml index ccb2da57..3f591602 100644 --- a/tests/auto/controls/data/tst_switchdelegate.qml +++ b/tests/auto/controls/data/tst_switchdelegate.qml @@ -151,7 +151,7 @@ TestCase { mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(control.pressed, true) verify(spy.success) - mouseMove(control, control.width * 2, control.height / 2, 0, Qt.LeftButton) + mouseMove(control, control.width * 2, control.height / 2, 0) compare(control.pressed, true) spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }], ["checkedChanged", { "pressed": false, "checked": true }], @@ -169,7 +169,7 @@ TestCase { mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton) compare(control.pressed, true) verify(spy.success) - mouseMove(control, -control.width, control.height / 2, 0, Qt.LeftButton) + mouseMove(control, -control.width, control.height / 2, 0) compare(control.pressed, true) spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }], ["checkedChanged", { "pressed": false, "checked": false }], |