Add test for menubar.match_empty

This commit is contained in:
Ari Breitkreuz 2020-04-24 14:48:17 +02:00
parent 30911a3959
commit 2e6c911821
1 changed files with 24 additions and 13 deletions

View File

@ -37,8 +37,7 @@ do
end end
end end
runner.run_steps { local show_menubar_and_hide = function(count)
function(count)
-- Just show the menubar and hide it. -- Just show the menubar and hide it.
-- TODO: Write a proper test. But for the mean time this is better than -- TODO: Write a proper test. But for the mean time this is better than
-- nothing (and tells us when errors are thrown). -- nothing (and tells us when errors are thrown).
@ -53,6 +52,18 @@ runner.run_steps {
awesome.sync() awesome.sync()
return true return true
end end
end
runner.run_steps {
function(count)
-- Show and hide with defaults
return show_menubar_and_hide(count)
end,
function(count)
-- Show and hide with match_empty set to false
menubar.match_empty = false
return show_menubar_and_hide(count)
end, end,
function() function()