0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.1.1804: no test for display updating without a scroll region

Problem:    No test for display updating without a scroll region.
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar
2019-08-03 22:55:50 +02:00
parent ac92e25a33
commit 3c8ee62974
7 changed files with 89 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
" Tests for diff mode
source shared.vim
source screendump.vim
source check.vim
func Test_diff_fold_sync()
enew!
@@ -748,9 +749,9 @@ func VerifyInternal(buf, dumpfile, extra)
endfunc
func Test_diff_screen()
if !CanRunVimInTerminal() || !has('menu')
throw 'Skipped: cannot make screendumps and/or menu feature missing'
endif
CheckScreendump
CheckFeature menu
" clean up already existing swap files, just in case
call delete('.Xfile1.swp')
call delete('.Xfile2.swp')
@@ -880,9 +881,7 @@ func Test_diff_screen()
endfunc
func Test_diff_with_cursorline()
if !CanRunVimInTerminal()
throw 'Skipped: cannot run Vim in a terminal window'
endif
CheckScreendump
call writefile([
\ 'hi CursorLine ctermbg=red ctermfg=white',
@@ -907,12 +906,8 @@ func Test_diff_with_cursorline()
endfunc
func Test_diff_of_diff()
if !CanRunVimInTerminal()
throw 'Skipped: cannot run Vim in a terminal window'
endif
if !has("rightleft")
throw 'Skipped: rightleft not supported'
endif
CheckScreendump
CheckFeature rightleft
call writefile([
\ 'call setline(1, ["aa","bb","cc","@@ -3,2 +5,7 @@","dd","ee","ff"])',