From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/lightline.vim | 1 + vim/bundle/lightline.vim/test/onetab.vim | 98 -------------------------------- 2 files changed, 1 insertion(+), 98 deletions(-) create mode 160000 vim/bundle/lightline.vim delete mode 100644 vim/bundle/lightline.vim/test/onetab.vim (limited to 'vim/bundle/lightline.vim/test/onetab.vim') diff --git a/vim/bundle/lightline.vim b/vim/bundle/lightline.vim new file mode 160000 index 0000000..430ce2c --- /dev/null +++ b/vim/bundle/lightline.vim @@ -0,0 +1 @@ +Subproject commit 430ce2cb063b39a0c7950cafd617e333acb6759a diff --git a/vim/bundle/lightline.vim/test/onetab.vim b/vim/bundle/lightline.vim/test/onetab.vim deleted file mode 100644 index 529d833..0000000 --- a/vim/bundle/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 -- cgit v1.2.3