on xenial help sign in
add a test to prove smashing all the 4 cursor keys together does nothing :)
commit961a4e5a639399627a9fb355bbc962214d6c0173 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 2 Nov 2015, 18:45 (11 years ago) parent9844507
1 file changed+12
tests/qmltests/Stages/tst_DesktopStage.qml+12
tests/qmltests/Stages/tst_DesktopStage.qml+12
@@ -305,5 +305,17 @@ Item {
305305 verify(ApplicationManager.count == 2); // verify the app is gone
306306 verify(ApplicationManager.findApplication(appName) === null); // and it's not in running apps
307307 }
308+
309+ function test_smashCursorKeys() {
310+ var apps = ["unity8-dash", "dialer-app", "camera-app"];
311+ apps.forEach(startApplication);
312+ verify(ApplicationManager.count == 3);
313+ keyClick(Qt.Key_D, Qt.MetaModifier|Qt.ControlModifier); // Ctrl+Super+D shortcut to minimize all
314+ tryCompare(ApplicationManager, "focusedApplicationId", ""); // verify no app is focused
315+
316+ // now try pressing all 4 arrow keys + ctrl + meta
317+ keyClick(Qt.Key_Up | Qt.Key_Down | Qt.Key_Left | Qt.Key_Right, Qt.MetaModifier|Qt.ControlModifier); // smash it!!!
318+ tryCompare(ApplicationManager, "focusedApplicationId", ""); // verify still no app is focused
319+ }
308320 }
309321}