@@ -38,7 +38,6 @@ import Unity.Indicators 0.1 as Indicators
39import "../../qml"
39import "../../qml"
40import "../../qml/Components"
40import "../../qml/Components"
41−import "../../qml/Components/PanelState"
42import "Stage"
41import "Stage"
44Rectangle {
43Rectangle {
@@ -66,12 +65,12 @@ Rectangle {
67 topLevelSurfaceList = null;
66 topLevelSurfaceList = null;
68 appMenuData.surfaceManager = null;
67 appMenuData.surfaceManager = null;
69− panelState = undefined;
68+ panelState = null;
73 property var topLevelSurfaceList: null
72 property var topLevelSurfaceList: null
74− property var panelState: undefined
73+ property var panelState: null
76 QtObject {
75 QtObject {
77 id: _screenWindow
76 id: _screenWindow
@@ -2666,9 +2665,9 @@ Rectangle {
2667 function test_oskDisplacesWindow_data() {
2666 function test_oskDisplacesWindow_data() {
2668 return [
2667 return [
2669− {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: units.gu(5), oskEnabled: true},
2668+ {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: function() { return units.gu(5); }, oskEnabled: true},
2670− {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: panelState.panelHeight, oskEnabled: true},
2669+ {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: function() { return panelState.panelHeight; }, oskEnabled: true},
2671− {tag: "osk not on this screen", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: units.gu(10), oskEnabled: false},
2670+ {tag: "osk not on this screen", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: function() { return units.gu(10); }, oskEnabled: false},
@@ -2694,7 +2693,7 @@ Rectangle {
2694 verify(initialY > panelState.panelHeight);
2693 verify(initialY > panelState.panelHeight);
2696 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, root.height / 2, root.width, root.height / 2));
2695 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, root.height / 2, root.width, root.height / 2));
2697− tryCompare(dashAppDelegate, "y", data.targetDisplacement);
2696+ tryCompare(dashAppDelegate, "y", data.targetDisplacement());
2699 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, 0, 0, 0));
2698 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, 0, 0, 0));
2700 tryCompare(dashAppDelegate, "y", initialY);
2699 tryCompare(dashAppDelegate, "y", initialY);
@@ -3127,7 +3126,7 @@ Rectangle {
3127 // double click the panel
3126 // double click the panel
3128 var panel = findChild(shell, "panel");
3127 var panel = findChild(shell, "panel");
3129 verify(panel);
3128 verify(panel);
3130− mouseDoubleClickSequence(panel, panel.width/2, PanelState.panelHeight/2, Qt.LeftButton, Qt.NoModifier, 300);
3129+ mouseDoubleClickSequence(panel, panel.width/2, panelState.panelHeight/2, Qt.LeftButton, Qt.NoModifier, 300);
3131 tryCompare(appDelegate, "state", "restored");
3130 tryCompare(appDelegate, "state", "restored");