on xenial help sign in
Make the test pass again after rework of appmanager
968ea85Albert Astals Cid
tests/qmltests/tst_ShellWithPin.qml+5−4
@@ -498,12 +498,13 @@ Item {
498
498
499 function test_suspend() {
499 function test_suspend() {
500 var greeter = findChild(shell, "greeter");
500 var greeter = findChild(shell, "greeter");
501+ var applicationsDisplayLoader = findChild(shell, "applicationsDisplayLoader")
501
502
502 // Put it to sleep
503 // Put it to sleep
503 Powerd.status = Powerd.Off;
504 Powerd.status = Powerd.Off;
504
505
505− // If locked, ApplicationManager.suspended should be true
506+ // If locked, applicationsDisplayLoader.item.suspended should be true
506− tryCompare(ApplicationManager, "suspended", true);
507+ tryCompare(applicationsDisplayLoader.item, "suspended", true);
507
508
508 // And wake up
509 // And wake up
509 Powerd.status = Powerd.On;
510 Powerd.status = Powerd.On;
@@ -513,12 +514,12 @@ Item {
513 swipeAwayGreeter(true);
514 swipeAwayGreeter(true);
514
515
515 // We have a lockscreen, make sure we're still suspended
516 // We have a lockscreen, make sure we're still suspended
516− tryCompare(ApplicationManager, "suspended", true);
517+ tryCompare(applicationsDisplayLoader.item, "suspended", true);
517
518
518 enterPin("1234")
519 enterPin("1234")
519
520
520 // Now that the lockscreen has gone too, make sure we're waking up
521 // Now that the lockscreen has gone too, make sure we're waking up
521− tryCompare(ApplicationManager, "suspended", false);
522+ tryCompare(applicationsDisplayLoader.item, "suspended", false);
522
523
523 }
524 }
524
525