on xenial help sign in
add a test to prove smashing all the 4 cursor keys together does nothing :)
961a4e5Lukáš Tinkl
tests/qmltests/Stages/tst_DesktopStage.qml+12
@@ -305,5 +305,17 @@ Item {
305 verify(ApplicationManager.count == 2); // verify the app is gone
305 verify(ApplicationManager.count == 2); // verify the app is gone
306 verify(ApplicationManager.findApplication(appName) === null); // and it's not in running apps
306 verify(ApplicationManager.findApplication(appName) === null); // and it's not in running apps
307 }
307 }
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+ }
308 }
320 }
309}
321}