view src/testdir/test_balloon_gui.vim @ 34727:eac204857d17 v9.1.0242

patch 9.1.0242: filetype: octave history files are not recognized Commit: https://github.com/vim/vim/commit/be71ac694f623e162f1ecb7a182bdf2fd281591f Author: Wu, Zhenyu <wuzhenyu@ustc.edu> Date: Sun Mar 31 19:18:10 2024 +0200 patch 9.1.0242: filetype: octave history files are not recognized Problem: filetype: octave history files are not recognized Solution: Detect octave/history files as octave (Wu, Zhenyu) closes: #14363 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Mar 2024 19:30:04 +0200
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