diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-14 08:16:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 08:16:29 +0800 |
commit | f2695919bbc4ffea894a54c1d48632ebf0d543a9 (patch) | |
tree | f424ebe36fefd401a434e79c83555234e6f608d1 | |
parent | b433acc3c91a1575fd3cf20086bf4429b0494524 (diff) | |
download | rneovim-f2695919bbc4ffea894a54c1d48632ebf0d543a9.tar.gz rneovim-f2695919bbc4ffea894a54c1d48632ebf0d543a9.tar.bz2 rneovim-f2695919bbc4ffea894a54c1d48632ebf0d543a9.zip |
test(old): add missing lines from Vim patch 8.2.0522 (#21048)
-rw-r--r-- | src/nvim/testdir/test_highlight.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index 2be82f4e3c..d618637d63 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -741,8 +741,18 @@ endfunc " Test for :highlight command errors func Test_highlight_cmd_errors() if has('gui_running') || has('nvim') + " This test doesn't fail in the MS-Windows console version. + call assert_fails('hi Xcomment ctermfg=fg', 'E419:') + call assert_fails('hi Xcomment ctermfg=bg', 'E420:') call assert_fails('hi ' .. repeat('a', 201) .. ' ctermfg=black', 'E1249:') endif + + " Try using a very long terminal code. Define a dummy terminal code for this + " test. + let &t_fo = "\<Esc>1;" + let c = repeat("t_fo,", 100) . "t_fo" + " call assert_fails('exe "hi Xgroup1 start=" . c', 'E422:') + let &t_fo = "" endfunc " Test for using RGB color values in a highlight group |