on xenial help sign in
fix the test hopefully. we still need a test to verify that close button really closes the app
37fc054Omer Akram
tests/qmltests/Dash/Apps/tst_RunningApplicationsGrid.qml+5−6
@@ -195,8 +195,8 @@ Item {
195 !runningApplicationsGrid.terminationModeEnabled
195 !runningApplicationsGrid.terminationModeEnabled
196 }
196 }
197
197
198− // While on termination mode, clicking a running application tile causes the
198+ // While on termination mode, clicking a running application tile, outside of
199− // corresponding application to be terminated.
199+ // the close icon should do nothing
200 function test_clickTileToTerminateApp() {
200 function test_clickTileToTerminateApp() {
201 runningApplicationsGrid.terminationModeEnabled = true
201 runningApplicationsGrid.terminationModeEnabled = true
202
202
@@ -207,11 +207,10 @@ Item {
207
207
208 mouseClick(calendarTile, calendarTile.width/2, calendarTile.height/2)
208 mouseClick(calendarTile, calendarTile.width/2, calendarTile.height/2)
209
209
210− verify(!fakeRunningAppsModel.contains("calendar"))
210+ verify(fakeRunningAppsModel.contains("calendar"))
211
211
212− // The tile for the Calendar app should eventually vanish since the
212+ // The tile for the Calendar app should stay there
213− // application has been terminated
214− tryCompareFunction(checkCalendarTileExists, false)
213+ tryCompareFunction(checkCalendarTileExists, true)
215 }
214 }
216
215
217 function checkCalendarTileExists() {
216 function checkCalendarTileExists() {