@@ -28,6 +28,18 @@ Item {
29 property ListModel searchHistory: ListModel {}
29 property ListModel searchHistory: ListModel {}
32+ // Fake. Make a few components less noisy
38+ // Fake. Make a few components less noisy
31 property var scopeStatus: {
43 property var scopeStatus: {
32 'MockScope1': { 'movementStarted': 0, 'positionedAtBeginning': 0 },
44 'MockScope1': { 'movementStarted': 0, 'positionedAtBeginning': 0 },
33 'MockScope2': { 'movementStarted': 0, 'positionedAtBeginning': 0 },
45 'MockScope2': { 'movementStarted': 0, 'positionedAtBeginning': 0 },
@@ -111,10 +123,17 @@ Item {
111 clear_scope_status();
123 clear_scope_status();
112 dashContent.visible = true;
124 dashContent.visible = true;
114− scopesModel.clear();
115− // wait for dash to empty scopes.
116 var dashContentList = findChild(dashContent, "dashContentList");
126 var dashContentList = findChild(dashContent, "dashContentList");
117 verify(dashContentList != undefined);
127 verify(dashContentList != undefined);
128+ // TODO For Qt 5.2 remove this wait
129+ // and the tryCompare and see if it still crashes when
132+ if (dashContentList.currentItem !== null) {
133+ tryCompare(dashContentList.currentItem, "moving", false);
135+ scopesModel.clear();
136+ // wait for dash to empty scopes.
118 tryCompare(dashContentList, "count", 0);
137 tryCompare(dashContentList, "count", 0);
@@ -237,7 +256,7 @@ Item {
238 var startX = dashContentList.width/2;
257 var startX = dashContentList.width/2;
239 var startY = dashContentList.height/2;
258 var startY = dashContentList.height/2;
240− touchFlick(dashContentList, startX, startY, startX, startY - units.gu(800));
259+ touchFlick(dashContentList, startX, startY, startX, startY - units.gu(80));
242 tryCompare(dashContentList.currentItem, "moving", true);
261 tryCompare(dashContentList.currentItem, "moving", true);