on xenial help sign in
Put the test in a different place so merges better
commit997eaf2e8533b169ad0b38159ab318b8b9bac695 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 31 Jan 2017, 15:33 (10 years ago) parent2896d09
1 file changed+22−22
tests/qmltests/tst_Shell.qml+22−22
tests/qmltests/tst_Shell.qml+22−22
@@ -2732,6 +2732,28 @@ Rectangle {
27322732 keyRelease(Qt.Key_W, Qt.MetaModifier)
27332733 }
27342734
2735+ function test_launcherWindowResizeInteraction()
2736+ {
2737+ loadShell("desktop");
2738+ waitForRendering(shell)
2739+ shell.usageScenario = "desktop"
2740+ waitForRendering(shell)
2741+ swipeAwayGreeter();
2742+
2743+ var app1SurfaceId = topLevelSurfaceList.nextId;
2744+ var app1 = ApplicationManager.startApplication("dialer-app")
2745+ waitUntilAppWindowIsFullyLoaded(app1SurfaceId);
2746+
2747+ var launcherDelegate1 = findChild(shell, "launcherDelegate1");
2748+ mouseClick(launcherDelegate1, launcherDelegate1.width / 2, launcherDelegate1.height / 2, Qt.RightButton);
2749+
2750+ var appDelegate = findChild(shell, "appDelegate_" + app1SurfaceId);
2751+ mouseMove(shell, appDelegate.mapToItem(shell, 0, 0).x, launcherDelegate1.mapToItem(shell, 0, 0).y);
2752+
2753+ expectFail("", "Cursor should not change while launcher menu is open");
2754+ tryCompare(Mir, "cursorName", "left_side");
2755+ }
2756+
27352757 function test_panelTitleShowsWhenGreeterNotShown_data() {
27362758 return [
27372759 {tag: "phone" },
@@ -2779,27 +2801,5 @@ Rectangle {
27792801 }
27802802 tryCompareFunction(function() { return drawer.visible; }, false);
27812803 }
2782−
2783− function test_launcherWindowResizeInteraction()
2784− {
2785− loadShell("desktop");
2786− waitForRendering(shell)
2787− shell.usageScenario = "desktop"
2788− waitForRendering(shell)
2789− swipeAwayGreeter();
2790−
2791− var app1SurfaceId = topLevelSurfaceList.nextId;
2792− var app1 = ApplicationManager.startApplication("dialer-app")
2793− waitUntilAppWindowIsFullyLoaded(app1SurfaceId);
2794−
2795− var launcherDelegate1 = findChild(shell, "launcherDelegate1");
2796− mouseClick(launcherDelegate1, launcherDelegate1.width / 2, launcherDelegate1.height / 2, Qt.RightButton);
2797−
2798− var appDelegate = findChild(shell, "appDelegate_" + app1SurfaceId);
2799− mouseMove(shell, appDelegate.mapToItem(shell, 0, 0).x, launcherDelegate1.mapToItem(shell, 0, 0).y);
2800−
2801− expectFail("", "Cursor should not change while launcher menu is open");
2802− tryCompare(Mir, "cursorName", "left_side");
2803− }
28042804 }
28052805}