test-current-desktop: add extra step when killing a client

Ref: https://github.com/awesomeWM/awesome/issues/1495#issuecomment-277098634
This commit is contained in:
Daniel Hahler 2017-02-02 23:02:52 +01:00
parent aaea976108
commit d005640f92
1 changed files with 7 additions and 4 deletions

View File

@ -72,10 +72,13 @@ local steps = {
wait_for_current_desktop(tags[4]),
-- Killing the client means the first selected tag counts
function()
assert(client.focus == c)
c:kill()
c = nil
function(count)
if count == 1 then
assert(client.focus == c)
c:kill()
c = nil
return
end
return true
end,
wait_for_current_desktop(tags[3]),