view src/testdir/test_balloon_gui.vim @ 27255:8c43e3d1a6e5 v8.2.4156

patch 8.2.4156: fileinfo message overwrites echo'ed message Commit: https://github.com/vim/vim/commit/726f7f91fd17e3e7eb39614a20d10ea83c134df0 Author: Rob Pilling <robpilling@gmail.com> Date: Thu Jan 20 14:44:38 2022 +0000 patch 8.2.4156: fileinfo message overwrites echo'ed message Problem: Fileinfo message overwrites echo'ed message. Solution: Reset need_fileinfo when displaying a message. (Rob Pilling, closes #9569)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 15:45:03 +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