Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 19435:8f8a5a15d00a v8.2.0275
patch 8.2.0275: some Ex code not covered by tests
Commit: https://github.com/vim/vim/commit/406cd90f1963ca60813db91c413eef4b1b78ee44
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 18 21:54:41 2020 +0100
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 https://github.com/vim/vim/issues/5659)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Feb 2020 22:00:04 +0100 |
parents | 2f4be7ca1b1b |
children | cb73f4ae6b7c |
comparison
equal
deleted
inserted
replaced
19434:4f7cdab4da93 | 19435:8f8a5a15d00a |
---|---|
4193 exe "normal j\<C-W>\<CR>" | 4193 exe "normal j\<C-W>\<CR>" |
4194 call assert_notequal(locid, getloclist(0, {'id' : 0}).id) | 4194 call assert_notequal(locid, getloclist(0, {'id' : 0}).id) |
4195 call assert_equal(0, getloclist(0, {'winid' : 0}).winid) | 4195 call assert_equal(0, getloclist(0, {'winid' : 0}).winid) |
4196 new | only | 4196 new | only |
4197 | 4197 |
4198 " Using :split or :vsplit from a quickfix window should behave like a :new | |
4199 " or a :vnew command | |
4200 copen | |
4201 split | |
4202 call assert_equal(3, winnr('$')) | |
4203 let l = getwininfo() | |
4204 call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix]) | |
4205 close | |
4206 copen | |
4207 vsplit | |
4208 let l = getwininfo() | |
4209 call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix]) | |
4210 new | only | |
4211 | |
4198 call delete('Xtestfile1') | 4212 call delete('Xtestfile1') |
4199 call delete('Xtestfile2') | 4213 call delete('Xtestfile2') |
4200 endfunc | 4214 endfunc |
4201 | 4215 |
4202 " Test for parsing entries using visual screen column | 4216 " Test for parsing entries using visual screen column |