support for prefixing with a highlight group.

This commit is contained in:
Bailey Ling
2013-08-31 03:26:59 +00:00
parent d268744077
commit 500ecf7cd0
2 changed files with 17 additions and 2 deletions

View File

@@ -8,6 +8,10 @@ describe 'section'
call airline#parts#define_text('text', 'text')
call airline#parts#define_raw('raw', 'raw')
call airline#parts#define_function('func', 'SectionSpec')
call airline#parts#define('hi', {
\ 'raw': 'hello',
\ 'highlight': 'hlgroup',
\ })
end
it 'should create sections with no separators'
@@ -24,5 +28,10 @@ describe 'section'
let s = airline#section#create_right(['text', 'text'])
Expect s == '%{airline#util#prepend("text")}%{"text"}'
end
it 'should prefix with highlight group if provided'
let s = airline#section#create(['hi'])
Expect s == '%#hlgroup#hello'
end
end