@@ -79,7 +79,7 @@ Rectangle {
7979 name: "PreviewActionTest"
8080 when: windowShown
8181
82− function checkButtonPressSignal(target, id, buttonNumber)
82+ function checkButtonPressSignal(target, id)
8383 {
8484 var button = findChild(root, "button" + id);
8585 verify(button != null);
@@ -89,15 +89,14 @@ Rectangle {
8989 compare(spy.count, 1);
9090 compare(spy.signalArguments[0][0], target.widgetId);
9191 compare(spy.signalArguments[0][1], id);
92− compare(spy.signalArguments[0][2], target.widgetData["actions"][buttonNumber]);
9392 }
9493
9594 function test_checkButtons_data() {
9695 return [
97− {tag: "oneActionButton", target: oneAction, id: "someid", buttonNumber: 0 },
98− {tag: "twobuttonsButton0", target: twoActions, id: "someid1", buttonNumber: 0 },
99− {tag: "twobuttonsButton1", target: twoActions, id: "someid2", buttonNumber: 1 },
100− {tag: "buttonAndComboButton0", target: buttonAndCombo, id: "someid3", buttonNumber: 0 }
96+ {tag: "oneActionButton", target: oneAction, id: "someid" },
97+ {tag: "twobuttonsButton0", target: twoActions, id: "someid1" },
98+ {tag: "twobuttonsButton1", target: twoActions, id: "someid2" },
99+ {tag: "buttonAndComboButton0", target: buttonAndCombo, id: "someid3" }
101100 ]
102101 }
103102
@@ -107,10 +106,10 @@ Rectangle {
107106
108107 function test_comboButton_data() {
109108 return [
110− {tag: "button1", id: "someid4", buttonNumber: 1 },
111− {tag: "button2", id: "someid5", buttonNumber: 2 },
112− {tag: "button3", id: "someid6", buttonNumber: 3 },
113− {tag: "button4", id: "someid7", buttonNumber: 4 }
109+ {tag: "button1", id: "someid4" },
110+ {tag: "button2", id: "someid5" },
111+ {tag: "button3", id: "someid6" },
112+ {tag: "button4", id: "someid7" }
114113 ]
115114 }
116115