- add pathogen.vim (https://github.com/tpope/vim-pathogen)
- add vim-airline (https://github.com/vim-airline/vim-airline)
This commit is contained in:
39
.vim/bundle/vim-airline/t/parts.vim
Normal file
39
.vim/bundle/vim-airline/t/parts.vim
Normal file
@@ -0,0 +1,39 @@
|
||||
describe 'parts'
|
||||
it 'overwrites existing values'
|
||||
call airline#parts#define('foo', { 'test': '123' })
|
||||
Expect airline#parts#get('foo').test == '123'
|
||||
call airline#parts#define('foo', { 'test': '321' })
|
||||
Expect airline#parts#get('foo').test == '321'
|
||||
end
|
||||
|
||||
it 'can define a function part'
|
||||
call airline#parts#define_function('func', 'bar')
|
||||
Expect airline#parts#get('func').function == 'bar'
|
||||
end
|
||||
|
||||
it 'can define a text part'
|
||||
call airline#parts#define_text('text', 'bar')
|
||||
Expect airline#parts#get('text').text == 'bar'
|
||||
end
|
||||
|
||||
it 'can define a raw part'
|
||||
call airline#parts#define_raw('raw', 'bar')
|
||||
Expect airline#parts#get('raw').raw == 'bar'
|
||||
end
|
||||
|
||||
it 'can define a minwidth'
|
||||
call airline#parts#define_minwidth('mw', 123)
|
||||
Expect airline#parts#get('mw').minwidth == 123
|
||||
end
|
||||
|
||||
it 'can define a condition'
|
||||
call airline#parts#define_condition('part', '1')
|
||||
Expect airline#parts#get('part').condition == '1'
|
||||
end
|
||||
|
||||
it 'can define a accent'
|
||||
call airline#parts#define_accent('part', 'red')
|
||||
Expect airline#parts#get('part').accent == 'red'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user