@@ -799,5 +799,39 @@ PanelTest {
799 tryCompare(appTitle, "visible", false, undefined, "App title should still be visible on mouse hover when panel decorations are visible");
799 tryCompare(appTitle, "visible", false, undefined, "App title should still be visible on mouse hover when panel decorations are visible");
800 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover when panel decorations not visible");
800 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover when panel decorations not visible");
803+ function test_keyboardNavigation_data() {
805+ {tag: "tab to start", doTab: false},
806+ {tag: "no tab to start", doTab: true}
810+ function test_keyboardNavigation(data) {
811+ var indicatorsBar = findChild(panel.indicators, "indicatorsBar");
813+ pullDownIndicatorsMenu();
815+ indicatorsBar.setCurrentItemIndex(0);
818+ keyClick(Qt.Key_Tab);
821+ keyClick(Qt.Key_Right);
822+ tryCompare(indicatorsBar, "currentItemIndex", 1);
824+ keyClick(Qt.Key_Right);
825+ tryCompare(indicatorsBar, "currentItemIndex", 2);
827+ keyClick(Qt.Key_Left);
828+ tryCompare(indicatorsBar, "currentItemIndex", 1);
830+ keyClick(Qt.Key_Left);
831+ tryCompare(indicatorsBar, "currentItemIndex", 0);
833+ keyClick(Qt.Key_Escape);
834+ tryCompare(panel.indicators, "fullyClosed", true);