summaryrefslogtreecommitdiffstats
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-03 22:55:50 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-03 22:55:50 +0200
commit3c8ee629745737aa231fdd123826ae021e398e49 (patch)
treeede1f3b7673776045644a1059d14af30295cfe51 /src/testdir/check.vim
parentac92e25a33c37ec5becbfffeccda136c73b761ac (diff)
patch 8.1.1804: no test for display updating without a scroll regionv8.1.1804
Problem: No test for display updating without a scroll region. Solution: Add a test.
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index 48dbd85396..5d61f0dbaf 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -37,3 +37,20 @@ func CheckUnix()
throw 'Skipped: only works on Unix'
endif
endfunc
+
+" Command to check that making screendumps is supported.
+" Caller must source screendump.vim
+command CheckScreendump call CheckScreendump()
+func CheckScreendump()
+ if !CanRunVimInTerminal()
+ throw 'Skipped: cannot make screendumps'
+ endif
+endfunc
+
+" Command to check that we can Run Vim in a terminal window
+command CheckRunVimInTerminal call CheckRunVimInTerminal()
+func CheckRunVimInTerminal()
+ if !CanRunVimInTerminal()
+ throw 'Skipped: cannot run Vim in a terminal window'
+ endif
+endfunc