aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_functions.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-26 21:53:11 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-26 22:16:58 +0800
commit157baef02636fed4a99ef401e470fee8c51ce852 (patch)
tree87a44eb280fa81477ef81a767b14d16f9925af26 /src/nvim/testdir/test_functions.vim
parentc00e711d5a860fb019f594d164b4327d942313f8 (diff)
downloadrneovim-157baef02636fed4a99ef401e470fee8c51ce852.tar.gz
rneovim-157baef02636fed4a99ef401e470fee8c51ce852.tar.bz2
rneovim-157baef02636fed4a99ef401e470fee8c51ce852.zip
vim-patch:8.1.1826: tests use hand coded feature and option checks
Problem: Tests use hand coded feature and option checks. Solution: Use the commands from check.vim in more tests. https://github.com/vim/vim/commit/8c5a278fc508da6dfe50e69b6ee734451aa4eafb Omit Test_wincolor(): there are later patches that touch that function. Omit test_memory_usage.vim: a Lua test is used for that file. Cherry-pick Test_issue_3969() from patch 8.1.0969. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
-rw-r--r--src/nvim/testdir/test_functions.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim
index 8f2a61e399..6ef20107d8 100644
--- a/src/nvim/testdir/test_functions.vim
+++ b/src/nvim/testdir/test_functions.vim
@@ -1745,9 +1745,8 @@ endfunc
func Test_confirm()
" requires a UI to be active
throw 'Skipped: use test/functional/vimscript/input_spec.lua'
- if !has('unix') || has('gui_running')
- return
- endif
+ CheckUnix
+ CheckNotGui
call feedkeys('o', 'L')
let a = confirm('Press O to proceed')