mirror of
https://github.com/neovim/neovim.git
synced 2026-05-02 20:15:03 +00:00
vim-patch:8.2.0275: some Ex code not covered by tests
Problem: Some Ex code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5659)
406cd90f19
This commit is contained in:
@@ -4415,6 +4415,20 @@ func Test_splitview()
|
||||
call assert_equal(0, getloclist(0, {'winid' : 0}).winid)
|
||||
new | only
|
||||
|
||||
" Using :split or :vsplit from a quickfix window should behave like a :new
|
||||
" or a :vnew command
|
||||
copen
|
||||
split
|
||||
call assert_equal(3, winnr('$'))
|
||||
let l = getwininfo()
|
||||
call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix])
|
||||
close
|
||||
copen
|
||||
vsplit
|
||||
let l = getwininfo()
|
||||
call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix])
|
||||
new | only
|
||||
|
||||
call delete('Xtestfile1')
|
||||
call delete('Xtestfile2')
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user