on xenial help sign in
Fix tests
commitd1fdad3a54699441a1a304a5b263183bcc841fec authorMichael Terry <michael.terry@canonical.com> dateMon 8 Dec 2014, 09:45 (12 years ago) parent270a7bf
2 files changed+16−2
tests/qmltests/tst_Shell.qml+2−2 tests/qmltests/tst_ShellWithPin.qml+14
tests/qmltests/tst_Shell.qml+2−2
@@ -547,13 +547,13 @@ Item {
547547 && itemRectInShell.y + itemRectInShell.height <= shell.height;
548548 }
549549
550− function test_greeterChangesIndicatorProfile() {
550+ function test_greeterDoesNotChangeIndicatorProfile() {
551551 var visibleIndicators = findChild(shell, "visibleIndicators");
552552 tryCompare(visibleIndicators, "profile", shell.indicatorProfile);
553553
554554 var greeter = findChild(shell, "greeter");
555555 greeter.show();
556− tryCompare(visibleIndicators, "profile", shell.indicatorProfile + "_greeter");
556+ tryCompare(visibleIndicators, "profile", shell.indicatorProfile);
557557
558558 greeter.hide();
559559 tryCompare(visibleIndicators, "profile", shell.indicatorProfile);
tests/qmltests/tst_ShellWithPin.qml+14
@@ -218,6 +218,20 @@ Item {
218218 tryCompare(ApplicationManager, "focusedApplicationId", app)
219219 }
220220
221+ function test_greeterChangesIndicatorProfile() {
222+ var visibleIndicators = findChild(shell, "visibleIndicators");
223+ tryCompare(visibleIndicators, "profile", shell.indicatorProfile + "_greeter");
224+
225+ LightDM.Greeter.hideGreeter();
226+ tryCompare(visibleIndicators, "profile", shell.indicatorProfile);
227+
228+ LightDM.Greeter.showGreeter();
229+ tryCompare(visibleIndicators, "profile", shell.indicatorProfile + "_greeter");
230+
231+ LightDM.Greeter.hideGreeter();
232+ tryCompare(visibleIndicators, "profile", shell.indicatorProfile);
233+ }
234+
221235 function test_login() {
222236 sessionSpy.clear()
223237 tryCompare(sessionSpy, "count", 0)