comparison src/testdir/test_quickfix.vim @ 21020:6c634e63989c v8.2.1061

patch 8.2.1061: insufficient testing for src/window.c Commit: https://github.com/vim/vim/commit/5d3c9f8c2a0fc29ba4ac8e0f052378b64d9e3dd3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 26 20:41:39 2020 +0200 patch 8.2.1061: insufficient testing for src/window.c Problem: Insufficient testing for src/window.c. Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6345)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Jun 2020 20:45:08 +0200
parents 2c3e7a6bd6c6
children acfda84f5661
comparison
equal deleted inserted replaced
21019:f5dae5cbcdec 21020:6c634e63989c
284 call assert_equal(10, winwidth(0)) 284 call assert_equal(10, winwidth(0))
285 vert Xopen 12 285 vert Xopen 12
286 call assert_equal(12, winwidth(0)) 286 call assert_equal(12, winwidth(0))
287 Xclose 287 Xclose
288 288
289 " Horizontally or vertically splitting the quickfix window should create a
290 " normal window/buffer
291 Xopen
292 wincmd s
293 call assert_equal(0, getwininfo(win_getid())[0].quickfix)
294 call assert_equal(0, getwininfo(win_getid())[0].loclist)
295 call assert_notequal('quickfix', &buftype)
296 close
297 Xopen
298 wincmd v
299 call assert_equal(0, getwininfo(win_getid())[0].quickfix)
300 call assert_equal(0, getwininfo(win_getid())[0].loclist)
301 call assert_notequal('quickfix', &buftype)
302 close
303 Xopen
304 Xclose
305
289 if a:cchar == 'c' 306 if a:cchar == 'c'
290 " Opening the quickfix window in multiple tab pages should reuse the 307 " Opening the quickfix window in multiple tab pages should reuse the
291 " quickfix buffer 308 " quickfix buffer
292 Xgetexpr ['Xtestfile1:1:3:Line1', 'Xtestfile2:2:2:Line2', 309 Xgetexpr ['Xtestfile1:1:3:Line1', 'Xtestfile2:2:2:Line2',
293 \ 'Xtestfile3:3:1:Line3'] 310 \ 'Xtestfile3:3:1:Line3']