@@ -1859,19 +1859,20 @@ Rectangle {
18591859
18601860 var app1 = ApplicationManager.startApplication("libreoffice");
18611861 waitUntilAppWindowIsFullyLoaded(app1);
1862− var app2 = ApplicationManager.startApplication("dialer-app");
1862+ var app2 = ApplicationManager.startApplication("gallery-app");
18631863 waitUntilAppWindowIsFullyLoaded(app2);
18641864
1865− // Make sure app1 is unfocused but still running
1866− compare(app1.session.surface.activeFocus, false);
1867− compare(app1.isTouchApp, false); // sanity check our mock, which sets this for us
1868− compare(app1.requestedState, ApplicationInfoInterface.RequestedRunning);
1865+ // Make sure app1 is exempt with a requested suspend
1866+ verify(app1.exemptFromLifecycle);
1867+ verify(!app1.isTouchApp); // sanity check our mock, which sets this for us
1868+ verify(!app1.session.surface.activeFocus);
1869+ compare(app1.requestedState, ApplicationInfoInterface.RequestedSuspended);
18691870 }
18701871
18711872 function test_lifecyclePolicyExemption_data() {
18721873 return [
1873− {tag: "phone", formFactor: "phone", usageScenario: "phone", suspendsApps: true},
1874− {tag: "tablet", formFactor: "tablet", usageScenario: "tablet", suspendsApps: true}
1874+ {tag: "phone", formFactor: "phone", usageScenario: "phone"},
1875+ {tag: "tablet", formFactor: "tablet", usageScenario: "tablet"}
18751876 ]
18761877 }
18771878
@@ -1883,12 +1884,13 @@ Rectangle {
18831884
18841885 var app1 = ApplicationManager.startApplication("webbrowser-app");
18851886 waitUntilAppWindowIsFullyLoaded(app1);
1886− var app2 = ApplicationManager.startApplication("dialer-app");
1887+ var app2 = ApplicationManager.startApplication("gallery-app");
18871888 waitUntilAppWindowIsFullyLoaded(app2);
18881889
1889− // Make sure app1 is unfocused but still running
1890− compare(app1.session.surface.activeFocus, false);
1891− compare(app1.requestedState, ApplicationInfoInterface.RequestedRunning);
1890+ // Make sure app1 is exempt with a requested suspend
1891+ verify(app1.exemptFromLifecycle);
1892+ verify(!app1.session.surface.activeFocus);
1893+ compare(app1.requestedState, ApplicationInfoInterface.RequestedSuspended);
18921894 }
18931895
18941896 function test_switchToStagedForcesLegacyAppClosing_data() {