test for warning sections enabled in active splits.

This commit is contained in:
Bailey Ling 2013-09-01 10:38:00 -04:00
parent 0ad6deb832
commit 723e721b32
1 changed files with 8 additions and 0 deletions

View File

@ -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