on xenial help sign in
fix tests
commit59e031a94b80decd51b2572e5a0c23e09f3e4d75 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 24 Jun 2016, 00:12 (10 years ago) parent3d24fa0
1 file changed+3
tests/qmltests/Stages/tst_DesktopStage.qml+3
tests/qmltests/Stages/tst_DesktopStage.qml+3
@@ -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}