test: add simple window unit test

This commit is contained in:
JuanZoran
2023-03-31 12:51:11 +08:00
parent b27bc4ed26
commit 987e1a3341
5 changed files with 120 additions and 20 deletions

View File

@ -92,13 +92,13 @@ function M:init_window(opts)
buffer = self.buffer,
animation = m_opts.animation,
win_opts = {
relative = opts.relative or 'cursor',
col = opts.col or 1,
row = opts.row or 1,
width = opts.width or m_opts.width,
height = opts.height or m_opts.height,
relative = opts.relative or 'cursor',
title = m_opts.title,
title_pos = m_opts.title and 'center' or nil,
title_pos = m_opts.title and 'center',
zindex = 100,
},
}