@@ -1854,6 +1854,31 @@ Rectangle {
18541854 compare(appDelegate.y >= PanelState.panelHeight, true);
18551855 }
18561856
1857+ function test_cantResizeWindowUnderPanel() {
1858+ loadShell("desktop");
1859+ shell.usageScenario = "desktop";
1860+ waitForRendering(shell);
1861+
1862+ var app = ApplicationManager.startApplication("dialer-app")
1863+ waitUntilAppWindowIsFullyLoaded(app);
1864+
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);
1869+
1870+ // move it away from launcher and panel
1871+ appDelegate.x = units.gu(10)
1872+ appDelegate.y = units.gu(10)
1873+
1874+ // drag-resize the area up
1875+ mousePress(decoration, decoration.width/2, -units.gu(1));
1876+ mouseMove(decoration, decoration.width/2, -units.gu(100));
1877+
1878+ // verify we don't go past the panel
1879+ compare(appDelegate.y >= PanelState.panelHeight, true);
1880+ }
1881+
18571882 function test_restoreWindowStateFixesIfUnderPanel() {
18581883 loadDesktopShellWithApps();
18591884 var appRepeater = findChild(shell, "appRepeater")