Mercurial > vim
comparison src/testdir/test_terminal.vim @ 15832:85c94163c4ab v8.1.0923
patch 8.1.0923: terminal dump diff swap does not update file names
commit https://github.com/vim/vim/commit/c3ef8966081c03ce989f72a1e477df3327ccb971
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 15 00:16:13 2019 +0100
patch 8.1.0923: terminal dump diff swap does not update file names
Problem: Terminal dump diff swap does not update file names.
Solution: Also swap the file name. Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 15 Feb 2019 00:30:06 +0100 |
parents | 69b6cf55d9bb |
children | 8f4948be3860 |
comparison
equal
deleted
inserted
replaced
15831:dbb1810ad6ab | 15832:85c94163c4ab |
---|---|
1122 call Check_dump01(42) | 1122 call Check_dump01(42) |
1123 call assert_equal(' bbbbbbbbbbbbbbbbbb ', getline(26)[0:29]) | 1123 call assert_equal(' bbbbbbbbbbbbbbbbbb ', getline(26)[0:29]) |
1124 quit | 1124 quit |
1125 endfunc | 1125 endfunc |
1126 | 1126 |
1127 func Test_terminal_dumpdiff_swap() | |
1128 call assert_equal(1, winnr('$')) | |
1129 call term_dumpdiff('dumps/Test_popup_command_01.dump', 'dumps/Test_popup_command_03.dump') | |
1130 call assert_equal(2, winnr('$')) | |
1131 call assert_equal(62, line('$')) | |
1132 call assert_match('Test_popup_command_01.dump', getline(21)) | |
1133 call assert_match('Test_popup_command_03.dump', getline(42)) | |
1134 call assert_match('Undo', getline(3)) | |
1135 call assert_match('three four five', getline(45)) | |
1136 | |
1137 normal s | |
1138 call assert_match('Test_popup_command_03.dump', getline(21)) | |
1139 call assert_match('Test_popup_command_01.dump', getline(42)) | |
1140 call assert_match('three four five', getline(3)) | |
1141 call assert_match('Undo', getline(45)) | |
1142 quit | |
1143 endfunc | |
1144 | |
1127 func Test_terminal_dumpdiff_options() | 1145 func Test_terminal_dumpdiff_options() |
1128 set laststatus=0 | 1146 set laststatus=0 |
1129 call assert_equal(1, winnr('$')) | 1147 call assert_equal(1, winnr('$')) |
1130 let height = winheight(0) | 1148 let height = winheight(0) |
1131 call term_dumpdiff('dumps/Test_popup_command_01.dump', 'dumps/Test_popup_command_02.dump', {'vertical': 1, 'term_cols': 33}) | 1149 call term_dumpdiff('dumps/Test_popup_command_01.dump', 'dumps/Test_popup_command_02.dump', {'vertical': 1, 'term_cols': 33}) |