view src/testdir/test_balloon_gui.vim @ 27936:07aea9530e05 v8.2.4493

patch 8.2.4493: options test fails in the GUI Commit: https://github.com/vim/vim/commit/b9c510859360595c046b8b7c1d6828125525e967 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 2 20:12:03 2022 +0000 patch 8.2.4493: options test fails in the GUI Problem: Options test fails in the GUI. Solution: Do not save and restore 'term'.
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Mar 2022 21:15: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