comparison src/testdir/screendump.vim @ 17113:18ec0b92f431 v8.1.1556

patch 8.1.1556: command for failing screenshot does not include directory commit https://github.com/vim/vim/commit/8a5c7ef9bbded87abd8c937b16c576ed2ccbb805 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 16 16:14:20 2019 +0200 patch 8.1.1556: command for failing screenshot does not include directory Problem: The command displayed to show a failing screenshot does not include the "testdir" directory. Solution: Prefix the directory name so that it can be copy-pasted.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jun 2019 16:15:04 +0200
parents 8cc31b1b1d23
children 7927cf327396
comparison
equal deleted inserted replaced
17112:b1c7049696d9 17113:18ec0b92f431
142 break 142 break
143 endif 143 endif
144 if i == 100 144 if i == 100
145 " Leave the failed dump around for inspection. 145 " Leave the failed dump around for inspection.
146 if filereadable(reference) 146 if filereadable(reference)
147 let msg = 'See dump file difference: call term_dumpdiff("' . testfile . '", "' . reference . '")' 147 let msg = 'See dump file difference: call term_dumpdiff("testdir/' .. testfile .. '", "testdir/' .. reference .. '")'
148 if a:0 == 1 148 if a:0 == 1
149 let msg = a:1 . ': ' . msg 149 let msg = a:1 . ': ' . msg
150 endif 150 endif
151 if len(testdump) != len(refdump) 151 if len(testdump) != len(refdump)
152 let msg = msg . '; line count is ' . len(testdump) . ' instead of ' . len(refdump) 152 let msg = msg . '; line count is ' . len(testdump) . ' instead of ' . len(refdump)
153 endif 153 endif
154 else 154 else
155 let msg = 'See new dump file: call term_dumpload("' . testfile . '")' 155 let msg = 'See new dump file: call term_dumpload("testdir/' .. testfile .. '")'
156 endif 156 endif
157 for i in range(len(refdump)) 157 for i in range(len(refdump))
158 if i >= len(testdump) 158 if i >= len(testdump)
159 break 159 break
160 endif 160 endif