comparison src/testdir/test_diffmode.vim @ 14984:28fde4aa8534

patch 8.1.0503: missing change to diff test commit https://github.com/vim/vim/commit/f7acf2b63ce91ea802dbcf0618f0cdee80993468 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 1 21:14:53 2018 +0100 patch 8.1.0503: missing change to diff test Problem: Missing change to diff test. (Hirohito Higashi) Solution: Add the missing test function.
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Nov 2018 21:15:06 +0100
parents 5d52b21b2e7f
children 9339601e7a31
comparison
equal deleted inserted replaced
14983:3bc0e905b507 14984:28fde4aa8534
883 883
884 " clean up 884 " clean up
885 call StopVimInTerminal(buf) 885 call StopVimInTerminal(buf)
886 call delete('Xtest_diff_cursorline') 886 call delete('Xtest_diff_cursorline')
887 endfunc 887 endfunc
888
889 func Test_diff_of_diff()
890 if !CanRunVimInTerminal()
891 return
892 endif
893
894 call writefile([
895 \ 'call setline(1, ["aa","bb","cc","@@ -3,2 +5,7 @@","dd","ee","ff"])',
896 \ 'vnew',
897 \ 'call setline(1, ["aa","bb","cc"])',
898 \ 'windo diffthis',
899 \ ], 'Xtest_diff_diff')
900 let buf = RunVimInTerminal('-S Xtest_diff_diff', {})
901
902 call VerifyScreenDump(buf, 'Test_diff_of_diff_01', {})
903
904 " clean up
905 call StopVimInTerminal(buf)
906 call delete('Xtest_diff_diff')
907 endfunc