mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
feat(test): add Lua forms for API methods (#20152)
This commit is contained in:
@@ -93,7 +93,7 @@ describe('float window', function()
|
||||
end)
|
||||
|
||||
it('closed immediately by autocmd #11383', function()
|
||||
eq('Error executing lua: [string "<nvim>"]:0: Window was closed immediately',
|
||||
eq('Window was closed immediately',
|
||||
pcall_err(exec_lua, [[
|
||||
local a = vim.api
|
||||
local function crashes(contents)
|
||||
@@ -118,7 +118,7 @@ describe('float window', function()
|
||||
end)
|
||||
|
||||
it('closed immediately by autocmd after win_enter #15548', function()
|
||||
eq('Error executing lua: [string "<nvim>"]:0: Window was closed immediately',
|
||||
eq('Window was closed immediately',
|
||||
pcall_err(exec_lua, [[
|
||||
vim.cmd "autocmd BufLeave * ++once quit!"
|
||||
local buf = vim.api.nvim_create_buf(true, true)
|
||||
|
||||
Reference in New Issue
Block a user