install.fairie/dotfiles/.vim/plugged/lightline.vim/test/quickfix.vim
Git E2E Dev Test Username 90619ab253 git subrepo clone https://github.com/itchyny/lightline.vim.git ./dotfiles/.vim/plugged/lightline.vim
subrepo:
  subdir:   "dotfiles/.vim/plugged/lightline.vim"
  merged:   "b1e91b41"
upstream:
  origin:   "https://github.com/itchyny/lightline.vim.git"
  branch:   "master"
  commit:   "b1e91b41"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:36:11 -04:00

25 lines
658 B
VimL

let s:suite = themis#suite('quickfix')
let s:assert = themis#helper('assert')
function! s:suite.before_each()
let g:lightline = {}
call lightline#init()
tabnew
tabonly
endfunction
function! s:suite.quickfix_statusline()
call setloclist(winnr(), [])
lopen
wincmd p
call setloclist(winnr(), [])
for n in range(1, winnr('$'))
let statusline = getwinvar(n, '&statusline')
call s:assert.match(statusline, 'lightline')
if has('patch-8.1.1715')
call s:assert.match(statusline, n == 1 ? '_active_' : '_inactive_')
else
call s:assert.match(statusline, n != 1 ? '_active_' : '_inactive_')
endif
endfor
endfunction