aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_highlight.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_highlight.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_highlight.vim')
-rw-r--r--src/nvim/testdir/test_highlight.vim8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim
index e84c45c635..2be82f4e3c 100644
--- a/src/nvim/testdir/test_highlight.vim
+++ b/src/nvim/testdir/test_highlight.vim
@@ -536,9 +536,7 @@ func Test_termguicolors()
endfunc
func Test_cursorline_after_yank()
- if !CanRunVimInTerminal()
- throw 'Skipped: cannot make screendumps'
- endif
+ CheckScreendump
call writefile([
\ 'set cul rnu',
@@ -578,9 +576,7 @@ func Test_put_before_cursorline()
endfunc
func Test_cursorline_with_visualmode()
- if !CanRunVimInTerminal()
- throw 'Skipped: cannot make screendumps'
- endif
+ CheckScreendump
call writefile([
\ 'set cul',