@@ -239,7 +239,8 @@ TestCase {
239239 var x = item.width / 2;
240240 var y = item.height - units.gu(1);
241241 var toY = units.gu(1);
242− while (i < 5 && !item.atYEnd) {
242+ var maxIterations = 5 + item.contentHeight / item.height;
243+ while (i < maxIterations && !item.atYEnd) {
243244 touchFlick(item, x, y, x, toY);
244245 tryCompare(item, "moving", false);
245246 ++i;