on xenial help sign in
add a test
c67bb6aMichael Zanetti
tests/qmltests/tst_Shell.qml+11
@@ -1374,6 +1374,17 @@ Rectangle {
1374 verify(coverPage.shown);
1374 verify(coverPage.shown);
1375 }
1375 }
1376
1376
1377+ function test_physicalHomeKeyPressFocusesDash() {
1378+ loadShell("phone");
1379+
1380+ var galleryApp = ApplicationManager.startApplication("gallery-app");
1381+ tryCompare(ApplicationManager, "focusedApplicationId", "gallery-app");
1382+
1383+ var windowInputMonitor = findInvisibleChild(shell, "windowInputMonitor");
1384+ windowInputMonitor.homeKeyActivated();
1385+ tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
1386+ }
1387+
1377 function test_tabletLogin_data() {
1388 function test_tabletLogin_data() {
1378 return [
1389 return [
1379 {tag: "auth error", user: "auth-error", loggedIn: false, password: ""},
1390 {tag: "auth error", user: "auth-error", loggedIn: false, password: ""},