@@ -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 {
@@ -64,12 +63,12 @@ Rectangle {
64 panelState = testCase.findInvisibleChild(shell, "panelState");
63 panelState = testCase.findInvisibleChild(shell, "panelState");
66 topLevelSurfaceList = null;
65 topLevelSurfaceList = null;
67− panelState = undefined;
66+ panelState = null;
71 property var topLevelSurfaceList: null
70 property var topLevelSurfaceList: null
72− property var panelState: undefined
71+ property var panelState: null
74 QtObject {
73 QtObject {
75 id: _screenWindow
74 id: _screenWindow
@@ -2657,9 +2656,9 @@ Rectangle {
2658 function test_oskDisplacesWindow_data() {
2657 function test_oskDisplacesWindow_data() {
2659 return [
2658 return [
2660− {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: units.gu(5), oskEnabled: true},
2659+ {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: function() { return units.gu(5); }, oskEnabled: true},
2661− {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: panelState.panelHeight, oskEnabled: true},
2660+ {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: function() { return panelState.panelHeight; }, oskEnabled: true},
2662− {tag: "osk not on this screen", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: units.gu(10), oskEnabled: false},
2661+ {tag: "osk not on this screen", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: function() { return units.gu(10); }, oskEnabled: false},
@@ -2685,7 +2684,7 @@ Rectangle {
2685 verify(initialY > panelState.panelHeight);
2684 verify(initialY > panelState.panelHeight);
2687 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, root.height / 2, root.width, root.height / 2));
2686 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, root.height / 2, root.width, root.height / 2));
2688− tryCompare(dashAppDelegate, "y", data.targetDisplacement);
2687+ tryCompare(dashAppDelegate, "y", data.targetDisplacement());
2690 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, 0, 0, 0));
2689 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, 0, 0, 0));
2691 tryCompare(dashAppDelegate, "y", initialY);
2690 tryCompare(dashAppDelegate, "y", initialY);
@@ -3118,7 +3117,7 @@ Rectangle {
3118 // double click the panel
3117 // double click the panel
3119 var panel = findChild(shell, "panel");
3118 var panel = findChild(shell, "panel");
3120 verify(panel);
3119 verify(panel);
3121− mouseDoubleClickSequence(panel, panel.width/2, PanelState.panelHeight/2, Qt.LeftButton, Qt.NoModifier, 300);
3120+ mouseDoubleClickSequence(panel, panel.width/2, panelState.panelHeight/2, Qt.LeftButton, Qt.NoModifier, 300);
3122 tryCompare(appDelegate, "state", "restored");
3121 tryCompare(appDelegate, "state", "restored");