@@ -113,6 +113,10 @@ Rectangle {
115 text: "Launcher always visible"
115 text: "Launcher always visible"
117+ anchors.fill: parent
118+ onClicked: lockedVisibleCheckBox.checked = !lockedVisibleCheckBox.checked
@@ -261,9 +265,15 @@ Rectangle {
261 // iteration to do its work. So to ensure the reload, we will wait until the
265 // iteration to do its work. So to ensure the reload, we will wait until the
262 // Shell instance gets destroyed.
266 // Shell instance gets destroyed.
263 tryCompare(launcherLoader, "itemDestroyed", true);
267 tryCompare(launcherLoader, "itemDestroyed", true);
270+ function initLauncher() {
264 launcherLoader.active = true;
271 launcherLoader.active = true;
272+ tryCompare(launcherLoader, "itemDestroyed", false);
266 function init() {
275 function init() {
267 var panel = findChild(launcher, "launcherPanel");
277 var panel = findChild(launcher, "launcherPanel");
268 verify(!!panel);
278 verify(!!panel);
@@ -279,7 +289,7 @@ Rectangle {
279 // growing while populating it with icons etc.
289 // growing while populating it with icons etc.
280 tryCompare(listView, "flicking", false);
290 tryCompare(listView, "flicking", false);
282− compare(listView.contentY, -listView.topMargin, "Launcher did not start up with first item unfolded");
292+ tryCompare(listView, "contentY", -listView.topMargin, 5000, "Launcher did not start up with first item unfolded");
284 // Now do check that snapping is in fact enabled
294 // Now do check that snapping is in fact enabled
285 compare(listView.snapMode, ListView.SnapToItem, "Snapping is not enabled");
295 compare(listView.snapMode, ListView.SnapToItem, "Snapping is not enabled");
@@ -538,6 +548,7 @@ Rectangle {
540 function test_clickFlick_data() {
550 function test_clickFlick_data() {
541 var listView = findChild(launcher, "launcherListView");
552 var listView = findChild(launcher, "launcherListView");
543 {tag: "unfolded top", positionViewAtBeginning: true,
554 {tag: "unfolded top", positionViewAtBeginning: true,