@@ -1755,5 +1755,27 @@ Rectangle {
17551755 ApplicationManager.startApplication(appId);
17561756 tryCompare(PanelState, "buttonsVisible", true)
17571757 }
1758+
1759+ // but http://pad.lv/1431566
1760+ function test_switchToStagedHidesPanelButtons() {
1761+ loadDesktopShellWithApps();
1762+ var appRepeater = findChild(shell, "appRepeater")
1763+ var appId = ApplicationManager.get(0).appId;
1764+ var appDelegate = appRepeater.itemAt(0);
1765+
1766+ tryCompare(appDelegate, "state", "normal");
1767+ tryCompare(PanelState, "buttonsVisible", false);
1768+
1769+ appDelegate.maximize(false);
1770+ tryCompare(PanelState, "buttonsVisible", true);
1771+
1772+ shell.usageScenario = "phone";
1773+ waitForRendering(shell);
1774+ tryCompare(PanelState, "buttonsVisible", false);
1775+
1776+ shell.usageScenario = "desktop";
1777+ waitForRendering(shell);
1778+ tryCompare(PanelState, "buttonsVisible", true);
1779+ }
17581780 }
17591781}