comparison src/testdir/test_balloon.vim @ 16720:9c90cf08cfa8 v8.1.1362

patch 8.1.1362: code and data in tests can be hard to read commit https://github.com/vim/vim/commit/c79745a82faeb5a6058e915ca49a4c69fa60ea01 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 20 22:12:34 2019 +0200 patch 8.1.1362: code and data in tests can be hard to read Problem: Code and data in tests can be hard to read. Solution: Use the new heredoc style. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4400)
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 May 2019 22:15:06 +0200
parents ff3c99bd1038
children ebdf6cd89910
comparison
equal deleted inserted replaced
16719:27f2a2799604 16720:9c90cf08cfa8
6 source screendump.vim 6 source screendump.vim
7 if !CanRunVimInTerminal() 7 if !CanRunVimInTerminal()
8 finish 8 finish
9 endif 9 endif
10 10
11 let s:common_script = [ 11 let s:common_script =<< [CODE]
12 \ 'call setline(1, ["one one one", "two tXo two", "three three three"])', 12 call setline(1, ["one one one", "two tXo two", "three three three"])
13 \ 'set balloonevalterm balloonexpr=MyBalloonExpr() balloondelay=100', 13 set balloonevalterm balloonexpr=MyBalloonExpr() balloondelay=100
14 \ 'func MyBalloonExpr()', 14 func MyBalloonExpr()
15 \ ' return "line " .. v:beval_lnum .. " column " .. v:beval_col .. ": " .. v:beval_text', 15 return "line " .. v:beval_lnum .. " column " .. v:beval_col .. ": " .. v:beval_text
16 \ 'endfun', 16 endfun
17 \ 'redraw', 17 redraw
18 \ ] 18 [CODE]
19 19
20 func Test_balloon_eval_term() 20 func Test_balloon_eval_term()
21 " Use <Ignore> after <MouseMove> to return from vgetc() without removing 21 " Use <Ignore> after <MouseMove> to return from vgetc() without removing
22 " the balloon. 22 " the balloon.
23 call writefile(s:common_script + [ 23 call writefile(s:common_script + [