@@ -79,7 +79,7 @@ Rectangle {
79 name: "PreviewActionTest"
79 name: "PreviewActionTest"
80 when: windowShown
80 when: windowShown
82− function checkButtonPressSignal(target, id, buttonNumber)
82+ function checkButtonPressSignal(target, id)
84 var button = findChild(root, "button" + id);
84 var button = findChild(root, "button" + id);
85 verify(button != null);
85 verify(button != null);
@@ -89,15 +89,14 @@ Rectangle {
89 compare(spy.count, 1);
89 compare(spy.count, 1);
90 compare(spy.signalArguments[0][0], target.widgetId);
90 compare(spy.signalArguments[0][0], target.widgetId);
91 compare(spy.signalArguments[0][1], id);
91 compare(spy.signalArguments[0][1], id);
92− compare(spy.signalArguments[0][2], target.widgetData["actions"][buttonNumber]);
95 function test_checkButtons_data() {
94 function test_checkButtons_data() {
97− {tag: "oneActionButton", target: oneAction, id: "someid", buttonNumber: 0 },
96+ {tag: "oneActionButton", target: oneAction, id: "someid" },
98− {tag: "twobuttonsButton0", target: twoActions, id: "someid1", buttonNumber: 0 },
97+ {tag: "twobuttonsButton0", target: twoActions, id: "someid1" },
99− {tag: "twobuttonsButton1", target: twoActions, id: "someid2", buttonNumber: 1 },
98+ {tag: "twobuttonsButton1", target: twoActions, id: "someid2" },
100− {tag: "buttonAndComboButton0", target: buttonAndCombo, id: "someid3", buttonNumber: 0 }
99+ {tag: "buttonAndComboButton0", target: buttonAndCombo, id: "someid3" }
@@ -107,10 +106,10 @@ Rectangle {
108 function test_comboButton_data() {
107 function test_comboButton_data() {
110− {tag: "button1", id: "someid4", buttonNumber: 1 },
109+ {tag: "button1", id: "someid4" },
111− {tag: "button2", id: "someid5", buttonNumber: 2 },
110+ {tag: "button2", id: "someid5" },
112− {tag: "button3", id: "someid6", buttonNumber: 3 },
111+ {tag: "button3", id: "someid6" },
113− {tag: "button4", id: "someid7", buttonNumber: 4 }
112+ {tag: "button4", id: "someid7" }