comparison src/testdir/test_messages.vim @ 15406:63b02fcf1361 v8.1.0711

patch 8.1.0711: test files still use function! commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 9 23:01:02 2019 +0100 patch 8.1.0711: test files still use function! Problem: Test files still use function!. Solution: Remove the exclamation mark. Fix overwriting a function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Jan 2019 23:15:05 +0100
parents dada0b389d4f
children a3b5cbd2effe
comparison
equal deleted inserted replaced
15405:3a8785d45112 15406:63b02fcf1361
41 41
42 " Patch 7.4.1696 defined the "clearmode()" function for clearing the mode 42 " Patch 7.4.1696 defined the "clearmode()" function for clearing the mode
43 " indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked. Message 43 " indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked. Message
44 " output could then be disturbed when 'cmdheight' was greater than one. 44 " output could then be disturbed when 'cmdheight' was greater than one.
45 " This test ensures that the bugfix for this issue remains in place. 45 " This test ensures that the bugfix for this issue remains in place.
46 function! Test_stopinsert_does_not_break_message_output() 46 func Test_stopinsert_does_not_break_message_output()
47 set cmdheight=2 47 set cmdheight=2
48 redraw! 48 redraw!
49 49
50 stopinsert | echo 'test echo' 50 stopinsert | echo 'test echo'
51 call assert_equal(116, screenchar(&lines - 1, 1)) 51 call assert_equal(116, screenchar(&lines - 1, 1))
56 call assert_equal(116, screenchar(&lines - 1, 1)) 56 call assert_equal(116, screenchar(&lines - 1, 1))
57 call assert_equal(32, screenchar(&lines, 1)) 57 call assert_equal(32, screenchar(&lines, 1))
58 redraw! 58 redraw!
59 59
60 set cmdheight& 60 set cmdheight&
61 endfunction 61 endfunc
62 62
63 func Test_message_completion() 63 func Test_message_completion()
64 call feedkeys(":message \<C-A>\<C-B>\"\<CR>", 'tx') 64 call feedkeys(":message \<C-A>\<C-B>\"\<CR>", 'tx')
65 call assert_equal('"message clear', @:) 65 call assert_equal('"message clear', @:)
66 endfunc 66 endfunc