on xenial help sign in
add a test
commitc67bb6aaede0fa520fdca1ccff052f6a337dba94 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 23 Jan 2017, 15:25 (10 years ago) parenta00da00
1 file changed+11
tests/qmltests/tst_Shell.qml+11
tests/qmltests/tst_Shell.qml+11
@@ -1374,6 +1374,17 @@ Rectangle {
13741374 verify(coverPage.shown);
13751375 }
13761376
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+
13771388 function test_tabletLogin_data() {
13781389 return [
13791390 {tag: "auth error", user: "auth-error", loggedIn: false, password: ""},