@@ -856,6 +856,8 @@ Item {
856 function test_saveRestoreMaximized() {
856 function test_saveRestoreMaximized() {
857 var originalWindowCount = topSurfaceList.count;
857 var originalWindowCount = topSurfaceList.count;
858 var appDelegate = startApplication("dialer-app");
858 var appDelegate = startApplication("dialer-app");
859+ var decoratedWindow = findChild(appDelegate, "decoratedWindow");
860+ verify(decoratedWindow);
859 compare(topSurfaceList.count, originalWindowCount + 1);
861 compare(topSurfaceList.count, originalWindowCount + 1);
861 var initialWindowX = appDelegate.windowedX;
863 var initialWindowX = appDelegate.windowedX;
@@ -868,6 +870,7 @@ Item {
869 // Now change the state to maximized. The window should not keep updating the stored values
871 // Now change the state to maximized. The window should not keep updating the stored values
870 maximizeAppDelegate(appDelegate);
872 maximizeAppDelegate(appDelegate);
873+ decoratedWindow.windowControlButtonsVisible = true;
872 // Close the window and restart the application
875 // Close the window and restart the application
873 var closeButton = findChild(appDelegate, "closeWindowButton");
876 var closeButton = findChild(appDelegate, "closeWindowButton");