vim-airline/t/extensions_tabline.vim

22 lines
1.2 KiB
VimL
Raw Normal View History

2018-07-14 04:30:20 +08:00
let g:airline#extensions#tabline#enabled = 1
source plugin/airline.vim
doautocmd VimEnter
describe 'default'
it 'should use a tabline'
e! CHANGELOG.md
sp CONTRIBUTING.md
2022-04-08 20:20:02 +08:00
Expect airline#extensions#tabline#get() =~# '%#airline_tab# %(%{airline#extensions#tabline#get_buffer_name(\d)}%) %#airline_tab_to_airline_tabsel# %#airline_tabsel#%(%{airline#extensions#tabline#get_buffer_name(\d)}%) %#airline_tabsel_to_airline_tabfill# %#airline_tabfill#%=%#airline_tabfill_to_airline_tabfill#%#airline_tabfill#%#airline_tabfill_to_airline_tablabel_right#%#airline_tablabel_right# buffers '
2018-07-14 04:30:20 +08:00
end
it 'Trigger on BufDelete autocommands'
e! CHANGELOG.md
sp CONTRIBUTING.md
sp README.md
2bd
2022-04-08 20:20:02 +08:00
Expect airline#extensions#tabline#get() =~# '%#airline_tab# %(%{airline#extensions#tabline#get_buffer_name(\d)}%) | %(%{airline#extensions#tabline#get_buffer_name(\d)}%) %#airline_tab_to_airline_tabsel# %#airline_tabsel#%(%{airline#extensions#tabline#get_buffer_name(\d)}%) %#airline_tabsel_to_airline_tabfill# %#airline_tabfill#%=%#airline_tabfill_to_airline_tabfill#%#airline_tabfill#%#airline_tabfill_to_airline_tablabel_right#%#airline_tablabel_right# buffers '
2018-07-14 04:30:20 +08:00
end
end