on xenial help sign in
add a test for dismissing the launcher (twice)
commitb67910ababc69879f14241de0d1cd22a0a788a36 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 6 Jan 2016, 21:39 (11 years ago) parentdcd76e3
1 file changed+15
tests/qmltests/Launcher/tst_Launcher.qml+15
tests/qmltests/Launcher/tst_Launcher.qml+15
@@ -740,6 +740,21 @@ Item {
740740 mouseRelease(draggedItem);
741741 }
742742
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+
743758 function test_quicklist_positioning_data() {
744759 return [
745760 {tag: "top", flickTo: "top", itemIndex: 0},