~mzanetti/unity8/hide-drawer-on-launcher-activate

« back to all changes in this revision

Viewing changes to tests/qmltests/tst_Shell.qml

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid
  • Date: 2017-02-16 13:46:11 UTC
  • mfrom: (2800.2.2 ehwlmio)
  • Revision ID: ci-train-bot@canonical.com-20170216134611-spw0zti0puzd26al
Eat hover events when the launcher quicklist is open

This way we don't change the mouse cursor wrongly to resize windows for example (LP: #1640776)

Approved by: Michael Zanetti, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
2784
2784
            keyRelease(Qt.Key_W, Qt.MetaModifier)
2785
2785
        }
2786
2786
 
 
2787
        function test_launcherWindowResizeInteraction()
 
2788
        {
 
2789
            loadShell("desktop");
 
2790
            waitForRendering(shell)
 
2791
            shell.usageScenario = "desktop"
 
2792
            waitForRendering(shell)
 
2793
            swipeAwayGreeter();
 
2794
 
 
2795
            var app1SurfaceId = topLevelSurfaceList.nextId;
 
2796
            var app1 = ApplicationManager.startApplication("dialer-app")
 
2797
            waitUntilAppWindowIsFullyLoaded(app1SurfaceId);
 
2798
 
 
2799
            var launcherDelegate1 = findChild(shell, "launcherDelegate1");
 
2800
            mouseClick(launcherDelegate1, launcherDelegate1.width / 2, launcherDelegate1.height / 2, Qt.RightButton);
 
2801
 
 
2802
            var appDelegate = findChild(shell, "appDelegate_" + app1SurfaceId);
 
2803
            mouseMove(shell, appDelegate.mapToItem(shell, 0, 0).x, launcherDelegate1.mapToItem(shell, 0, 0).y);
 
2804
 
 
2805
            expectFail("", "Cursor should not change while launcher menu is open");
 
2806
            tryCompare(Mir, "cursorName", "left_side");
 
2807
        }
 
2808
 
2787
2809
        function test_panelTitleShowsWhenGreeterNotShown_data() {
2788
2810
            return [
2789
2811
                {tag: "phone" },