@@ -25,7 +25,7 @@ Item {
25 width: units.gu(60)
25 width: units.gu(60)
26 height: units.gu(80)
26 height: units.gu(80)
28− property var calls
28+ property var calls: []
30 SignalSpy {
30 SignalSpy {
31 id: sendPreviewSpy
31 id: sendPreviewSpy
@@ -99,6 +99,7 @@ Item {
99 when: windowShown
99 when: windowShown
101 function cleanup() {
101 function cleanup() {
102+ root.calls = new Array();
102 sendPreviewSpy.clear();
103 sendPreviewSpy.clear();
103 var reviewField = findChild(appPreview, "reviewField");
104 var reviewField = findChild(appPreview, "reviewField");
104 reviewField.focus = false;
105 reviewField.focus = false;
@@ -106,7 +107,6 @@ Item {
108 function test_actions() {
109 function test_actions() {
109− root.calls = new Array();
110 var buttons = findChild(appPreview, "gridButtons");
110 var buttons = findChild(appPreview, "gridButtons");
111 compare(buttons.count, 3, "Not the proper amount of actions detected.");
111 compare(buttons.count, 3, "Not the proper amount of actions detected.");