@@ -34,12 +34,6 @@ Item {
3434 'MockScope5': { 'movementStarted': 0, 'positionedAtBeginning': 0 }
3535 }
3636
37− Item {
38− // make PageHeader happy
39− id: greeter
40− signal shownChanged
41− }
42−
4337 Scopes {
4438 id: scopesModel
4539 }
@@ -105,6 +99,7 @@ Item {
10599 when: windowShown
106100
107101 function init() {
102+ scopesModel.clear();
108103 scopesModel.load();
109104 }
110105
@@ -161,7 +156,7 @@ Item {
161156 var dashContentList = findChild(dashContent, "dashContentList");
162157 verify(dashContentList != undefined);
163158
164− tryCompareFunction(function() {return dashContentList.currentItem.item !== null;}, true);
159+ tryCompare(scopeLoadedSpy, "count", 5);
165160 dashContent.setCurrentScopeAtIndex(0, true, false);
166161 dashContentList.currentItem.item.endReached();
167162