comparison src/testdir/test_winbar.vim @ 30869:bff3fa5f4c74 v9.0.0769

patch 9.0.0769: too many delete() calls in tests Commit: https://github.com/vim/vim/commit/db4c94788ad70118fa1ccc5fbc821757350ac771 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 15 22:06:06 2022 +0100 patch 9.0.0769: too many delete() calls in tests Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Oct 2022 23:15:04 +0200
parents 2d726d5a6405
children 360f286b5869
comparison
equal deleted inserted replaced
30868:ae65ad930e86 30869:bff3fa5f4c74
130 nnoremenu WinBar.Test :test 130 nnoremenu WinBar.Test :test
131 set winminheight=0 131 set winminheight=0
132 wincmd j 132 wincmd j
133 wincmd _ 133 wincmd _
134 END 134 END
135 call writefile(lines, 'XtestWinbarNotVisble') 135 call writefile(lines, 'XtestWinbarNotVisble', 'D')
136 let buf = RunVimInTerminal('-S XtestWinbarNotVisble', #{rows: 10}) 136 let buf = RunVimInTerminal('-S XtestWinbarNotVisble', #{rows: 10})
137 call VerifyScreenDump(buf, 'Test_winbar_not_visible', {}) 137 call VerifyScreenDump(buf, 'Test_winbar_not_visible', {})
138 138
139 " clean up 139 " clean up
140 call StopVimInTerminal(buf) 140 call StopVimInTerminal(buf)
141 call delete('XtestWinbarNotVisble')
142 endfunction 141 endfunction
143 142
144 func Test_winbar_not_visible_custom_statusline() 143 func Test_winbar_not_visible_custom_statusline()
145 CheckScreendump 144 CheckScreendump
146 145
150 set winminheight=0 149 set winminheight=0
151 set statusline=abcde 150 set statusline=abcde
152 wincmd j 151 wincmd j
153 wincmd _ 152 wincmd _
154 END 153 END
155 call writefile(lines, 'XtestWinbarNotVisble') 154 call writefile(lines, 'XtestWinbarNotVisble', 'D')
156 let buf = RunVimInTerminal('-S XtestWinbarNotVisble', #{rows: 10}) 155 let buf = RunVimInTerminal('-S XtestWinbarNotVisble', #{rows: 10})
157 call VerifyScreenDump(buf, 'Test_winbar_not_visible_custom_statusline', {}) 156 call VerifyScreenDump(buf, 'Test_winbar_not_visible_custom_statusline', {})
158 157
159 " clean up 158 " clean up
160 call StopVimInTerminal(buf) 159 call StopVimInTerminal(buf)
161 call delete('XtestWinbarNotVisble')
162 endfunction 160 endfunction
163 161
164 func Test_drag_statusline_with_winbar() 162 func Test_drag_statusline_with_winbar()
165 call SetupWinbar() 163 call SetupWinbar()
166 let save_mouse = &mouse 164 let save_mouse = &mouse