@@ -438,26 +438,26 @@ TestCase {
438438 while (rootItem.parent != undefined) {
439439 rootItem = rootItem.parent;
440440 }
441− removeTimeConstraintsFromDirectionalDragAreas(rootItem);
441+ removeTimeConstraintsFromSwipeAreas(rootItem);
442442 }
443443
444444 /*
445445 In qmltests, sequences of touch events are sent all at once, unlike in "real life".
446446 Also qmltests might run really slowly, e.g. when run from inside virtual machines.
447447 Thus to remove a variable that qmltests cannot really control, namely time, this
448− function removes all constraints from DirectionalDragAreas that are sensible to
448+ function removes all constraints from SwipeAreas that are sensible to
449449 elapsed time.
450450
451− This effectively makes DirectionalDragAreas easier to fool.
451+ This effectively makes SwipeAreas easier to fool.
452452 */
453− function removeTimeConstraintsFromDirectionalDragAreas(item) {
454−
455− // use duck-typing to identify a DirectionalDragArea
456− if (item.removeTimeConstraints != undefined) {
457− item.removeTimeConstraints();
453+ function removeTimeConstraintsFromSwipeAreas(item) {
454+ if (UT.Util.isInstanceOf(item, "UCSwipeArea")) {
455+ var privateSwipeArea = UT.Util.findQObjectChild(item, "UCSwipeAreaPrivate");
456+ privateSwipeArea.setMaxTime(60 * 60 * 1000);
457+ privateSwipeArea.compositionTime = 0;
458458 } else {
459459 for (var i in item.children) {
460− removeTimeConstraintsFromDirectionalDragAreas(item.children[i]);
460+ removeTimeConstraintsFromSwipeAreas(item.children[i]);
461461 }
462462 }
463463 }