@@ -288,12 +288,14 @@ Item {
288 var dashNavigationButton = findChild(dashContentList.currentItem, "navigationButton");
288 var dashNavigationButton = findChild(dashContentList.currentItem, "navigationButton");
289 compare(dashNavigationButton.showList, false);
289 compare(dashNavigationButton.showList, false);
290 waitForRendering(dashNavigationButton);
290 waitForRendering(dashNavigationButton);
291− mouseClick(dashNavigationButton, 0, 0);
291+ mouseClick(dashNavigationButton, dashNavigationButton.width / 2, dashNavigationButton.height / 2);
292 compare(dashNavigationButton.showList, true);
292 compare(dashNavigationButton.showList, true);
294 var navigationListView = findChild(dashNavigationButton, "navigationListView");
294 var navigationListView = findChild(dashNavigationButton, "navigationListView");
295+ tryCompareFunction(function() {
295− compare(navigationListView.count, 1);
296+ return navigationListView.currentItem &&
296− tryCompare(navigationListView.currentItem.navigation, "loaded", true);
297+ navigationListView.currentItem.navigation &&
298+ navigationListView.currentItem.navigation.loaded; }, true);
298 waitForRendering(navigationListView);
300 waitForRendering(navigationListView);
299 waitForRendering(navigationListView.currentItem);
301 waitForRendering(navigationListView.currentItem);
@@ -410,8 +412,10 @@ Item {
410 compare(dashNavigationButton.showList, true);
412 compare(dashNavigationButton.showList, true);
412 var navigationListView = findChild(dashNavigationButton, "navigationListView");
414 var navigationListView = findChild(dashNavigationButton, "navigationListView");
415+ tryCompareFunction(function() {
413− compare(navigationListView.count, 1);
416+ return navigationListView.currentItem &&
414− tryCompare(navigationListView.currentItem.navigation, "loaded", true);
417+ navigationListView.currentItem.navigation &&
418+ navigationListView.currentItem.navigation.loaded; }, true);
416 waitForRendering(navigationListView);
420 waitForRendering(navigationListView);
417 waitForRendering(navigationListView.currentItem);
421 waitForRendering(navigationListView.currentItem);
@@ -475,7 +479,10 @@ Item {
475 compare(dashAltNavigationButton.showList, true);
479 compare(dashAltNavigationButton.showList, true);
477 var navigationListView = findChild(dashAltNavigationButton, "navigationListView");
481 var navigationListView = findChild(dashAltNavigationButton, "navigationListView");
482+ tryCompareFunction(function() {
478− tryCompare(navigationListView.currentItem.navigation, "loaded", true);
483+ return navigationListView.currentItem &&
484+ navigationListView.currentItem.navigation &&
485+ navigationListView.currentItem.navigation.loaded; }, true);
480 var blackRect = findChild(dashNavigation, "blackRect");
487 var blackRect = findChild(dashNavigation, "blackRect");
481 tryCompare(blackRect, "opacity", 0.5);
488 tryCompare(blackRect, "opacity", 0.5);