@@ -799,5 +799,39 @@ PanelTest {
799799 tryCompare(appTitle, "visible", false, undefined, "App title should still be visible on mouse hover when panel decorations are visible");
800800 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover when panel decorations not visible");
801801 }
802+
803+ function test_keyboardNavigation_data() {
804+ return [
805+ {tag: "tab to start", doTab: false},
806+ {tag: "no tab to start", doTab: true}
807+ ]
808+ }
809+
810+ function test_keyboardNavigation(data) {
811+ var indicatorsBar = findChild(panel.indicators, "indicatorsBar");
812+
813+ pullDownIndicatorsMenu();
814+
815+ indicatorsBar.setCurrentItemIndex(0);
816+
817+ if (data.doTab) {
818+ keyClick(Qt.Key_Tab);
819+ }
820+
821+ keyClick(Qt.Key_Right);
822+ tryCompare(indicatorsBar, "currentItemIndex", 1);
823+
824+ keyClick(Qt.Key_Right);
825+ tryCompare(indicatorsBar, "currentItemIndex", 2);
826+
827+ keyClick(Qt.Key_Left);
828+ tryCompare(indicatorsBar, "currentItemIndex", 1);
829+
830+ keyClick(Qt.Key_Left);
831+ tryCompare(indicatorsBar, "currentItemIndex", 0);
832+
833+ keyClick(Qt.Key_Escape);
834+ tryCompare(panel.indicators, "fullyClosed", true);
835+ }
802836 }
803837}