@@ -519,13 +519,15 @@ Item {
520 function test_oskDisplacesWindow_data() {
520 function test_oskDisplacesWindow_data() {
522− {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: units.gu(5)},
522+ {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: units.gu(5), oskEnabled: true},
523− {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: PanelState.panelHeight},
523+ {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: PanelState.panelHeight, oskEnabled: true},
524− {tag: "displace a bit", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: (root.height / 2) - units.gu(40)},
524+ {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: PanelState.panelHeight, oskEnabled: true},
525+ {tag: "osk not on this screen", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: units.gu(10), oskEnabled: false},
528 function test_oskDisplacesWindow(data) {
529 function test_oskDisplacesWindow(data) {
530+ desktopStageLoader.item.oskEnabled = data.oskEnabled
529 var dashAppDelegate = startApplication("unity8-dash");
531 var dashAppDelegate = startApplication("unity8-dash");
530 var oldOSKState = SurfaceManager.inputMethodSurface.state;
532 var oldOSKState = SurfaceManager.inputMethodSurface.state;
531 SurfaceManager.inputMethodSurface.state = Mir.RestoredState;
533 SurfaceManager.inputMethodSurface.state = Mir.RestoredState;