on xenial help sign in
Make the test pass again after rework of appmanager

Approved by: Gerry Boland

commit968ea85afe871891090abcbf5d47ca16c596e84e authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 14 Aug 2015, 09:53 (11 years ago) parentc465fa390fff38
1 file changed+5−4
tests/qmltests/tst_ShellWithPin.qml+5−4
tests/qmltests/tst_ShellWithPin.qml+5−4
@@ -498,12 +498,13 @@ Item {
498498
499499 function test_suspend() {
500500 var greeter = findChild(shell, "greeter");
501+ var applicationsDisplayLoader = findChild(shell, "applicationsDisplayLoader")
501502
502503 // Put it to sleep
503504 Powerd.status = Powerd.Off;
504505
505− // If locked, ApplicationManager.suspended should be true
506− tryCompare(ApplicationManager, "suspended", true);
506+ // If locked, applicationsDisplayLoader.item.suspended should be true
507+ tryCompare(applicationsDisplayLoader.item, "suspended", true);
507508
508509 // And wake up
509510 Powerd.status = Powerd.On;
@@ -513,12 +514,12 @@ Item {
513514 swipeAwayGreeter(true);
514515
515516 // We have a lockscreen, make sure we're still suspended
516− tryCompare(ApplicationManager, "suspended", true);
517+ tryCompare(applicationsDisplayLoader.item, "suspended", true);
517518
518519 enterPin("1234")
519520
520521 // Now that the lockscreen has gone too, make sure we're waking up
521− tryCompare(ApplicationManager, "suspended", false);
522+ tryCompare(applicationsDisplayLoader.item, "suspended", false);
522523
523524 }
524525