@@ -311,5 +311,26 @@ StyledItem {
312 compare(launcher.lastSelectedApplication, "calendar-app");
312 compare(launcher.lastSelectedApplication, "calendar-app");
315+ function test_focusMovesCorrectlyBetweenLauncherAndDrawer() {
316+ var panel = findChild(launcher, "launcherPanel");
317+ var drawer = findChild(launcher, "drawer");
318+ var searchField = findChild(drawer, "searchField");
320+ launcher.openForKeyboardNavigation();
321+ tryCompare(panel, "highlightIndex", -1);
322+ keyClick(Qt.Key_Down);
323+ tryCompare(panel, "highlightIndex", 0);
325+ launcher.openDrawer(true);
326+ tryCompare(searchField, "focus", true);
328+ keyClick(Qt.Key_Escape);
330+ launcher.openForKeyboardNavigation();
331+ tryCompare(panel, "highlightIndex", -1);
332+ keyClick(Qt.Key_Down);
333+ tryCompare(panel, "highlightIndex", 0);