@@ -623,6 +623,28 @@ Item {
623 tryCompare(quickList, "state", "");
623 tryCompare(quickList, "state", "");
626+ function test_quickListMenuOnRMB() {
627+ dragLauncherIntoView();
628+ var clickedItem = findChild(launcher, "launcherDelegate5")
629+ var quickList = findChild(launcher, "quickList")
630+ var quickListShape = findChild(launcher, "quickListShape")
631+ var dndArea = findChild(launcher, "dndArea");
634+ tryCompare(quickListShape, "visible", false)
637+ mouseClick(clickedItem, clickedItem.width / 2, clickedItem.height / 2, Qt.RightButton)
638+ tryCompare(quickListShape, "visible", true)
639+ verify(quickList, "state", "open")
640+ verify(dndArea, "dragging", false)
642+ // Click somewhere in the empty space to dismiss the quicklist
643+ mouseClick(launcher, launcher.width - units.gu(1), units.gu(1));
644+ tryCompare(quickListShape, "visible", false);
645+ verify(quickList, "state", "")
626 function test_revealByHover() {
648 function test_revealByHover() {
627 var panel = findChild(launcher, "launcherPanel");
649 var panel = findChild(launcher, "launcherPanel");
628 verify(!!panel);
650 verify(!!panel);