@@ -1201,7 +1201,14 @@ Item {
12011201 }
12021202 }
12031203
1204− function test_cancelKbdNavigationWitMouse() {
1204+ function test_cancelKbdNavigationWitMouse_data() {
1205+ return [
1206+ {tag: "locked out", autohide: false },
1207+ {tag: "autohide", autohide: true },
1208+ ]
1209+ }
1210+
1211+ function test_cancelKbdNavigationWitMouse(data) {
12051212 launcher.openForKeyboardNavigation();
12061213 waitForRendering(launcher);
12071214
@@ -1219,7 +1226,12 @@ Item {
12191226
12201227 mouseClick(root, root.width / 2, units.gu(2));
12211228
1222− tryCompare(launcher, "state", "");
1229+ if (data.autohide) {
1230+ tryCompare(launcher, "state", "");
1231+ } else {
1232+ tryCompare(launcher, "state", "visible");
1233+ }
1234+
12231235 tryCompare(launcherPanel, "highlightIndex", -2);
12241236 }
12251237 }