on xenial help sign in
Fixed broken test based on dednick's input.
d319da7Pawel Stolowski
tests/qmltests/Dash/tst_DashContent.qml+2−1
@@ -173,8 +173,9 @@ Item {
173 verify(scopesModel.loaded == true);
173 verify(scopesModel.loaded == true);
174
174
175 // test greater than scope count.
175 // test greater than scope count.
176+ var currentScopeIndex = dashContent.currentIndex;
176 dashContent.setCurrentScopeAtIndex(scopesModel.count, true, false);
177 dashContent.setCurrentScopeAtIndex(scopesModel.count, true, false);
177− compare(dashContent.currentIndex, 4);
178+ compare(dashContent.currentIndex, currentScopeIndex, "Scope should not change if changing to greater index than count");
178 }
179 }
179
180
180 function get_current_item_object_name() {
181 function get_current_item_object_name() {