view src/testdir/test_balloon_gui.vim @ 31029:bf8e9ef40006 v9.0.0849

patch 9.0.0849: terminal mouse test is a bit flaky Commit: https://github.com/vim/vim/commit/157241e8798fe1c14f3787ee341ffee2c403714a Author: James McCoy <jamessan@jamessan.com> Date: Wed Nov 9 23:29:14 2022 +0000 patch 9.0.0849: terminal mouse test is a bit flaky Problem: Terminal mouse test is a bit flaky. Solution: Add WaitFor() calls. (James McCoy closes https://github.com/vim/vim/issues/11519) Tune wait times to reduce flakiness.
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Nov 2022 00:30:04 +0100
parents 08940efa6b4e
children
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

" vim: shiftwidth=2 sts=2 expandtab