mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
vim-patch:8.1.0815: dialog for file changed outside of Vim not tested (#28184)
Problem: Dialog for file changed outside of Vim not tested.
Solution: Add a test. Move FileChangedShell test. Add 'L' flag to
feedkeys().
5e66b42aae
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -8,7 +8,6 @@ local clear = helpers.clear
|
||||
local source = helpers.source
|
||||
local command = helpers.command
|
||||
local exc_exec = helpers.exc_exec
|
||||
local pcall_err = helpers.pcall_err
|
||||
local async_meths = helpers.async_meths
|
||||
local NIL = vim.NIL
|
||||
|
||||
@@ -407,7 +406,6 @@ describe('inputdialog()', function()
|
||||
end)
|
||||
|
||||
describe('confirm()', function()
|
||||
-- oldtest: Test_confirm()
|
||||
it('works', function()
|
||||
api.nvim_set_option_value('more', false, {}) -- Avoid hit-enter prompt
|
||||
api.nvim_set_option_value('laststatus', 2, {})
|
||||
@@ -470,20 +468,6 @@ describe('confirm()', function()
|
||||
screen:expect({ any = '%[No Name%]' })
|
||||
eq(1, api.nvim_get_var('a'))
|
||||
end
|
||||
|
||||
eq('Vim(call):E730: Using a List as a String', pcall_err(command, 'call confirm([])'))
|
||||
eq(
|
||||
'Vim(call):E730: Using a List as a String',
|
||||
pcall_err(command, 'call confirm("Are you sure?", [])')
|
||||
)
|
||||
eq(
|
||||
'Vim(call):E745: Using a List as a Number',
|
||||
pcall_err(command, 'call confirm("Are you sure?", "&Yes\n&No\n", [])')
|
||||
)
|
||||
eq(
|
||||
'Vim(call):E730: Using a List as a String',
|
||||
pcall_err(command, 'call confirm("Are you sure?", "&Yes\n&No\n", 0, [])')
|
||||
)
|
||||
end)
|
||||
|
||||
it('shows dialog even if :silent #8788', function()
|
||||
|
Reference in New Issue
Block a user