view src/testdir/test_feedkeys.vim @ 18335:1c1a02e000b5 v8.1.2162

patch 8.1.2162: popup resize test is flaky Commit: https://github.com/vim/vim/commit/4e03933726e3698d962bf7dacdd27f306a4c5086 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 16 21:13:35 2019 +0200 patch 8.1.2162: popup resize test is flaky Problem: Popup resize test is flaky. (Christian Brabandt) Solution: Add the function to the list of flaky tests.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Oct 2019 21:15:03 +0200
parents 6b70b9cdebfc
children 08940efa6b4e
line wrap: on
line source

" Test feedkeys() function.

func Test_feedkeys_x_with_empty_string()
  new
  call feedkeys("ifoo\<Esc>")
  call assert_equal('', getline('.'))
  call feedkeys('', 'x')
  call assert_equal('foo', getline('.'))

  " check it goes back to normal mode immediately.
  call feedkeys('i', 'x')
  call assert_equal('foo', getline('.'))
  quit!
endfunc