From 3f0ce410884254a3cb6beb322bd910ac1525052c Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 19 Apr 2016 13:04:14 +0200 Subject: 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 --- tests/auto/controls/data/tst_button.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/auto/controls/data/tst_button.qml') 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() } -- cgit v1.2.3