on xenial help sign in
Fix Saviq's review comments
commit0ed58d4c78be293d3705730854d3a410b4529109 authorPete Woods <pete.woods@canonical.com> dateWed 30 Nov 2016, 12:26 (10 years ago) parent7b81a77
1 file changed+2−2
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+2−2
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+2−2
@@ -369,7 +369,7 @@ Item {
369369
370370 function test_create_switchMenu_data() {
371371 return [
372− {label: "testLabel1", enabled: true, checked: false, icon: "file:///testIcon1", subtitleAction: undefined},
372+ {label: "testLabel1", enabled: true, checked: false, icon: "file:///testIcon1"},
373373 {label: "testLabel2", enabled: false, checked: true, icon: "file:///testIcon2", subtitleAction: "action::subtitle1"},
374374 {label: "testLabel2", enabled: false, checked: true, icon: "file:///testIcon3", subtitleAction: "action::subtitle2"},
375375 ];
@@ -394,7 +394,7 @@ Item {
394394 compare(loader.item.iconSource, data.icon, "Icon does not match data");
395395 compare(loader.item.checked, data.checked, "Checked does not match data");
396396 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");
398398 }
399399
400400 function test_create_alarmMenu_data() {