mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.1.2023: no test for synIDattr() returning "strikethrough" (#11018)
Problem: No test for synIDattr() returning "strikethrough".
Solution: Extend the synIDattr() test. (Jaskaran Singh, closes vim/vim#4929)
dcb2b9cb08
This commit is contained in:
@@ -9,11 +9,14 @@ func Test_missing_attr()
|
|||||||
hi Mine cterm=standout gui=undercurl
|
hi Mine cterm=standout gui=undercurl
|
||||||
call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
||||||
call assert_equal('1', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
call assert_equal('1', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
||||||
|
hi Mine gui=strikethrough
|
||||||
|
call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
|
||||||
hi Mine cterm=NONE gui=NONE
|
hi Mine cterm=NONE gui=NONE
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
|
call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm'))
|
call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm'))
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
||||||
|
call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
|
||||||
|
|
||||||
if has('gui')
|
if has('gui')
|
||||||
let fontname = getfontname()
|
let fontname = getfontname()
|
||||||
|
Reference in New Issue
Block a user