~lukas-kde/unity8/betterSessionManagement

« back to all changes in this revision

Viewing changes to tests/qmltests/Stage/tst_PhoneStage.qml

  • Committer: Lukáš Tinkl
  • Date: 2017-03-24 11:57:27 UTC
  • mfrom: (2800.1.91 unity8)
  • Revision ID: lukas.tinkl@canonical.com-20170324115727-34c7tvv3qnxvxzdj
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
418
418
 
419
419
        function test_mouseEdgePush() {
420
420
            addApps(1);
421
 
            mouseMove(stage, stage.width -  1, units.gu(10));
422
 
            for (var i = 0; i < units.gu(10); i++) {
423
 
                stage.pushRightEdge(1);
424
 
            }
425
 
            mouseMove(stage, stage.width - units.gu(5), units.gu(10));
 
421
            // When progress goes to 1 it should switch to spread, but stay there even if progress goes back
 
422
            stage.rightEdgePushProgress = 1;
 
423
            compare(stage.state, "spread");
 
424
            stage.rightEdgePushProgress = 0;
426
425
            compare(stage.state, "spread");
427
426
        }
428
427