@@ -93,12 +93,16 @@ Rectangle {
93 name: "PreviewActionTest"
93 name: "PreviewActionTest"
94 when: windowShown
94 when: windowShown
96 function checkButtonPressSignal(target, id)
101 function checkButtonPressSignal(target, id)
98 var button = findChild(root, "button" + id);
103 var button = findChild(root, "button" + id);
99 verify(button != null);
104 verify(button != null);
100 spy.target = target;
105 spy.target = target;
102 mouseClick(button, button.width / 2, button.height / 2);
106 mouseClick(button, button.width / 2, button.height / 2);
103 compare(spy.count, 1);
107 compare(spy.count, 1);
104 compare(spy.signalArguments[0][0], target.widgetId);
108 compare(spy.signalArguments[0][0], target.widgetId);