@@ -45,12 +45,8 @@ Item {
45 name: "Dash"
45 name: "Dash"
46 when: windowShown
46 when: windowShown
50− Component.onCompleted: {
51− var dashContent = findChild(dash, "dashContent");
48+ readonly property Item dashContent: findChild(dash, "dashContent");
52− scopes = dashContent.scopes;
49+ readonly property var scopes: dashContent.scopes
55 function init() {
51 function init() {
56 // clear and reload the scopes.
52 // clear and reload the scopes.
@@ -91,5 +87,24 @@ Item {
91 verify(dashContentList != undefined);
87 verify(dashContentList != undefined);
92 tryCompare(dashContentList, "currentIndex", data.visualIndex);
88 tryCompare(dashContentList, "currentIndex", data.visualIndex);
91+ function test_processing_indicator() {
92+ tryCompare(scopes, "loaded", true);
94+ var processingIndicator = findChild(dash, "processingIndicator");
95+ verify(processingIndicator, "Can't find the processing indicator.");
97+ verify(!processingIndicator.visible, "Processing indicator should be visible.");
99+ tryCompareFunction(function() {
100+ return scopes.getScope(dashContent.currentIndex) != null;
102+ var currentScope = scopes.getScope(dashContent.currentIndex);
103+ verify(currentScope, "Can't find the current scope.");
105+ currentScope.setSearchInProgress(true);
107+ tryCompare(processingIndicator, "visible", true);