@@ -1201,7 +1201,14 @@ Item {
1204+ function test_cancelKbdNavigationWitMouse_data() {
1206+ {tag: "locked out", autohide: false },
1207+ {tag: "autohide", autohide: true },
1204− function test_cancelKbdNavigationWitMouse() {
1211+ function test_cancelKbdNavigationWitMouse(data) {
1205 launcher.openForKeyboardNavigation();
1212 launcher.openForKeyboardNavigation();
1206 waitForRendering(launcher);
1213 waitForRendering(launcher);
@@ -1219,7 +1226,12 @@ Item {
1220 mouseClick(root, root.width / 2, units.gu(2));
1227 mouseClick(root, root.width / 2, units.gu(2));
1229+ if (data.autohide) {
1222− tryCompare(launcher, "state", "");
1230+ tryCompare(launcher, "state", "");
1232+ tryCompare(launcher, "state", "visible");
1223 tryCompare(launcherPanel, "highlightIndex", -2);
1235 tryCompare(launcherPanel, "highlightIndex", -2);