mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
test(old): add missing lines from Vim patch 8.2.0522 (#21048)
This commit is contained in:
@@ -741,8 +741,18 @@ endfunc
|
|||||||
" Test for :highlight command errors
|
" Test for :highlight command errors
|
||||||
func Test_highlight_cmd_errors()
|
func Test_highlight_cmd_errors()
|
||||||
if has('gui_running') || has('nvim')
|
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:')
|
call assert_fails('hi ' .. repeat('a', 201) .. ' ctermfg=black', 'E1249:')
|
||||||
endif
|
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
|
endfunc
|
||||||
|
|
||||||
" Test for using RGB color values in a highlight group
|
" Test for using RGB color values in a highlight group
|
||||||
|
Reference in New Issue
Block a user