Modify test_tabline to also test bufline

This commit is contained in:
ZyX 2014-08-03 12:49:18 +04:00
parent 6cf0c485fa
commit 43acf07ca0
1 changed files with 16 additions and 0 deletions

View File

@ -3,6 +3,7 @@ source powerline/bindings/vim/plugin/powerline.vim
edit abc
tabedit def
tabedit ghi
try
let &columns = 80
let result = eval(&tabline[2:])
@ -15,4 +16,19 @@ if result isnot# '%#Pl_240_5789784_235_2500134_NONE# 1 %#Pl_240_5789784_235_25
call writefile(['Unexpected result', result], 'message.fail')
cquit
endif
tabonly!
try
let result = eval(&tabline[2:])
catch
call writefile(['Exception while evaluating &tabline', v:exception], 'message.fail')
cquit
endtry
if result isnot# '%#Pl_240_5789784_235_2500134_NONE# ./%#Pl_244_8421504_235_2500134_bold#abc %#Pl_244_8421504_235_2500134_NONE# %#Pl_240_5789784_235_2500134_NONE#./%#Pl_244_8421504_235_2500134_bold#def %#Pl_235_2500134_240_5789784_NONE# %#Pl_250_12369084_240_5789784_NONE#./%#Pl_231_16777215_240_5789784_bold#ghi %#Pl_240_5789784_236_3158064_NONE# %#Pl_231_16777215_236_3158064_NONE#                                               %#Pl_252_13684944_236_3158064_NONE# %#Pl_235_2500134_252_13684944_bold# Bufs '
call writefile(['Unexpected result (2)', result], 'message.fail')
cquit
endif
qall!