72
64
function test_clickCheckBox() {
73
65
var checkbox = findChild(checkMenu, "checkbox");
74
66
verify(checkbox !== undefined);
67
mouseClick(checkMenu, checkbox.width / 2, checkbox.height / 2);
68
compare(signalSpyTriggered.count, 1, "signal checked not triggered on checkbox click");
69
compare(signalSpyTriggered.signalArguments[0][0], true, "triggered signal argument non valid checkMenu click");
70
compare(checkMenu.checked, true)
73
function test_clickCheckedCheckBox() {
76
var checkbox = findChild(checkMenu, "checkbox");
77
verify(checkbox !== undefined);
76
78
mouseClick(checkMenu, checkbox.width / 2, checkbox.height / 2);
77
compare(signalSpyTriggered.count > 0, true, "signal checked not triggered on checkbox click");
79
compare(signalSpyTriggered.count, 1, "signal checked not triggered on checkbox click");
80
compare(signalSpyTriggered.signalArguments[0][0], false, "triggered signal argument non valid checkMenu click");
81
compare(checkMenu.checked, false)
80
84
function test_clickCheckMenu() {
81
85
mouseClick(checkMenu, checkMenu.width / 2, checkMenu.height / 2);
82
compare(signalSpyTriggered.count > 0, true, "signal checked not triggered on checkMenu click");
86
compare(signalSpyTriggered.count, 1, "signal checked not triggered on checkMenu click");
87
compare(signalSpyTriggered.signalArguments[0][0], true, "triggered signal argument non valid checkMenu click");
88
compare(checkMenu.checked, true)
91
function test_clickCheckedCheckMenu() {
94
mouseClick(checkMenu, checkMenu.width / 2, checkMenu.height / 2);
95
compare(signalSpyTriggered.count, 1, "signal checked not triggered on checkMenu click");
96
compare(signalSpyTriggered.signalArguments[0][0], false, "triggered signal argument non valid checkMenu click");
97
compare(checkMenu.checked, false)