@@ -211,6 +211,27 @@ Item {
211211 compare(dashContentList.currentIndex, 0);
212212 }
213213
214+ function test_manage_dash_open_no_favorites() {
215+ // Make it so there are no favorites
216+ scopes.clear();
217+ var dashContentList = findChild(dash, "dashContentList");
218+ tryCompare(dashContentList, "count", 0);
219+
220+ // Show the manage dash
221+ touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
222+ var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
223+ tryCompare(bottomEdgeController, "progress", 1);
224+
225+ // Go back
226+ var scopesList = findChild(dash, "scopesList");
227+ var scopesListPageHeader = findChild(scopesList, "pageHeader");
228+ var backButton = findChild(findChild(scopesListPageHeader, "innerPageHeader"), "backButton");
229+ mouseClick(backButton, 0, 0);
230+
231+ // Check temp scope is gone
232+ tryCompare(bottomEdgeController, "progress", 0);
233+ }
234+
214235 function test_setCurrentScope() {
215236 var dashContentList = findChild(dash, "dashContentList");
216237 var startX = dash.width - units.gu(1);