Merge pull request #702 from psychon/fix-test-urgent

Fix test-urgent.lua
This commit is contained in:
Daniel Hahler 2016-02-16 01:03:37 +01:00
commit bbab321314
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ local steps = {
-- Step 3: tag 2 should not be urgent, but switched to. -- Step 3: tag 2 should not be urgent, but switched to.
function(count) function(count)
if count == 1 then -- Setup. if count == 1 then -- Setup.
local urgent_cb_done = false urgent_cb_done = false
-- Select first tag. -- Select first tag.
awful.tag.viewonly(tags[1][1]) awful.tag.viewonly(tags[1][1])
@ -80,7 +80,7 @@ local steps = {
awful.spawn("xterm") awful.spawn("xterm")
elseif awful.tag.selectedlist()[1] == tags[1][2] then elseif awful.tag.selectedlist()[1] == tags[1][2] then
assert(urgent_cb_done) assert(not urgent_cb_done)
assert(awful.tag.getproperty(tags[1][2], "urgent") == false) assert(awful.tag.getproperty(tags[1][2], "urgent") == false)
assert(awful.tag.getproperty(tags[1][2], "urgent_count") == 0) assert(awful.tag.getproperty(tags[1][2], "urgent_count") == 0)
assert(awful.tag.selectedlist()[2] == nil) assert(awful.tag.selectedlist()[2] == nil)