Merge pull request #1515 from blueyed/fix-test-current-desktop

test-current-desktop: add extra step when killing a client
This commit is contained in:
Emmanuel Lepage Vallée 2017-02-03 12:24:07 -05:00 committed by GitHub
commit eae81ea8fe
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]),