on xenial help sign in
add a test for dismissing the launcher (twice)
b67910aLukáš Tinkl
tests/qmltests/Launcher/tst_Launcher.qml+15
@@ -740,6 +740,21 @@ Item {
740 mouseRelease(draggedItem);
740 mouseRelease(draggedItem);
741 }
741 }
742
742
743+ function test_launcher_dismiss() {
744+ dragLauncherIntoView();
745+ verify(launcher.state == "visible");
746+ mouseClick(root);
747+ waitUntilLauncherDisappears();
748+ verify(launcher.state == "");
749+
750+ // and repeat, as a test for regression in lpbug#1531339
751+ dragLauncherIntoView();
752+ verify(launcher.state == "visible");
753+ mouseClick(root);
754+ waitUntilLauncherDisappears();
755+ verify(launcher.state == "");
756+ }
757+
743 function test_quicklist_positioning_data() {
758 function test_quicklist_positioning_data() {
744 return [
759 return [
745 {tag: "top", flickTo: "top", itemIndex: 0},
760 {tag: "top", flickTo: "top", itemIndex: 0},