on xenial help sign in
Make 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

commit469fb819c0a656c59b11ff66a1536a4e05761042 authorAlbert Astals <albert.astals@canonical.com> dateFri 8 Nov 2013, 10:24 (13 years ago) parenta6883d5
1 file changed+2
tests/qmltests/Dash/tst_Dash.qml+2
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);