aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/input_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-05 18:04:45 +0800
committerGitHub <noreply@github.com>2024-04-05 18:04:45 +0800
commita500c5f808ccf0b678c935f00e0af4503a5bd724 (patch)
treefaec5c534b49cccfabb239748499d530ea5bc054 /test/functional/vimscript/input_spec.lua
parent4add77ddbfbbff0795ee9bcca42b8096a6265049 (diff)
downloadrneovim-a500c5f808ccf0b678c935f00e0af4503a5bd724.tar.gz
rneovim-a500c5f808ccf0b678c935f00e0af4503a5bd724.tar.bz2
rneovim-a500c5f808ccf0b678c935f00e0af4503a5bd724.zip
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(). https://github.com/vim/vim/commit/5e66b42aae7c67a3ef67617d4bd43052ac2b73ce Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/vimscript/input_spec.lua')
-rw-r--r--test/functional/vimscript/input_spec.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/functional/vimscript/input_spec.lua b/test/functional/vimscript/input_spec.lua
index b749d5a7f0..d64ae3b0f1 100644
--- a/test/functional/vimscript/input_spec.lua
+++ b/test/functional/vimscript/input_spec.lua
@@ -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()