mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-12-07 17:54:27 +08:00
test for warning sections enabled in active splits.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user