diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-01 21:14:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-01 21:14:53 +0100 |
commit | f7acf2b63ce91ea802dbcf0618f0cdee80993468 (patch) | |
tree | 08f7c401390192d7905862f5a185b732117b9a2a /src/testdir/test_diffmode.vim | |
parent | f080d70a82f3a4477f346d9efcdfaec1bc1e1d58 (diff) |
patch 8.1.0503: missing change to diff testv8.1.0503
Problem: Missing change to diff test. (Hirohito Higashi)
Solution: Add the missing test function.
Diffstat (limited to 'src/testdir/test_diffmode.vim')
-rw-r--r-- | src/testdir/test_diffmode.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index 6a8bea0ec5..4f20395ab1 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -885,3 +885,23 @@ func Test_diff_with_cursorline() call StopVimInTerminal(buf) call delete('Xtest_diff_cursorline') endfunc + +func Test_diff_of_diff() + if !CanRunVimInTerminal() + return + endif + + call writefile([ + \ 'call setline(1, ["aa","bb","cc","@@ -3,2 +5,7 @@","dd","ee","ff"])', + \ 'vnew', + \ 'call setline(1, ["aa","bb","cc"])', + \ 'windo diffthis', + \ ], 'Xtest_diff_diff') + let buf = RunVimInTerminal('-S Xtest_diff_diff', {}) + + call VerifyScreenDump(buf, 'Test_diff_of_diff_01', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('Xtest_diff_diff') +endfunc |