on xenial help sign in
Use enums in test too
4800762Michael Terry
tests/qmltests/tst_Shell.qml+3−3
@@ -126,16 +126,16 @@ Item {
126 tryCompareFunction(function() { return mainApp != null; }, true);
126 tryCompareFunction(function() { return mainApp != null; }, true);
127
127
128 // Try to suspend while proximity is engaged...
128 // Try to suspend while proximity is engaged...
129− Powerd.displayPowerStateChange(0, 1);
129+ Powerd.displayPowerStateChange(Powerd.Off, Powerd.UseProximity);
130 tryCompare(greeter, "showProgress", 0);
130 tryCompare(greeter, "showProgress", 0);
131
131
132 // Now really suspend
132 // Now really suspend
133− Powerd.displayPowerStateChange(0, 0);
133+ Powerd.displayPowerStateChange(Powerd.Off, 0);
134 tryCompare(greeter, "showProgress", 1);
134 tryCompare(greeter, "showProgress", 1);
135 tryCompare(ApplicationManager, "mainStageFocusedApplication", null);
135 tryCompare(ApplicationManager, "mainStageFocusedApplication", null);
136
136
137 // And wake up
137 // And wake up
138− Powerd.displayPowerStateChange(1, 0);
138+ Powerd.displayPowerStateChange(Powerd.On, 0);
139 tryCompare(ApplicationManager, "mainStageFocusedApplication", mainApp);
139 tryCompare(ApplicationManager, "mainStageFocusedApplication", mainApp);
140 tryCompare(greeter, "showProgress", 1);
140 tryCompare(greeter, "showProgress", 1);
141 }
141 }