view src/testdir/test_ex_undo.vim @ 31029:bf8e9ef40006 v9.0.0849

patch 9.0.0849: terminal mouse test is a bit flaky Commit: https://github.com/vim/vim/commit/157241e8798fe1c14f3787ee341ffee2c403714a Author: James McCoy <jamessan@jamessan.com> Date: Wed Nov 9 23:29:14 2022 +0000 patch 9.0.0849: terminal mouse test is a bit flaky Problem: Terminal mouse test is a bit flaky. Solution: Add WaitFor() calls. (James McCoy closes https://github.com/vim/vim/issues/11519) Tune wait times to reduce flakiness.
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Nov 2022 00:30:04 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" Tests for :undo

func Test_ex_undo()
  new ex-undo
  setlocal ul=10
  exe "normal ione\n\<Esc>"
  setlocal ul=10
  exe "normal itwo\n\<Esc>"
  setlocal ul=10
  exe "normal ithree\n\<Esc>"
  call assert_equal(4, line('$'))
  undo
  call assert_equal(3, line('$'))
  undo 1
  call assert_equal(2, line('$'))
  undo 0
  call assert_equal(1, line('$'))
  quit!
endfunc

" vim: shiftwidth=2 sts=2 expandtab