summaryrefslogtreecommitdiff
path: root/src/testdir/test_messages.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-31 21:28:02 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-31 21:28:02 +0200
commit494e9069cb32620f7688a7cb128a3feff827639e (patch)
treed78ea251927cc0f6c725b29b8559f3dc1f759078 /src/testdir/test_messages.vim
parente35a52aee718c881bdfa69a47a1068df6ab6c60a (diff)
downloadvim-git-494e9069cb32620f7688a7cb128a3feff827639e.tar.gz
patch 8.2.0866: not enough tests for buffer writingv8.2.0866
Problem: Not enough tests for buffer writing. Solution: Add more tests. Use CheckRunVimInTerminal in more places. (Yegappan Lakshmanan, closes #6167)
Diffstat (limited to 'src/testdir/test_messages.vim')
-rw-r--r--src/testdir/test_messages.vim9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim
index 832762a5c..5d6959b89 100644
--- a/src/testdir/test_messages.vim
+++ b/src/testdir/test_messages.vim
@@ -1,5 +1,6 @@
" Tests for :messages, :echomsg, :echoerr
+source check.vim
source shared.vim
source term_util.vim
source view_util.vim
@@ -172,9 +173,7 @@ endfunc
" Test more-prompt (see :help more-prompt).
func Test_message_more()
- if !CanRunVimInTerminal()
- throw 'Skipped: cannot run vim in terminal'
- endif
+ CheckRunVimInTerminal
let buf = RunVimInTerminal('', {'rows': 6})
call term_sendkeys(buf, ":call setline(1, range(1, 100))\n")
@@ -265,9 +264,7 @@ func Test_message_more()
endfunc
func Test_ask_yesno()
- if !CanRunVimInTerminal()
- throw 'Skipped: cannot run vim in terminal'
- endif
+ CheckRunVimInTerminal
let buf = RunVimInTerminal('', {'rows': 6})
call term_sendkeys(buf, ":call setline(1, range(1, 2))\n")