Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 10141:b67088aae933 v7.4.2341
commit https://github.com/vim/vim/commit/aeac9006d5d14910f214f09df52c026a5936e737
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 6 22:15:08 2016 +0200
patch 7.4.2341
Problem: Tiny things. Test doesn't clean up properly.
Solution: Adjust comment and white space. Restore option value.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Sep 2016 22:30:07 +0200 |
parents | aa2219afd1c2 |
children | 0be17a56e65f |
comparison
equal
deleted
inserted
replaced
10140:b11ceef7116e | 10141:b67088aae933 |
---|---|
18 set updatetime=20 | 18 set updatetime=20 |
19 call timer_start(100, 'ExitInsertMode') | 19 call timer_start(100, 'ExitInsertMode') |
20 call feedkeys('a', 'x!') | 20 call feedkeys('a', 'x!') |
21 call assert_equal(1, g:triggered) | 21 call assert_equal(1, g:triggered) |
22 au! CursorHoldI | 22 au! CursorHoldI |
23 set updatetime& | |
23 endfunc | 24 endfunc |
24 | 25 |
25 func Test_cursorhold_insert_ctrl_x() | 26 func Test_cursorhold_insert_ctrl_x() |
26 let g:triggered = 0 | 27 let g:triggered = 0 |
27 au CursorHoldI * let g:triggered += 1 | 28 au CursorHoldI * let g:triggered += 1 |
29 call timer_start(100, 'ExitInsertMode') | 30 call timer_start(100, 'ExitInsertMode') |
30 " CursorHoldI does not trigger after CTRL-X | 31 " CursorHoldI does not trigger after CTRL-X |
31 call feedkeys("a\<C-X>", 'x!') | 32 call feedkeys("a\<C-X>", 'x!') |
32 call assert_equal(0, g:triggered) | 33 call assert_equal(0, g:triggered) |
33 au! CursorHoldI | 34 au! CursorHoldI |
35 set updatetime& | |
34 endfunc | 36 endfunc |
35 endif | 37 endif |
36 | 38 |
37 function Test_bufunload() | 39 function Test_bufunload() |
38 augroup test_bufunload_group | 40 augroup test_bufunload_group |
218 | 220 |
219 " check "Another" does not take the pace of the deleted entry | 221 " check "Another" does not take the pace of the deleted entry |
220 augroup Another | 222 augroup Another |
221 augroup END | 223 augroup END |
222 call assert_true(match(execute('au VimEnter'), "-Deleted-.*VimEnter") >= 0) | 224 call assert_true(match(execute('au VimEnter'), "-Deleted-.*VimEnter") >= 0) |
225 augroup! Another | |
223 | 226 |
224 " no warning for postpone aucmd delete | 227 " no warning for postpone aucmd delete |
225 augroup StartOK | 228 augroup StartOK |
226 au VimEnter * call RemoveGroup() | 229 au VimEnter * call RemoveGroup() |
227 augroup END | 230 augroup END |