Mercurial > vim
comparison src/testdir/screendump.vim @ 16326:1679b9f54946 v8.1.1168
patch 8.1.1168: not all screen update code of terminal is executed in tests
commit https://github.com/vim/vim/commit/87dcfd75c218107ca966c80a0a56b236be046fc9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 13 22:35:29 2019 +0200
patch 8.1.1168: not all screen update code of terminal is executed in tests
Problem: Not all screen update code of the terminal window is executed in
tests.
Solution: Redraw before taking a screenshot.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Apr 2019 22:45:04 +0200 |
parents | 606a49386aa1 |
children | b576f2e069b7 |
comparison
equal
deleted
inserted
replaced
16325:97a120b07dc0 | 16326:1679b9f54946 |
---|---|
111 " Returns non-zero when verification fails. | 111 " Returns non-zero when verification fails. |
112 func VerifyScreenDump(buf, filename, options, ...) | 112 func VerifyScreenDump(buf, filename, options, ...) |
113 let reference = 'dumps/' . a:filename . '.dump' | 113 let reference = 'dumps/' . a:filename . '.dump' |
114 let testfile = 'failed/' . a:filename . '.dump' | 114 let testfile = 'failed/' . a:filename . '.dump' |
115 | 115 |
116 " Redraw to execut the code that updates the screen. Otherwise we get the | |
117 " text and attributes only from the internal buffer. | |
118 redraw | |
119 | |
116 let did_mkdir = 0 | 120 let did_mkdir = 0 |
117 if !isdirectory('failed') | 121 if !isdirectory('failed') |
118 let did_mkdir = 1 | 122 let did_mkdir = 1 |
119 call mkdir('failed') | 123 call mkdir('failed') |
120 endif | 124 endif |