@@ -23,8 +23,9 @@ import "../../../Launcher"
2323/* Nothing is shown at first. If you drag from left edge you will bring up the
2424 launcher. */
2525Item {
26+ id: root
2627 width: units.gu(50)
27− height: units.gu(50)
28+ height: units.gu(55)
2829
2930 Launcher {
3031 id: launcher
@@ -114,6 +115,9 @@ Item {
114115 revealer.dragLauncherIntoView()
115116
116117 var appIcon = findChild(launcher, "launcherDelegate0")
118+ print("clicking now!", appIcon.angle);
119+ wait(3000);
120+
117121 verify(appIcon != undefined)
118122
119123 mouseClick(appIcon, appIcon.width/2, appIcon.height/2)
@@ -206,6 +210,10 @@ Item {
206210 verify(launcher.lastSelectedApplication != "");
207211 compare(listView.contentY, oldY, "Launcher was flicked even though it should only launch an app");
208212 }
213+
214+ // Restore position on top
215+ listView.flick(0, units.gu(200));
216+ tryCompare(listView, "flicking", false)
209217 // Click somewhere in the empty space to make it hide in case it isn't
210218 mouseClick(launcher, launcher.width - units.gu(1), units.gu(1));
211219 revealer.waitUntilLauncherDisappears();
@@ -218,8 +226,17 @@ Item {
218226 when: windowShown
219227
220228 function test_initFirstUnfolded() {
229+ // Make sure noone changed the height of the window. The issue this test case
230+ // is verifying only happens on certain heights of the Launcher
231+ compare(root.height, units.gu(55));
232+
221233 var listView = findChild(launcher, "launcherListView");
234+ wait(1000);
235+ print("humppa", listView.contentY, listView.topMargin)
222236 compare(listView.contentY, -listView.topMargin, "Launcher did not start up with first item unfolded");
237+
238+ // Now do check that snapping is in fact enabled
239+ compare(listView.snapMode, ListView.SnapToItem, "Snapping is not enabled");
223240 }
224241 }
225242}