diff options
| author | Kumar Damani <damani.kumar@gmail.com> | 2019-05-16 22:16:09 +0000 |
|---|---|---|
| committer | Kumar Damani <damani.kumar@gmail.com> | 2019-05-16 22:16:09 +0000 |
| commit | 12564a8f73ebe721d415a04d36f7aac7091bea9d (patch) | |
| tree | bbc8a6bf6aabe832b3ee435eaa605dcac655fc5f /vim/.vim/plugged/lightline.vim/test/onetab.vim | |
| parent | 1241da7ab7a4e91248391ee9b045267bcbbeee4f (diff) | |
updating vimrc
Diffstat (limited to 'vim/.vim/plugged/lightline.vim/test/onetab.vim')
| -rw-r--r-- | vim/.vim/plugged/lightline.vim/test/onetab.vim | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/vim/.vim/plugged/lightline.vim/test/onetab.vim b/vim/.vim/plugged/lightline.vim/test/onetab.vim deleted file mode 100644 index 529d833..0000000 --- a/vim/.vim/plugged/lightline.vim/test/onetab.vim +++ /dev/null @@ -1,98 +0,0 @@ -let s:suite = themis#suite('onetab') -let s:assert = themis#helper('assert') - -function! s:suite.before_each() - let g:lightline = {} - call lightline#init() - tabnew - tabonly -endfunction - -function! s:suite.onetab() - call s:assert.equals(lightline#onetab(1, 1), '1 [No Name]') -endfunction - -function! s:suite.tabnew() - tabnew - call s:assert.equals(lightline#onetab(1, 0), '1 [No Name]') - call s:assert.equals(lightline#onetab(2, 1), '2 [No Name]') -endfunction - -function! s:suite.tabnew_tabnew() - tabnew - tabnew - call s:assert.equals(lightline#onetab(1, 0), '1 [No Name]') - call s:assert.equals(lightline#onetab(2, 0), '2 [No Name]') - call s:assert.equals(lightline#onetab(3, 1), '3 [No Name]') -endfunction - -function! s:suite.modified() - call append(0, '') - call s:assert.equals(lightline#onetab(1, 1), '1 [No Name] +') - undo -endfunction - -function! s:suite.filename() - edit test - call s:assert.equals(lightline#onetab(1, 1), '1 test') - tabnew - bunload test -endfunction - -function! s:suite.filename_modified() - edit test - call append(0, '') - call s:assert.equals(lightline#onetab(1, 1), '1 test +') - tabnew - bunload! test -endfunction - -function! s:suite.active_inactive() - let g:lightline = { 'tab': { 'active': [ 'tabnum', 'filename' ], 'inactive': [ 'filename' ] } } - call lightline#init() - edit test - call append(0, '') - call s:assert.equals(lightline#onetab(1, 1), '1 test') - call s:assert.equals(lightline#onetab(1, 0), 'test') - tabnew - bunload! test -endfunction - -function! s:suite.tab_component() - let g:lightline = { 'tab': { 'active': [ 'custom' ] }, 'tab_component': { 'custom': 'custom' } } - call lightline#init() - call s:assert.equals(lightline#onetab(1, 1), 'custom') - call s:assert.equals(lightline#onetab(2, 1), 'custom') -endfunction - -function! s:suite.tab_component_function() - function! Custom(n) - return 'custom: ' . a:n - endfunction - let g:lightline = { 'tab': { 'active': [ 'custom' ] }, 'tab_component_function': { 'custom': 'Custom' } } - call lightline#init() - call s:assert.equals(lightline#onetab(1, 1), 'custom: 1') - call s:assert.equals(lightline#onetab(2, 1), 'custom: 2') - delfunction Custom -endfunction - -function! s:suite.tab_component_empty_middle() - let g:lightline = { 'tab': { 'active': [ 'tabnum', 'custom', 'filename' ], 'inactive': [ 'tabnum', 'custom', 'custom', 'filename' ] }, 'tab_component': { 'custom': '' } } - call lightline#init() - call s:assert.equals(lightline#onetab(1, 1), '1 [No Name]') - call s:assert.equals(lightline#onetab(2, 1), '2 [No Name]') -endfunction - -function! s:suite.tab_component_empty_left() - let g:lightline = { 'tab': { 'active': [ 'custom', 'filename' ], 'inactive': [ 'custom', 'custom', 'filename' ] }, 'tab_component': { 'custom': '' } } - call lightline#init() - call s:assert.equals(lightline#onetab(1, 1), '[No Name]') - call s:assert.equals(lightline#onetab(2, 1), '[No Name]') -endfunction - -function! s:suite.tab_component_empty_middle() - let g:lightline = { 'tab': { 'active': [ 'tabnum', 'custom' ], 'inactive': [ 'tabnum', 'custom', 'custom' ] }, 'tab_component': { 'custom': '' } } - call lightline#init() - call s:assert.equals(lightline#onetab(1, 1), '1') - call s:assert.equals(lightline#onetab(2, 1), '2') -endfunction |
