@@ -38,7 +38,6 @@ import Unity.Indicators 0.1 as Indicators
3838
3939import "../../qml"
4040import "../../qml/Components"
41−import "../../qml/Components/PanelState"
4241import "Stage"
4342
4443Rectangle {
@@ -64,12 +63,12 @@ Rectangle {
6463 panelState = testCase.findInvisibleChild(shell, "panelState");
6564 } else {
6665 topLevelSurfaceList = null;
67− panelState = undefined;
66+ panelState = null;
6867 }
6968 }
7069
7170 property var topLevelSurfaceList: null
72− property var panelState: undefined
71+ property var panelState: null
7372
7473 QtObject {
7574 id: _screenWindow
@@ -2657,9 +2656,9 @@ Rectangle {
26572656
26582657 function test_oskDisplacesWindow_data() {
26592658 return [
2660− {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: units.gu(5), oskEnabled: true},
2661− {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: 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},
2659+ {tag: "no need to displace", windowHeight: units.gu(10), windowY: units.gu(5), targetDisplacement: function() { return units.gu(5); }, oskEnabled: true},
2660+ {tag: "displace to top", windowHeight: units.gu(50), windowY: units.gu(10), targetDisplacement: function() { return panelState.panelHeight; }, oskEnabled: true},
2661+ {tag: "osk not on this screen", windowHeight: units.gu(40), windowY: units.gu(10), targetDisplacement: function() { return units.gu(10); }, oskEnabled: false},
26632662 ]
26642663 }
26652664
@@ -2685,7 +2684,7 @@ Rectangle {
26852684 verify(initialY > panelState.panelHeight);
26862685
26872686 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());
26892688
26902689 topLevelSurfaceList.inputMethodSurface.setInputBounds(Qt.rect(0, 0, 0, 0));
26912690 tryCompare(dashAppDelegate, "y", initialY);
@@ -3118,7 +3117,7 @@ Rectangle {
31183117 // double click the panel
31193118 var panel = findChild(shell, "panel");
31203119 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);
31223121 tryCompare(appDelegate, "state", "restored");
31233122 }
31243123