@@ -124,13 +124,6 @@ Item {
124124
125125 var dashContentList = findChild(dashContent, "dashContentList");
126126 verify(dashContentList != undefined);
127− // TODO For Qt 5.2 remove this wait
128− // and the tryCompare and see if it still crashes when
129− // looping the test
130− wait(1000);
131− if (dashContentList.currentItem !== null) {
132− tryCompare(dashContentList.currentItem, "moving", false);
133− }
134127 scopesModel.clear();
135128 // wait for dash to empty scopes.
136129 tryCompare(dashContentList, "count", 0);
@@ -248,18 +241,27 @@ Item {
248241 tryCompare(scopesModel.get(2), "isActive", data.active2);
249242 }
250243
251− function test_hswipe_disabled_vswipe() {
244+ function checkFlickMovingAndNotInteractive()
245+ {
252246 var dashContentList = findChild(dashContent, "dashContentList");
253247
254− tryCompare(dashContentList, "interactive", true);
248+ if (dashContentList.currentItem.moving && !dashContentList.interactive)
249+ return true;
255250
256251 var startX = dashContentList.width/2;
257252 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));
254+
255+ return dashContentList.currentItem.moving && !dashContentList.interactive;
256+ }
259257
260− tryCompare(dashContentList.currentItem, "moving", true);
261258
262− compare(dashContentList.interactive, false);
259+ function test_hswipe_disabled_vswipe() {
260+ var dashContentList = findChild(dashContent, "dashContentList");
261+
262+ tryCompare(dashContentList, "interactive", true);
263+
264+ tryCompareFunction(checkFlickMovingAndNotInteractive, true);
263265 }
264266 }
265267}