on xenial help sign in
testMenuItemFactory: remove unneeded label test in ModemInfo

It has no default label at all

commita30d56659835243f86ae4ddb0810a6faff54467e authorMarco Trevisan (Treviño) <mail@3v1n0.net> dateWed 21 Sep 2016, 13:24 (10 years ago) parent4d20282
1 file changed−5
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml−5
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml−5
@@ -594,9 +594,7 @@ Item {
594594 // ModemInfoItem gets all it's data through the actions.
595595 return [
596596 {
597− label: "",
598597 enabled: true,
599− checked: false,
600598 statusLabelAction: "action::statusLabel",
601599 statusIconAction: "action::statusIcon",
602600 connectivityIconAction: "action::connectivityIcon",
@@ -609,9 +607,7 @@ Item {
609607
610608 function test_create_modemInfoItem(data) {
611609 menuData.type = "com.canonical.indicator.network.modeminfoitem";
612− menuData.label = data.label;
613610 menuData.sensitive = data.enabled;
614− menuData.isToggled = data.checked;
615611 menuData.ext = {
616612 'xCanonicalModemStatusLabelAction': data.statusLabelAction,
617613 'xCanonicalModemStatusIconAction': data.statusIconAction,
@@ -625,7 +621,6 @@ Item {
625621 loader.sourceComponent = factory.load(menuData);
626622 tryCompareFunction(function() { return loader.item != undefined; }, true);
627623 compare(loader.item.objectName, "modemInfoItem", "Should have created a modem info item.");
628− compare(loader.item.text, data.label, "Label does not match data");
629624
630625 compare(loader.item.statusLabelAction.name, data.statusLabelAction, "StatusLabel action incorrect");
631626 compare(loader.item.statusIconAction.name, data.statusIconAction, "StatusIcon action incorrect");