on xenial help sign in
hide indicators on focus change
commitcada2deec33970c4e9661d24dc129c73b32b8cb9 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 28 Jul 2014, 14:43 (12 years ago) parentb255cef
2 files changed+15
qml/Shell.qml+1 tests/qmltests/tst_Shell.qml+14
qml/Shell.qml+1
@@ -250,6 +250,7 @@ Item {
250250 if (greeter.fakeActiveForApp !== "" && greeter.fakeActiveForApp !== ApplicationManager.focusedApplicationId) {
251251 lockscreen.show();
252252 }
253+ panel.indicators.hide();
253254 }
254255
255256 onApplicationAdded: {
tests/qmltests/tst_Shell.qml+14
@@ -236,6 +236,7 @@ Item {
236236
237237 // wait until the animation has finished
238238 tryCompare(greeter, "showProgress", 0);
239+ waitForRendering(greeter);
239240 }
240241
241242 /*
@@ -601,8 +602,21 @@ Item {
601602 // The main point of this test
602603 ApplicationManager.requestFocusApplication("dialer-app");
603604 tryCompare(greeter, "showProgress", 0);
605+ waitForRendering(greeter);
604606 }
605607
608+ function test_focusRequestedHidesIndicators() {
609+ var indicators = findChild(shell, "indicators");
610+
611+ showIndicators();
612+
613+ ApplicationManager.startApplication("camera-app");
614+ tryCompare(ApplicationManager, "count", 1);
615+
616+ tryCompare(indicators, "fullyClosed", true);
617+ }
618+
619+
606620 function test_showGreeterDBusCall() {
607621 var greeter = findChild(shell, "greeter")
608622 tryCompare(greeter, "showProgress", 0)