Use verify() rather than tryCompareFunction()
commit16c9eb324a69a8af94e977deca3987adf5dc8803
authorMichael Terry <michael.terry@canonical.com>
dateWed 9 Oct 2013, 16:01 (13 years ago)
parent36e4612
tests/qmltests/tst_Shell.qml+1−1
@@ -157,7 +157,7 @@ Item {
157157 waitUntilApplicationWindowIsFullyVisible();
158158
159159 var mainApp = ApplicationManager.focusedApplicationId;
160− tryCompareFunction(function() { return mainApp != ""; }, true);
160+ verify(mainApp != "");
161161
162162 // Try to suspend while proximity is engaged...
163163 Powerd.displayPowerStateChange(Powerd.Off, Powerd.UseProximity);