@@ -688,6 +688,8 @@ Item {
688688
689689 function test_oskDisplacesWindow(data) {
690690 var dashAppDelegate = startApplication("unity8-dash");
691+ var oldOSKState = SurfaceManager.inputMethodSurface.state;
692+ SurfaceManager.inputMethodSurface.state = Mir.RestoredState;
691693 verify(dashAppDelegate);
692694 dashAppDelegate.requestedHeight = data.windowHeight;
693695 dashAppDelegate.requestedY = data.windowY;
@@ -700,6 +702,7 @@ Item {
700702
701703 UbuntuKeyboardInfo.height = 0;
702704 tryCompare(dashAppDelegate, "y", initialY);
705+ SurfaceManager.inputMethodSurface.state = oldOSKState;
703706 }
704707 }
705708}