mirror of
https://github.com/vim-airline/vim-airline-themes
synced 2025-02-25 22:40:30 +00:00
test for warning sections enabled in active splits.
This commit is contained in:
parent
0ad6deb832
commit
723e721b32
@ -1,5 +1,6 @@
|
|||||||
call airline#init#bootstrap()
|
call airline#init#bootstrap()
|
||||||
call airline#init#sections()
|
call airline#init#sections()
|
||||||
|
source plugin/airline.vim
|
||||||
|
|
||||||
describe 'default'
|
describe 'default'
|
||||||
before
|
before
|
||||||
@ -19,5 +20,12 @@ describe 'default'
|
|||||||
Expect stl =~ 'airline_x_to_airline_z'
|
Expect stl =~ 'airline_x_to_airline_z'
|
||||||
Expect stl =~ 'airline_z_to_airline_y'
|
Expect stl =~ 'airline_z_to_airline_y'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'should only render warning section in active splits'
|
||||||
|
wincmd s
|
||||||
|
Expect getwinvar(1, '&statusline') =~ 'whitespace'
|
||||||
|
Expect getwinvar(2, '&statusline') !~ 'whitespace'
|
||||||
|
wincmd c
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user