~cimi/unity8/preview-sharing-fix-broken-binding

« back to all changes in this revision

Viewing changes to tests/utils/modules/Unity/Test/UnityTestCase.qml

  • Committer: Pawel Stolowski
  • Date: 2015-12-15 15:10:16 UTC
  • mfrom: (2079.1.20 unity8)
  • Revision ID: pawel.stolowski@canonical.com-20151215151016-n136phkhmh0jo4ki
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
        var x = item.width / 2;
240
240
        var y = item.height - units.gu(1);
241
241
        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) {
243
244
            touchFlick(item, x, y, x, toY);
244
245
            tryCompare(item, "moving", false);
245
246
            ++i;