@@ -143,6 +143,19 @@ Item {
143143 verify(dashContentList.currentIndex >= 0);
144144 }
145145
146+ function test_current_index_after_reset() {
147+ var dashContentList = findChild(dashContent, "dashContentList");
148+ verify(dashContentList != undefined)
149+
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;
153+
154+ tryCompare(scopeLoadedSpy, "count", 5);
155+
156+ verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < 5);
157+ }
158+
146159 function test_movement_started_signal() {
147160 dashContent.setCurrentScopeAtIndex(3, true, false);
148161