view src/testdir/test_feedkeys.vim @ 11227:9bfae04699c3 v8.0.0500

patch 8.0.0500: quotestar test is still a bit flaky commit https://github.com/vim/vim/commit/4889ad7c6cd46368f553cc1140ca17508e8beaaa Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 21 18:02:41 2017 +0100 patch 8.0.0500: quotestar test is still a bit flaky Problem: Quotestar test is still a bit flaky. Solution: Add a slower check for v:version.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Mar 2017 18:15:04 +0100
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