In vim tests check for printed messages

This commit is contained in:
ZyX 2014-09-04 08:32:36 +04:00
parent 0bb14dbe9c
commit 8588885b04
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,9 @@ set encoding=utf-8
let g:powerline_config_path = expand('<sfile>:p:h:h') . '/powerline/config_files'
let g:powerline_config_overrides = {'common': {'default_top_theme': 'ascii'}}
let g:powerline_theme_overrides__default = {'segment_data': {'line_current_symbol': {'contents': 'LN '}, 'branch': {'before': 'B '}}}
redir => g:messages
try
python import powerline.vim
let pycmd = 'python'
@ -36,4 +39,10 @@ if result isnot# '%#Pl_22_24320_148_11523840_bold# NORMAL %#Pl_148_11523840_236_
cquit
endif
redir END
if g:messages =~ '\S'
call writefile(['Non-empty messages:', g:messages], 'message.fail')
cquit
endif
qall!

View File

@ -6,6 +6,8 @@ edit abc
tabedit def
tabedit ghi
redir => g:messages
try
let &columns = 80
let result = eval(&tabline[2:])
@ -45,4 +47,10 @@ if result isnot# '%#Pl_240_5789784_235_2500134_NONE# 1 %#Pl_240_5789784_235_25
cquit
endif
redir END
if g:messages =~ '\S'
call writefile(['Non-empty messages:', g:messages], 'message.fail')
cquit
endif
qall!