on xenial help sign in
fix panel tests
commit1897f101dd24a5b4839bdb3e99d8cf6a922c195d authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 28 Mar 2017, 15:28 (10 years ago) parentb8a5dcc
1 file changed+6−3
tests/qmltests/Panel/tst_Panel.qml+6−3
tests/qmltests/Panel/tst_Panel.qml+6−3
@@ -42,7 +42,9 @@ PanelTest {
4242 value: keyboardAttached.checked
4343 }
4444
45− readonly property alias panelState: panel.panelState
45+ readonly property var panelState: PanelState {
46+
47+ }
4648
4749 ApplicationMenuDataLoader {
4850 id: appMenuData
@@ -86,6 +88,7 @@ PanelTest {
8688
8789 indicatorMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
8890 applicationMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
91+ panelState: root.panelState
8992
9093 applicationMenus {
9194 model: UnityMenuModel {
@@ -855,7 +858,7 @@ PanelTest {
855858
856859 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");
857860
858− PanelState.title = "Fake Title"
861+ root.panelState.title = "Fake Title"
859862 pullDownApplicationsMenu(0 /*xPos*/);
860863 compare(aboutToShowCalledSpy.count, 1);
861864
@@ -888,7 +891,7 @@ PanelTest {
888891
889892 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");
890893
891− PanelState.title = "Fake Title"
894+ panelState.title = "Fake Title"
892895 pullDownApplicationsMenu(0 /*xPos*/);
893896
894897 tryCompare(indicatorsBar, "currentItemIndex", 0);