@@ -93,12 +93,16 @@ Rectangle {
9393 name: "PreviewActionTest"
9494 when: windowShown
9595
96+ function cleanup()
97+ {
98+ spy.clear();
99+ }
100+
96101 function checkButtonPressSignal(target, id)
97102 {
98103 var button = findChild(root, "button" + id);
99104 verify(button != null);
100105 spy.target = target;
101− spy.clear();
102106 mouseClick(button, button.width / 2, button.height / 2);
103107 compare(spy.count, 1);
104108 compare(spy.signalArguments[0][0], target.widgetId);