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_checkbox.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_checkbox.qml')
-rw-r--r-- | tests/auto/controls/data/tst_checkbox.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_checkbox.qml b/tests/auto/controls/data/tst_checkbox.qml index 2ed29aec..eb052e12 100644 --- a/tests/auto/controls/data/tst_checkbox.qml +++ b/tests/auto/controls/data/tst_checkbox.qml @@ -175,7 +175,7 @@ TestCase { compare(control.pressed, true) verify(sequenceSpy.success) sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }]] - mouseMove(control, control.width * 2, control.height * 2, 0, Qt.LeftButton) + mouseMove(control, control.width * 2, control.height * 2, 0) compare(control.pressed, false) verify(sequenceSpy.success) sequenceSpy.expectedSequence = [["canceled", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }]] |