view src/testdir/test_balloon_gui.vim @ 21811:3261e28c638a v8.2.1455

patch 8.2.1455: Vim9: crash when using typecast before constant Commit: https://github.com/vim/vim/commit/d1103587cf339feb8c77d282f7f7e92b7cff5add Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 14 22:44:25 2020 +0200 patch 8.2.1455: Vim9: crash when using typecast before constant Problem: Vim9: crash when using typecast before constant. Solution: Generate constant before checking type. Add tets.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Aug 2020 22:45:03 +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