Make Dash::test_show_scope_on_load more robust
If we are testing showScopeOnLoaded make sure we force a scope reload after we set it, otherwise it may just happen that the scope has already been loaded and the expectaction that we'll change the list to it is just wrong.
Approved by PS Jenkins bot, Michał Sawicz.
commit342a5515fcc77121f9ca9d146add9214c66c822b
authorAlbert Astals <albert.astals@canonical.com>
dateFri 8 Nov 2013, 18:22 (13 years ago)
parenta291b11469fb81
tests/qmltests/Dash/tst_Dash.qml+2
@@ -103,6 +103,8 @@ Item {
103103 return;
104104 }
105105 dash.showScopeOnLoaded = data.tag
106+ scopes.clear();
107+ scopes.load();
106108
107109 var dashContentList = findChild(dash, "dashContentList");
108110 verify(dashContentList != undefined);