mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-24 12:23:52 +08:00
chore: update test
This commit is contained in:
parent
d25c049e61
commit
3cb60641e7
|
@ -4,7 +4,8 @@ Describe themes.vim
|
||||||
highlight clear Normal
|
highlight clear Normal
|
||||||
End
|
End
|
||||||
|
|
||||||
It should extract correct colors
|
It should extract correct colors with No termguicolors
|
||||||
|
if !exists("+termguicolors")
|
||||||
call airline#highlighter#reset_hlcache()
|
call airline#highlighter#reset_hlcache()
|
||||||
highlight Foo ctermfg=1 ctermbg=2
|
highlight Foo ctermfg=1 ctermbg=2
|
||||||
let colors = airline#themes#get_highlight('Foo')
|
let colors = airline#themes#get_highlight('Foo')
|
||||||
|
@ -12,6 +13,7 @@ Describe themes.vim
|
||||||
Assert Equals(colors[1], 'NONE')
|
Assert Equals(colors[1], 'NONE')
|
||||||
Assert Equals(colors[2], '1')
|
Assert Equals(colors[2], '1')
|
||||||
Assert Equals(colors[3], '2')
|
Assert Equals(colors[3], '2')
|
||||||
|
endif
|
||||||
End
|
End
|
||||||
|
|
||||||
if exists("+termguicolors")
|
if exists("+termguicolors")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user