view src/testdir/test_feedkeys.vim @ 15599:9da8ae285a02 v8.1.0807

patch 8.1.0807: session test fails on MS-Windows commit https://github.com/vim/vim/commit/9e79ccbe9ce6fce18939c7ac2e5ad059a3bd1951 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 24 15:57:30 2019 +0100 patch 8.1.0807: session test fails on MS-Windows Problem: Session test fails on MS-Windows. Solution: Don't try creating file with illegal name.
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Jan 2019 16:00:08 +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