comparison src/testdir/test_popup.vim @ 9748:5440f3442841 v7.4.2149

commit https://github.com/vim/vim/commit/7cba71d7e3576639679b6a3aedeeb1ac07f7f2f5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 2 23:04:49 2016 +0200 patch 7.4.2149 Problem: If a test leaves a window open a following test may fail. Solution: Always close extra windows after running a test.
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Aug 2016 23:15:07 +0200
parents 6f5387822253
children f17ba1c9d209
comparison
equal deleted inserted replaced
9747:7ef0620bfed7 9748:5440f3442841
201 call feedkeys("aM\<f5>\<enter>\<esc>", 'tx') 201 call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
202 set completeopt-=noselect completeopt+=noinsert 202 set completeopt-=noselect completeopt+=noinsert
203 call feedkeys("aM\<f5>\<enter>\<esc>", 'tx') 203 call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
204 call assert_equal(["March", "M", "March"], getline(1,4)) 204 call assert_equal(["March", "M", "March"], getline(1,4))
205 %d 205 %d
206 bwipe!
207 endfu 206 endfu
208 207
209 208
210 func! Test_popup_completion_insertmode() 209 func! Test_popup_completion_insertmode()
211 new 210 new
231 %d 230 %d
232 " select last entry 231 " select last entry
233 call feedkeys("a\<f5>\<c-p>\<c-p>\<enter>\<esc>", 'tx') 232 call feedkeys("a\<f5>\<c-p>\<c-p>\<enter>\<esc>", 'tx')
234 call assert_equal('December', getline(1)) 233 call assert_equal('December', getline(1))
235 234
236 bwipe!
237 iunmap <F5> 235 iunmap <F5>
238 endfunc 236 endfunc
239 237
240 function! ComplTest() abort 238 function! ComplTest() abort
241 call complete(1, ['source', 'soundfold']) 239 call complete(1, ['source', 'soundfold'])