@@ -143,6 +143,19 @@ Item {
143 verify(dashContentList.currentIndex >= 0);
143 verify(dashContentList.currentIndex >= 0);
146+ function test_current_index_after_reset() {
147+ var dashContentList = findChild(dashContent, "dashContentList");
148+ verify(dashContentList != undefined)
150+ compare(dashContentList.count, 0, "DashContent should have 0 items when it starts");
151+ // pretend we're running after a model reset
152+ dashContentList.currentIndex = 27;
154+ tryCompare(scopeLoadedSpy, "count", 5);
156+ verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < 5);
146 function test_movement_started_signal() {
159 function test_movement_started_signal() {
147 dashContent.setCurrentScopeAtIndex(3, true, false);
160 dashContent.setCurrentScopeAtIndex(3, true, false);