Mercurial > vim
view src/testdir/test_balloon_gui.vim @ 17646:e5397617d6ca v8.1.1820
patch 8.1.1820: using expr->FuncRef() does not work
commit https://github.com/vim/vim/commit/761fdf01c6e307c448cec2684f8b315ba6d1f454
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 5 23:10:16 2019 +0200
patch 8.1.1820: using expr->FuncRef() does not work
Problem: Using expr->FuncRef() does not work.
Solution: Make FuncRef work as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Aug 2019 23:15:05 +0200 |
parents | 8e9e9124c7a2 |
children | 403ac78df9a0 |
line wrap: on
line source
" Tests for 'ballooneval' in the GUI. if !has('gui_running') throw 'Skipped: only works in the GUI' endif source check.vim 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' call balloon_show(msg) call assert_equal(msg, balloon_gettext()) sleep 10m call balloon_show('') endfunc