From 2effe7ad1cc2c8accee3a69485fcb509417ccc25 Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 19 Jun 2020 07:17:34 +0900 Subject: [PATCH] add a test case for #448 --- test/autocmd.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/autocmd.vim diff --git a/test/autocmd.vim b/test/autocmd.vim new file mode 100644 index 0000000..934509b --- /dev/null +++ b/test/autocmd.vim @@ -0,0 +1,23 @@ +if !has("patch-8.2.0996") + finish +endif + +let s:suite = themis#suite('autocmd') +let s:assert = themis#helper('assert') + +function! s:suite.before_each() + let g:lightline = {} + call lightline#init() + tabnew + tabonly +endfunction + +function! s:suite.doautoall() + tabnew + tabnew + tabprevious + doautoall WinEnter + let statusline = getwinvar(1, '&statusline') + call s:assert.match(statusline, 'lightline') + call s:assert.match(statusline, '_active_') +endfunction