~unity-team/unity8/trunk

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid
  • Date: 2015-12-08 15:36:39 UTC
  • mfrom: (2038.3.7 listviewforreviews)
  • Revision ID: ci-train-bot@canonical.com-20151208153639-f30q5gekwznpqh28
Create ratings on demand instead of all at the same time
 Fixes: #1492214, #1519898
Approved by: Michael Zanetti

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;