@@ -519,13 +519,15 @@ Item {
519519
520520 function test_oskDisplacesWindow_data() {
521521 return [
522− {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: units.gu(5)},
523− {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: PanelState.panelHeight},
524− {tag: "displace a bit", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: (root.height / 2) - units.gu(40)},
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, oskEnabled: true},
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},
525526 ]
526527 }
527528
528529 function test_oskDisplacesWindow(data) {
530+ desktopStageLoader.item.oskEnabled = data.oskEnabled
529531 var dashAppDelegate = startApplication("unity8-dash");
530532 var oldOSKState = SurfaceManager.inputMethodSurface.state;
531533 SurfaceManager.inputMethodSurface.state = Mir.RestoredState;