Mercurial > vim
view src/testdir/test_balloon_gui.vim @ 17783:45eca7143d7c v8.1.1888
patch 8.1.1888: more functions can be used as methods
commit https://github.com/vim/vim/commit/073e4b92e613d22ce7b16e0fbf5c0e40cb5f9b2c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 18 23:01:56 2019 +0200
patch 8.1.1888: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Aug 2019 23:15:03 +0200 |
parents | 403ac78df9a0 |
children | 08940efa6b4e |
line wrap: on
line source
" Tests for 'ballooneval' in the GUI. source check.vim CheckGui CheckFeature balloon_eval func Test_balloon_show_gui() let msg = 'this this this this' call balloon_show(msg) call assert_equal(msg, balloon_gettext()) sleep 10m call balloon_show('') let msg = 'that that' eval msg->balloon_show() call assert_equal(msg, balloon_gettext()) sleep 10m call balloon_show('') endfunc