view src/testdir/test_balloon_gui.vim @ 18962:af44ca0ddf49 v8.2.0042

patch 8.2.0042: clearing funccal values twice Commit: https://github.com/vim/vim/commit/eac7ce01e92f3dee6bbccaf7e88680fe2ce286eb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 25 15:04:03 2019 +0100 patch 8.2.0042: clearing funccal values twice Problem: Clearing funccal values twice. Solution: Remove clearing individual fields.
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Dec 2019 15:15:03 +0100
parents 45eca7143d7c
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