comparison src/testdir/test_mapping.vim @ 21765:08940efa6b4e v8.2.1432

patch 8.2.1432: various inconsistencies in test files Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 18:50:36 2020 +0200 patch 8.2.1432: various inconsistencies in test files Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 19:00:08 +0200
parents 8bce783af0cb
children f7f2d73ff85e
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
90 vunmap <c-c> 90 vunmap <c-c>
91 set nomodified 91 set nomodified
92 endfunc 92 endfunc
93 93
94 func Test_map_langmap() 94 func Test_map_langmap()
95 if !has('langmap') 95 CheckFeature langmap
96 return
97 endif
98 96
99 " check langmap applies in normal mode 97 " check langmap applies in normal mode
100 set langmap=+- nolangremap 98 set langmap=+- nolangremap
101 new 99 new
102 call setline(1, ['a', 'b', 'c']) 100 call setline(1, ['a', 'b', 'c'])
257 unabbr foo 255 unabbr foo
258 set backspace& 256 set backspace&
259 endfunc 257 endfunc
260 258
261 func Test_map_timeout() 259 func Test_map_timeout()
262 if !has('timers') 260 CheckFeature timers
263 return
264 endif
265 nnoremap aaaa :let got_aaaa = 1<CR> 261 nnoremap aaaa :let got_aaaa = 1<CR>
266 nnoremap bb :let got_bb = 1<CR> 262 nnoremap bb :let got_bb = 1<CR>
267 nmap b aaa 263 nmap b aaa
268 new 264 new
269 func ExitInsert(timer) 265 func ExitInsert(timer)
288 delfunc ExitInsert 284 delfunc ExitInsert
289 call timer_stop(timer) 285 call timer_stop(timer)
290 endfunc 286 endfunc
291 287
292 func Test_map_timeout_with_timer_interrupt() 288 func Test_map_timeout_with_timer_interrupt()
293 if !has('job') || !has('timers') 289 CheckFeature job
294 return 290 CheckFeature timers
295 endif
296 291
297 " Confirm the timer invoked in exit_cb of the job doesn't disturb mapped key 292 " Confirm the timer invoked in exit_cb of the job doesn't disturb mapped key
298 " sequence. 293 " sequence.
299 new 294 new
300 let g:val = 0 295 let g:val = 0