mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
test(menubar): don't try to cover deprecated methods (calling any of them will make the warning-check fail in tests)
This commit is contained in:
parent
fa7648e6d6
commit
b91a033141
1 changed files with 4 additions and 0 deletions
|
@ -409,6 +409,8 @@ function utils.parse_dir(dir_path, callback)
|
|||
end)
|
||||
end
|
||||
|
||||
-- luacov: disable
|
||||
|
||||
function utils.compute_textbox_width(textbox, s)
|
||||
gdebug.deprecate("Use 'width, _ = textbox:get_preferred_size(s)' directly.", {deprecated_in=4})
|
||||
s = screen[s or mouse.screen]
|
||||
|
@ -421,6 +423,8 @@ function utils.compute_text_width(text, s, font)
|
|||
return w_textbox.get_markup_geometry(text, s, font)['width']
|
||||
end
|
||||
|
||||
-- luacov: enable
|
||||
|
||||
return utils
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
Loading…
Reference in a new issue