diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-10-02 10:11:17 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-10-02 10:16:20 +0200 |
commit | cd669f1f216e54fa59eee77459d608a41f5df290 (patch) | |
tree | be095fc5a6e32ac6735bb80532d01a24523e6108 /tests/auto | |
parent | 96828a94468c18a195a0ee718448aa81d5bb88c4 (diff) |
Ensure we pass coordinates to mouseMove()v6.0.0-alpha1
Unlike the other functions, the x and y parameters do not currently
default to the center of the control if unspecified.
Change-Id: Ie6c5945c0b43f1ef0d79e76a96da18ea102a50e2
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/controls/data/tst_scrollbar.qml | 2 | ||||
-rw-r--r-- | tests/auto/controls/data/tst_textarea.qml | 2 | ||||
-rw-r--r-- | tests/auto/controls/data/tst_textfield.qml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tst_scrollbar.qml b/tests/auto/controls/data/tst_scrollbar.qml index 29b04c53..32d056c3 100644 --- a/tests/auto/controls/data/tst_scrollbar.qml +++ b/tests/auto/controls/data/tst_scrollbar.qml @@ -489,7 +489,7 @@ TestCase { compare(control.hovered, false) - mouseMove(control) + mouseMove(control, control.width / 2, control.height / 2) compare(control.hovered, data.hoverEnabled) compare(control.active, data.hoverEnabled && data.interactive) diff --git a/tests/auto/controls/data/tst_textarea.qml b/tests/auto/controls/data/tst_textarea.qml index 653e7ad5..7f0b52fc 100644 --- a/tests/auto/controls/data/tst_textarea.qml +++ b/tests/auto/controls/data/tst_textarea.qml @@ -369,7 +369,7 @@ TestCase { compare(control.hovered, false) - mouseMove(control) + mouseMove(control, control.width / 2, control.height / 2) compare(control.hovered, data.hoverEnabled) mouseMove(control, -1, -1) diff --git a/tests/auto/controls/data/tst_textfield.qml b/tests/auto/controls/data/tst_textfield.qml index f1ac17c9..f9b0587f 100644 --- a/tests/auto/controls/data/tst_textfield.qml +++ b/tests/auto/controls/data/tst_textfield.qml @@ -269,7 +269,7 @@ TestCase { compare(control.hovered, false) - mouseMove(control) + mouseMove(control, control.width / 2, control.height / 2) compare(control.hovered, data.hoverEnabled) mouseMove(control, -1, -1) |