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]), wait_for_current_desktop(tags[4]),
-- Killing the client means the first selected tag counts -- Killing the client means the first selected tag counts
function() function(count)
assert(client.focus == c) if count == 1 then
c:kill() assert(client.focus == c)
c = nil c:kill()
c = nil
return
end
return true return true
end, end,
wait_for_current_desktop(tags[3]), wait_for_current_desktop(tags[3]),