@@ -1854,6 +1854,31 @@ Rectangle {
1854 compare(appDelegate.y >= PanelState.panelHeight, true);
1854 compare(appDelegate.y >= PanelState.panelHeight, true);
1857+ function test_cantResizeWindowUnderPanel() {
1858+ loadShell("desktop");
1859+ shell.usageScenario = "desktop";
1860+ waitForRendering(shell);
1862+ var app = ApplicationManager.startApplication("dialer-app")
1863+ waitUntilAppWindowIsFullyLoaded(app);
1865+ var appContainer = findChild(shell, "appContainer");
1866+ var appDelegate = findChild(appContainer, "appDelegate_dialer-app");
1867+ var decoration = findChild(appDelegate, "appWindowDecoration_dialer-app");
1868+ verify(decoration);
1870+ // move it away from launcher and panel
1871+ appDelegate.x = units.gu(10)
1872+ appDelegate.y = units.gu(10)
1874+ // drag-resize the area up
1875+ mousePress(decoration, decoration.width/2, -units.gu(1));
1876+ mouseMove(decoration, decoration.width/2, -units.gu(100));
1878+ // verify we don't go past the panel
1879+ compare(appDelegate.y >= PanelState.panelHeight, true);
1857 function test_restoreWindowStateFixesIfUnderPanel() {
1882 function test_restoreWindowStateFixesIfUnderPanel() {
1858 loadDesktopShellWithApps();
1883 loadDesktopShellWithApps();
1859 var appRepeater = findChild(shell, "appRepeater")
1884 var appRepeater = findChild(shell, "appRepeater")