~mzanetti/unity8/spread-blur

« back to all changes in this revision

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

  • Committer: Bileto Bot
  • Author(s): Lukáš Tinkl
  • Date: 2016-10-24 11:34:20 UTC
  • mfrom: (2400.11.5 doubleTapToMaximize)
  • Revision ID: ci-train-bot@canonical.com-20161024113420-8yhmw80k12ic00s1
Restore the double tap decoration to maximize feature (LP: #1627281)

Approved by: Michael Zanetti

Show diffs side-by-side

added added

removed removed

Lines of Context:
772
772
 
773
773
            tryCompare(mouseEaterSpy, "count", 0);
774
774
        }
 
775
 
 
776
        // regression test for https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1627281
 
777
        function test_doubleTapToMaximizeWindow() {
 
778
            var dialerAppDelegate = startApplication("dialer-app");
 
779
            verify(dialerAppDelegate);
 
780
            var decoration = findChild(dialerAppDelegate, "appWindowDecoration");
 
781
            verify(decoration);
 
782
 
 
783
            // simulate a double tap, with a slight erroneous move in between those 2 taps
 
784
            tap(decoration);
 
785
            touchPress(decoration);
 
786
            touchMove(decoration, decoration.width/2, decoration.height/2 - 10)
 
787
            touchRelease(decoration);
 
788
 
 
789
            tryCompare(dialerAppDelegate, "state", "maximized");
 
790
        }
775
791
    }
776
792
}