on xenial help sign in
Suppress warnings, clear the call array in cleanup().
commit2de0d76f36b6fa2a5cb697f776179284726f25c6 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 9 Aug 2013, 11:09 (13 years ago) parent64aad43
1 file changed+2−2
tests/qmltests/Dash/Apps/tst_AppPreview.qml+2−2
tests/qmltests/Dash/Apps/tst_AppPreview.qml+2−2
@@ -25,7 +25,7 @@ Item {
2525 width: units.gu(60)
2626 height: units.gu(80)
2727
28− property var calls
28+ property var calls: []
2929
3030 SignalSpy {
3131 id: sendPreviewSpy
@@ -99,6 +99,7 @@ Item {
9999 when: windowShown
100100
101101 function cleanup() {
102+ root.calls = new Array();
102103 sendPreviewSpy.clear();
103104 var reviewField = findChild(appPreview, "reviewField");
104105 reviewField.focus = false;
@@ -106,7 +107,6 @@ Item {
106107 }
107108
108109 function test_actions() {
109− root.calls = new Array();
110110 var buttons = findChild(appPreview, "gridButtons");
111111 compare(buttons.count, 3, "Not the proper amount of actions detected.");
112112