From 2bd25d797933b7e98e182dec3903277f747858bf Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 6 Jan 2015 01:04:49 +0300 Subject: [PATCH] Test Command-T plugin --- tests/test_commandt_plugin.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/test_commandt_plugin.vim diff --git a/tests/test_commandt_plugin.vim b/tests/test_commandt_plugin.vim new file mode 100755 index 00000000..355fff7c --- /dev/null +++ b/tests/test_commandt_plugin.vim @@ -0,0 +1,17 @@ +#!/usr/bin/vim -S +set nocompatible +set columns=80 +execute 'source' fnameescape(expand(':p:h').'/vim_utils.vim') +call EnablePlugins('command-t') +call SourcePowerline() +let g:statusline_values = [] +call PyFile('setup_statusline_catcher') +execute 'CommandTBuffer'|call feedkeys("\") +call RunPython('powerline.render = _powerline_old_render') +let g:expected_statusline = '%#Pl_231_16777215_240_5789784_bold# Command-T %#Pl_231_16777215_240_5789784_NONE# %#Pl_231_16777215_240_5789784_bold#BufferFinder %#Pl_240_5789784_236_3158064_NONE# %#Pl_231_16777215_236_3158064_NONE#                                                    ' +if index(g:statusline_values, g:expected_statusline) == -1 + call CheckStatuslineValue(get(g:statusline_values, -1, ''), g:expected_statusline) + cquit +endif +call CheckMessages() +qall