on xenial help sign in
Fixed broken test based on dednick's input.
commitd319da76c2847cbbf31df79f6daecd1666598589 authorPawel Stolowski <pawel.stolowski@canonical.com> dateThu 13 Jun 2013, 17:26 (13 years ago) parented9f1a6
1 file changed+2−1
tests/qmltests/Dash/tst_DashContent.qml+2−1
tests/qmltests/Dash/tst_DashContent.qml+2−1
@@ -173,8 +173,9 @@ Item {
173173 verify(scopesModel.loaded == true);
174174
175175 // test greater than scope count.
176+ var currentScopeIndex = dashContent.currentIndex;
176177 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");
178179 }
179180
180181 function get_current_item_object_name() {