summaryrefslogtreecommitdiffstats
path: root/src/testdir/screendump.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-04 22:24:16 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-04 22:24:16 +0100
commitb6fc72851c45a36a370f9516c68508e47b41c4c1 (patch)
tree7da05b1356fc904ee84d4a41f894d84b9fa1689e /src/testdir/screendump.vim
parent97195685334c800c5ad1328d957d1bf21f5fa1fa (diff)
patch 8.1.0562: parsing of 'diffopt' is slightly wrongv8.1.0562
Problem: Parsing of 'diffopt' is slightly wrong. Solution: Fix the parsing and add a test. (Jason Franklin, Christian Brabandt)
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r--src/testdir/screendump.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 1b74c1b33e..139f708c07 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -103,6 +103,8 @@ func VerifyScreenDump(buf, filename, options, ...)
let i = 0
while 1
+ " leave some time for updating the original window
+ sleep 10m
call delete(testfile)
call term_dumpwrite(a:buf, testfile, a:options)
if readfile(reference) == readfile(testfile)
@@ -113,12 +115,11 @@ func VerifyScreenDump(buf, filename, options, ...)
" Leave the test file around for inspection.
let msg = 'See dump file difference: call term_dumpdiff("' . testfile . '", "' . reference . '")'
if a:0 == 1
- let msg = a:1 . ': ' . msg
+ let msg = a:1 . ': ' . msg
endif
call assert_report(msg)
return 1
endif
- sleep 10m
let i += 1
endwhile
return 0