on xenial help sign in
fixed tests
d8a808eNick Dedekind
tests/qmltests/tst_Shell.qml+3−1
@@ -2050,6 +2050,7 @@ Rectangle {
2050 var appRepeater = findChild(shell, "appRepeater")
2050 var appRepeater = findChild(shell, "appRepeater")
2051 var appDelegate = appRepeater.itemAt(0);
2051 var appDelegate = appRepeater.itemAt(0);
2052 var panelButtons = findChild(shell, "panelWindowControlButtons")
2052 var panelButtons = findChild(shell, "panelWindowControlButtons")
2053+ verify(panelButtons)
2053
2054
2054 tryCompare(appDelegate, "state", "normal");
2055 tryCompare(appDelegate, "state", "normal");
2055 tryCompare(panelButtons, "visible", false);
2056 tryCompare(panelButtons, "visible", false);
@@ -2058,7 +2059,8 @@ Rectangle {
2058
2059
2059 shell.usageScenario = "phone";
2060 shell.usageScenario = "phone";
2060 waitForRendering(shell);
2061 waitForRendering(shell);
2061− tryCompare(panelButtons, "visible", false);
2062+ panelButtons = findChild(shell, "panelWindowControlButtons")
2063+ verify(panelButtons === null)
2062 }
2064 }
2063
2065
2064 function test_lockingGreeterHidesPanelButtons() {
2066 function test_lockingGreeterHidesPanelButtons() {