comparison src/testdir/test_bufline.vim @ 17657:0da9bc55c31a v8.1.1826

patch 8.1.1826: tests use hand coded feature and option checks commit https://github.com/vim/vim/commit/8c5a278fc508da6dfe50e69b6ee734451aa4eafb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 7 23:07:07 2019 +0200 patch 8.1.1826: tests use hand coded feature and option checks Problem: Tests use hand coded feature and option checks. Solution: Use the commands from check.vim in more tests.
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Aug 2019 23:15:07 +0200
parents bfc5a2962f38
children ce993ba17adb
comparison
equal deleted inserted replaced
17656:2adce9da20d8 17657:0da9bc55c31a
1 " Tests for setbufline(), getbufline(), appendbufline(), deletebufline() 1 " Tests for setbufline(), getbufline(), appendbufline(), deletebufline()
2 2
3 source shared.vim 3 source shared.vim
4 source screendump.vim 4 source screendump.vim
5 source check.vim
5 6
6 func Test_setbufline_getbufline() 7 func Test_setbufline_getbufline()
7 new 8 new
8 let b = bufnr('%') 9 let b = bufnr('%')
9 hide 10 hide
145 call assert_equal(['b', 'c'], getbufline(b, 1, 2)) 146 call assert_equal(['b', 'c'], getbufline(b, 1, 2))
146 exe "bwipe! " . b 147 exe "bwipe! " . b
147 endfunc 148 endfunc
148 149
149 func Test_appendbufline_redraw() 150 func Test_appendbufline_redraw()
150 if !CanRunVimInTerminal() 151 CheckScreendump
151 throw 'Skipped: cannot make screendumps' 152
152 endif
153 let lines =<< trim END 153 let lines =<< trim END
154 new foo 154 new foo
155 let winnr=bufwinnr('foo') 155 let winnr=bufwinnr('foo')
156 let buf=bufnr('foo') 156 let buf=bufnr('foo')
157 wincmd p 157 wincmd p