diff src/testdir/test_popupwin.vim @ 17210:175941dcc96b v8.1.1604

patch 8.1.1604: popup window scroll test is flaky commit https://github.com/vim/vim/commit/13b47c37a650ab6045680a9e5513ef6ad71ee93f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 28 21:55:48 2019 +0200 patch 8.1.1604: popup window scroll test is flaky Problem: Popup window scroll test is flaky. Solution: Add a delay between scroll events.
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Jun 2019 22:00:06 +0200
parents 1a6ccc91ed46
children 11f3cf51d43b
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -1459,6 +1459,8 @@ func Test_popup_scrollbar()
   call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {})
 
   call term_sendkeys(buf, ":call ScrollDown()\<CR>")
+  " wait a bit, otherwise it fails sometimes (double click recognized?)
+  sleep 100m
   call term_sendkeys(buf, ":call ScrollDown()\<CR>")
   call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {})