on xenial help sign in
fix test_saveRestoreMaximized()
commit96e9a9b19eb0702e65ea79ab9c93cbec757359d8 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 3 Apr 2017, 17:00 (10 years ago) parentc7d7633
1 file changed+3
tests/qmltests/Stage/tst_DesktopStage.qml+3
tests/qmltests/Stage/tst_DesktopStage.qml+3
@@ -856,6 +856,8 @@ Item {
856856 function test_saveRestoreMaximized() {
857857 var originalWindowCount = topSurfaceList.count;
858858 var appDelegate = startApplication("dialer-app");
859+ var decoratedWindow = findChild(appDelegate, "decoratedWindow");
860+ verify(decoratedWindow);
859861 compare(topSurfaceList.count, originalWindowCount + 1);
860862
861863 var initialWindowX = appDelegate.windowedX;
@@ -868,6 +870,7 @@ Item {
868870
869871 // Now change the state to maximized. The window should not keep updating the stored values
870872 maximizeAppDelegate(appDelegate);
873+ decoratedWindow.windowControlButtonsVisible = true;
871874
872875 // Close the window and restart the application
873876 var closeButton = findChild(appDelegate, "closeWindowButton");