Mercurial > vim
diff src/testdir/test_balloon.vim @ 30110:ba5ca7c7d44c v9.0.0391
patch 9.0.0391: using separate delete() call instead of writefile() 'D' flag
Commit: https://github.com/vim/vim/commit/3411265a3698c3d5ef56d9b0c3bb237a9f5fdba1
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 5 21:40:44 2022 +0100
patch 9.0.0391: using separate delete() call instead of writefile() 'D' flag
Problem: Using separate delete() call instead of writefile() 'D' flag.
Solution: Use the writefile 'D' flag.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Sep 2022 22:45:03 +0200 |
parents | 9e0ac05f579a |
children |
line wrap: on
line diff
--- a/src/testdir/test_balloon.vim +++ b/src/testdir/test_balloon.vim @@ -29,7 +29,7 @@ func Test_balloon_eval_term() call feedkeys("\<MouseMove>\<Ignore>", "xt") endfunc [CODE] - call writefile(s:common_script + xtra_lines, 'XTest_beval') + call writefile(s:common_script + xtra_lines, 'XTest_beval', 'D') " Check that the balloon shows up after a mouse move let buf = RunVimInTerminal('-S XTest_beval', {'rows': 10, 'cols': 50}) @@ -45,7 +45,6 @@ func Test_balloon_eval_term() " clean up call StopVimInTerminal(buf) - call delete('XTest_beval') endfunc func Test_balloon_eval_term_visual() @@ -54,7 +53,7 @@ func Test_balloon_eval_term_visual() call writefile(s:common_script + [ \ 'call test_setmouse(3, 6)', \ 'call feedkeys("3Gevfr\<MouseMove>\<Ignore>", "xt")', - \ ], 'XTest_beval_visual') + \ ], 'XTest_beval_visual', 'D') " Check that the balloon shows up after a mouse move let buf = RunVimInTerminal('-S XTest_beval_visual', {'rows': 10, 'cols': 50}) @@ -63,7 +62,6 @@ func Test_balloon_eval_term_visual() " clean up call StopVimInTerminal(buf) - call delete('XTest_beval_visual') endfunc " vim: shiftwidth=2 sts=2 expandtab