on xenial help sign in
fix tests
59e031aMichael Zanetti
tests/qmltests/Stages/tst_DesktopStage.qml+3
@@ -688,6 +688,8 @@ Item {
688
688
689 function test_oskDisplacesWindow(data) {
689 function test_oskDisplacesWindow(data) {
690 var dashAppDelegate = startApplication("unity8-dash");
690 var dashAppDelegate = startApplication("unity8-dash");
691+ var oldOSKState = SurfaceManager.inputMethodSurface.state;
692+ SurfaceManager.inputMethodSurface.state = Mir.RestoredState;
691 verify(dashAppDelegate);
693 verify(dashAppDelegate);
692 dashAppDelegate.requestedHeight = data.windowHeight;
694 dashAppDelegate.requestedHeight = data.windowHeight;
693 dashAppDelegate.requestedY = data.windowY;
695 dashAppDelegate.requestedY = data.windowY;
@@ -700,6 +702,7 @@ Item {
700
702
701 UbuntuKeyboardInfo.height = 0;
703 UbuntuKeyboardInfo.height = 0;
702 tryCompare(dashAppDelegate, "y", initialY);
704 tryCompare(dashAppDelegate, "y", initialY);
705+ SurfaceManager.inputMethodSurface.state = oldOSKState;
703 }
706 }
704 }
707 }
705}
708}