changeset 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 755469df71bc
children 7b6fc912182c
files src/testdir/test_popupwin.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
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', {})
 
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1604,
+/**/
     1603,
 /**/
     1602,