@@ -369,7 +369,7 @@ Item {
370 function test_create_switchMenu_data() {
370 function test_create_switchMenu_data() {
372− {label: "testLabel1", enabled: true, checked: false, icon: "file:///testIcon1", subtitleAction: undefined},
372+ {label: "testLabel1", enabled: true, checked: false, icon: "file:///testIcon1"},
373 {label: "testLabel2", enabled: false, checked: true, icon: "file:///testIcon2", subtitleAction: "action::subtitle1"},
373 {label: "testLabel2", enabled: false, checked: true, icon: "file:///testIcon2", subtitleAction: "action::subtitle1"},
374 {label: "testLabel2", enabled: false, checked: true, icon: "file:///testIcon3", subtitleAction: "action::subtitle2"},
374 {label: "testLabel2", enabled: false, checked: true, icon: "file:///testIcon3", subtitleAction: "action::subtitle2"},
@@ -394,7 +394,7 @@ Item {
394 compare(loader.item.iconSource, data.icon, "Icon does not match data");
394 compare(loader.item.iconSource, data.icon, "Icon does not match data");
395 compare(loader.item.checked, data.checked, "Checked does not match data");
395 compare(loader.item.checked, data.checked, "Checked does not match data");
396 compare(loader.item.enabled, data.enabled, "Enabled does not match data");
396 compare(loader.item.enabled, data.enabled, "Enabled does not match data");
397− compare(loader.item.subtitleAction.name, data.subtitleAction === undefined? "": data.subtitleAction, "Subtitle action does not match data");
397+ compare(loader.item.subtitleAction.name, data.subtitleAction === undefined ? "" : data.subtitleAction, "Subtitle action does not match data");
400 function test_create_alarmMenu_data() {
400 function test_create_alarmMenu_data() {