mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-13 00:00:15 +08:00
chore: update test
This commit is contained in:
1 parent
d25c049e61
commit
3cb60641e7
1 file changed
+10
-8
+10
-8
@@ -4,14 +4,16 @@ Describe themes.vim
|
|||||||
highlight clear Normal
|
highlight clear Normal
|
||||||
End
|
End
|
||||||
|
|
||||||
It should extract correct colors
|
It should extract correct colors with No termguicolors
|
||||||
call airline#highlighter#reset_hlcache()
|
if !exists("+termguicolors")
|
||||||
highlight Foo ctermfg=1 ctermbg=2
|
call airline#highlighter#reset_hlcache()
|
||||||
let colors = airline#themes#get_highlight('Foo')
|
highlight Foo ctermfg=1 ctermbg=2
|
||||||
Assert Equals(colors[0], 'NONE')
|
let colors = airline#themes#get_highlight('Foo')
|
||||||
Assert Equals(colors[1], 'NONE')
|
Assert Equals(colors[0], 'NONE')
|
||||||
Assert Equals(colors[2], '1')
|
Assert Equals(colors[1], 'NONE')
|
||||||
Assert Equals(colors[3], '2')
|
Assert Equals(colors[2], '1')
|
||||||
|
Assert Equals(colors[3], '2')
|
||||||
|
endif
|
||||||
End
|
End
|
||||||
|
|
||||||
if exists("+termguicolors")
|
if exists("+termguicolors")
|
||||||
|
|||||||
Reference in new issue
Block a user