mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-06 23:24:18 +08:00
use __accent to better differentiate between a real group.
This commit is contained in:
@@ -40,13 +40,13 @@ describe 'active builder'
|
||||
end
|
||||
|
||||
it 'should replace accent groups with the specified group'
|
||||
call s:builder.add_section('Normal', '%#airline_accent_foo#hello')
|
||||
call s:builder.add_section('Normal', '%#__accent_foo#hello')
|
||||
let stl = s:builder.build()
|
||||
Expect stl == '%#Normal#%#Normal_foo#hello'
|
||||
end
|
||||
|
||||
it 'should replace two accent groups with correct groups'
|
||||
call s:builder.add_section('Normal', '%#airline_accent_foo#hello%#airline_accent_bar#world')
|
||||
call s:builder.add_section('Normal', '%#__accent_foo#hello%#__accent_bar#world')
|
||||
let stl = s:builder.build()
|
||||
Expect stl =~ '%#Normal_foo#hello%#Normal_bar#world'
|
||||
end
|
||||
|
||||
@@ -28,7 +28,7 @@ describe 'init'
|
||||
end
|
||||
|
||||
it 'section c should be file'
|
||||
Expect g:airline_section_c == '%<%f%m %#airline_accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#'
|
||||
Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#'
|
||||
end
|
||||
|
||||
it 'section x should be filetype'
|
||||
|
||||
@@ -32,7 +32,7 @@ describe 'section'
|
||||
\ 'accent': 'red',
|
||||
\ })
|
||||
let s = airline#section#create(['hi'])
|
||||
Expect s == '%#airline_accent_red#hello'
|
||||
Expect s == '%#__accent_red#hello'
|
||||
end
|
||||
|
||||
it 'should parse out a section from the distro'
|
||||
|
||||
Reference in New Issue
Block a user