@@ -124,13 +124,6 @@ Item {
125 var dashContentList = findChild(dashContent, "dashContentList");
125 var dashContentList = findChild(dashContent, "dashContentList");
126 verify(dashContentList != undefined);
126 verify(dashContentList != undefined);
127− // TODO For Qt 5.2 remove this wait
128− // and the tryCompare and see if it still crashes when
131− if (dashContentList.currentItem !== null) {
132− tryCompare(dashContentList.currentItem, "moving", false);
134 scopesModel.clear();
127 scopesModel.clear();
135 // wait for dash to empty scopes.
128 // wait for dash to empty scopes.
136 tryCompare(dashContentList, "count", 0);
129 tryCompare(dashContentList, "count", 0);
@@ -248,18 +241,27 @@ Item {
248 tryCompare(scopesModel.get(2), "isActive", data.active2);
241 tryCompare(scopesModel.get(2), "isActive", data.active2);
251− function test_hswipe_disabled_vswipe() {
244+ function checkFlickMovingAndNotInteractive()
252 var dashContentList = findChild(dashContent, "dashContentList");
246 var dashContentList = findChild(dashContent, "dashContentList");
254− tryCompare(dashContentList, "interactive", true);
248+ if (dashContentList.currentItem.moving && !dashContentList.interactive)
256 var startX = dashContentList.width/2;
251 var startX = dashContentList.width/2;
257 var startY = dashContentList.height/2;
252 var startY = dashContentList.height/2;
258− touchFlick(dashContentList, startX, startY, startX, startY - units.gu(80));
253+ touchFlick(dashContentList, startX, startY, startX, startY - units.gu(40));
255+ return dashContentList.currentItem.moving && !dashContentList.interactive;
260− tryCompare(dashContentList.currentItem, "moving", true);
259+ function test_hswipe_disabled_vswipe() {
260+ var dashContentList = findChild(dashContent, "dashContentList");
262− compare(dashContentList.interactive, false);
262+ tryCompare(dashContentList, "interactive", true);
264+ tryCompareFunction(checkFlickMovingAndNotInteractive, true);