diff options
author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
commit | 9931e0888b2419326ae10ebbfae532261c5c125f (patch) | |
tree | 7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/lightline.vim/test/subseparator.vim | |
parent | e573b3020c032400eed60b649a2cbf55266e6bb0 (diff) | |
download | myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2 myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip |
Fix submodules
Diffstat (limited to 'vim/bundle/lightline.vim/test/subseparator.vim')
m--------- | vim/bundle/lightline.vim | 0 | ||||
-rw-r--r-- | vim/bundle/lightline.vim/test/subseparator.vim | 302 |
2 files changed, 0 insertions, 302 deletions
diff --git a/vim/bundle/lightline.vim b/vim/bundle/lightline.vim new file mode 160000 +Subproject 430ce2cb063b39a0c7950cafd617e333acb6759 diff --git a/vim/bundle/lightline.vim/test/subseparator.vim b/vim/bundle/lightline.vim/test/subseparator.vim deleted file mode 100644 index 02cac4c..0000000 --- a/vim/bundle/lightline.vim/test/subseparator.vim +++ /dev/null @@ -1,302 +0,0 @@ -let s:suite = themis#suite('subseparator') -let s:assert = themis#helper('assert') - -function! s:subseparator(...) - return eval(substitute(call(SID('subseparator'), a:000), '^%{\|}$', '', 'g')) -endfunction - -function! s:suite.subseparator_component() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') -endfunction - -function! s:suite.subseparator_component_visible_condition_1() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '1', 'custom2': '1', 'custom3': '1' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') -endfunction - -function! s:suite.subseparator_component_visible_condition_2() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '0', 'custom2': '1', 'custom3': '1' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') -endfunction - -function! s:suite.subseparator_component_visible_condition_3() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '1', 'custom2': '0', 'custom3': '1' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') -endfunction - -function! s:suite.subseparator_component_visible_condition_4() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '1', 'custom2': '0', 'custom3': '0' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') -endfunction - -function! s:suite.subseparator_component_visible_condition_5() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '0', 'custom2': '0', 'custom3': '0' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') -endfunction - -function! s:suite.subseparator_component_visible_condition_6() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '1||0', 'custom2': '0', 'custom3': '0' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') -endfunction - -function! s:suite.subseparator_component_visible_condition_7() - let g:lightline = { 'component': { 'custom1': 'custom1', 'custom2': 'custom2', 'custom3': 'custom3' }, 'component_visible_condition': { 'custom1': '1||1', 'custom2': '0', 'custom3': '0' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') -endfunction - -function! s:suite.subseparator_component_function() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_function_1() - function! Custom1() - return 'custom1' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom1 -endfunction - -function! s:suite.subseparator_component_function_2() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') - delfunction Custom1 - delfunction Custom2 -endfunction - -function! s:suite.subseparator_component_function_3() - function! Custom1() - return 'custom1' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') - delfunction Custom1 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_function_4() - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_function_5() - function! Custom1() - return '' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_function_6() - function! Custom1() - return '' - endfunction - function! Custom2() - return '' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_function_7() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return '' - endfunction - function! Custom3() - return '' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_expand() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_expand': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [1, 1, 1]), '|') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_expand() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_expand': { 'custom1': 'Custom1', 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [1, 1, 1]), '|') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_expand_1() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_expand': { 'custom1': 'Custom1' }, 'component_function': { 'custom2': 'Custom2', 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [1, 0, 0]), '|') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_expand_2() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_expand': { 'custom1': 'Custom1', 'custom2': 'Custom2' }, 'component_function': { 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [1, 1, 0]), '|') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_expand_3() - function! Custom1() - return '' - endfunction - function! Custom2() - return 'custom2' - endfunction - function! Custom3() - return 'custom3' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2' }, 'component_expand': { 'custom3': 'Custom3' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 1]), '') - delfunction Custom1 - delfunction Custom2 - delfunction Custom3 -endfunction - -function! s:suite.subseparator_component_not_found() - function! Custom1() - return 'custom1' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom1 -endfunction - -function! s:suite.subseparator_component_not_found_1() - function! Custom2() - return 'custom2' - endfunction - let g:lightline = { 'component_function': { 'custom2': 'Custom2' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '') - delfunction Custom2 -endfunction - -function! s:suite.subseparator_component_not_found_2() - function! Custom1() - return 'custom1' - endfunction - function! Custom2() - return 'custom2' - endfunction - let g:lightline = { 'component_function': { 'custom1': 'Custom1', 'custom2': 'Custom2' } } - call lightline#init() - call s:assert.equals(s:subseparator(['custom1', 'custom2', 'custom3'], '|', [0, 0, 0]), '|') - delfunction Custom1 - delfunction Custom2 -endfunction |