aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-19 13:04:14 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-04-19 20:08:31 +0000
commit3f0ce410884254a3cb6beb322bd910ac1525052c (patch)
tree9cd2f86c12c3df368a646775ef2aa27362b1609f /tests
parentc2fdb4ecf3644015fa16e417c0939dd30f8b5a27 (diff)
tst_button: fix warnings in test_checkable
The newly added downChanged signals were missing from the signal sequences. Add missing verify(spy.success) calls to avoid the same in the future. Change-Id: Ib10b8cc0fe5e4afb3af911d22efa0b690036bc1f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_button.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_button.qml b/tests/auto/controls/data/tst_button.qml
index 4831bdd6..77e58513 100644
--- a/tests/auto/controls/data/tst_button.qml
+++ b/tests/auto/controls/data/tst_button.qml
@@ -254,31 +254,40 @@ TestCase {
verify(!control.checkable)
control.spy.expectedSequence = [["pressedChanged", { "pressed": true }],
+ ["downChanged", { "down": true }],
"pressed",
["pressedChanged", { "pressed": false }],
+ ["downChanged", { "down": false }],
"released",
"clicked"]
mouseClick(control)
verify(!control.checked)
+ verify(control.spy.success)
control.spy.expectedSequence = [["pressedChanged", { "pressed": true }],
+ ["downChanged", { "down": true }],
"pressed",
["pressedChanged", { "pressed": false }],
+ ["downChanged", { "down": false }],
["checkedChanged", { "checked": true }],
"released",
"clicked"]
control.checkable = true
mouseClick(control)
verify(control.checked)
+ verify(control.spy.success)
control.spy.expectedSequence = [["pressedChanged", { "pressed": true }],
+ ["downChanged", { "down": true }],
"pressed",
["pressedChanged", { "pressed": false }],
+ ["downChanged", { "down": false }],
["checkedChanged", { "checked": false }],
"released",
"clicked"]
mouseClick(control)
verify(!control.checked)
+ verify(control.spy.success)
control.destroy()
}