test: update tests to work with 'hidden'

This commit is contained in:
Gregory Anders
2021-08-17 21:30:58 -06:00
parent d417e67e59
commit d8ab8cccd0
25 changed files with 48 additions and 32 deletions

View File

@@ -74,7 +74,8 @@ describe('float window', function()
funcs.win_execute(win, 'bwipe!')
end)
it('win_execute() call commands that not allowed' , function()
it("win_execute() call commands that are not allowed when 'hidden' is not set" , function()
command('set nohidden')
local buf = meths.create_buf(false, false)
meths.buf_set_lines(buf, 0, -1, true, {'the floatwin'})
local win = meths.open_win(buf, true, {relative='win', width=16, height=1, row=0, col=10})