on xenial help sign in
update PhoneStage tests to deal with the dash app always being there
commit5fa08c1fc80a7d1f38dafffb32c7704b0e2ac398 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 25 Jul 2014, 02:01 (12 years ago) parent552e719
1 file changed+3−2
tests/qmltests/Stages/tst_PhoneStage.qml+3−2
tests/qmltests/Stages/tst_PhoneStage.qml+3−2
@@ -231,9 +231,10 @@ Item {
231231 }
232232
233233 function cleanup() {
234− while (ApplicationManager.count > 0) {
234+ while (ApplicationManager.count > 1) {
235235 var oldCount = ApplicationManager.count;
236− ApplicationManager.stopApplication(ApplicationManager.get(0).appId)
236+ var closingIndex = ApplicationManager.focusedApplicationId == "unity8-dash" ? 1 : 0
237+ ApplicationManager.stopApplication(ApplicationManager.get(closingIndex).appId)
237238 tryCompare(ApplicationManager, "count", oldCount - 1)
238239 }
239240 }