aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_match.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_match.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_match.vim')
-rw-r--r--src/nvim/testdir/test_match.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_match.vim b/src/nvim/testdir/test_match.vim
index 4f22e54563..fe931fefb2 100644
--- a/src/nvim/testdir/test_match.vim
+++ b/src/nvim/testdir/test_match.vim
@@ -322,9 +322,8 @@ func OtherWindowCommon()
endfunc
func Test_matchdelete_other_window()
- if !CanRunVimInTerminal()
- throw 'Skipped: cannot make screendumps'
- endif
+ CheckScreendump
+
let buf = OtherWindowCommon()
call term_sendkeys(buf, ":call matchdelete(mid, winid)\<CR>")
call VerifyScreenDump(buf, 'Test_matchdelete_1', {})