view src/testdir/test_balloon_gui.vim @ 19209:b780229f5792 v8.2.0163

patch 8.2.0163: test hangs on MS-Windows console Commit: https://github.com/vim/vim/commit/272ca95fc3d21ae1e2626a7aec38a6990e88ad6b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 28 20:49:11 2020 +0100 patch 8.2.0163: test hangs on MS-Windows console Problem: Test hangs on MS-Windows console. Solution: use feedkeys() instead of test_feedinput(). (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Jan 2020 21:00:04 +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