Mercurial > vim
comparison src/testdir/test_cursor_func.vim @ 11105:7c7e496e625d v8.0.0440
patch 8.0.0440: not enough test coverage in Insert mode
commit https://github.com/vim/vim/commit/eb992cb90fd79c77ad2743459ac898e6ac3de939
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 9 18:20:16 2017 +0100
patch 8.0.0440: not enough test coverage in Insert mode
Problem: Not enough test coverage in Insert mode.
Solution: Add lots of tests. Add test_override(). (Christian Brabandt,
closes #1521)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 09 Mar 2017 18:30:07 +0100 |
parents | 7350959e53c3 |
children | 1c4ebbae41d2 |
comparison
equal
deleted
inserted
replaced
11104:c6f6c6262418 | 11105:7c7e496e625d |
---|---|
42 | 42 |
43 func Test_curswant_with_autocommand() | 43 func Test_curswant_with_autocommand() |
44 new | 44 new |
45 call setline(1, ['func()', '{', '}', '----']) | 45 call setline(1, ['func()', '{', '}', '----']) |
46 autocmd! CursorMovedI * call s:Highlight_Matching_Pair() | 46 autocmd! CursorMovedI * call s:Highlight_Matching_Pair() |
47 call test_disable_char_avail(1) | 47 call test_override("char_avail", 1) |
48 exe "normal! 3Ga\<Down>X\<Esc>" | 48 exe "normal! 3Ga\<Down>X\<Esc>" |
49 call test_disable_char_avail(0) | 49 call test_override("char_avail", 0) |
50 call assert_equal('-X---', getline(4)) | 50 call assert_equal('-X---', getline(4)) |
51 autocmd! CursorMovedI * | 51 autocmd! CursorMovedI * |
52 quit! | 52 quit! |
53 endfunc | 53 endfunc |
54 | 54 |