1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/bundle/phpcomplete.vim/tests/CompletePHP_test.vim

28 lines
671 B
VimL
Vendored

fun! TestCase_split_height_doesnt_change_when_completing()
" set up
set noequalalways
let winno = winnr()
" open a second split, get back to the first one
below 1new
let winno2 = winnr()
silent! exec winno.'wincmd w'
" measure height
let before_height = winheight(0)
" trigger plugin
let ret = phpcomplete#CompletePHP(0, 2)
" take a second measurement
let after_height = winheight(0)
call VUAssertEquals(before_height, after_height, 'split heights should not change')
" clean up
silent! exec winno2.'wincmd w'
silent! bw! %
set equalalways
endfun
" vim: foldmethod=marker:expandtab:ts=4:sts=4