Mercurial > vim
diff src/testdir/test_popupwin.vim @ 17216:11f3cf51d43b v8.1.1608
patch 8.1.1608: the evalfunc.c file is too big
commit https://github.com/vim/vim/commit/f9c85f580b3792f6b95107412972f5360d412ef0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 29 07:41:35 2019 +0200
patch 8.1.1608: the evalfunc.c file is too big
Problem: The evalfunc.c file is too big.
Solution: Move sign functionality to sign.c.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Jun 2019 07:45:06 +0200 |
parents | 175941dcc96b |
children | 5169811b3044 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -1436,7 +1436,15 @@ func Test_popup_scrollbar() func ScrollDown() call feedkeys("\<F3>\<ScrollWheelDown>", "xt") endfunc + func ClickTop() + call feedkeys("\<F4>\<LeftMouse>", "xt") + endfunc + func ClickBot() + call feedkeys("\<F5>\<LeftMouse>", "xt") + endfunc map <silent> <F3> :call test_setmouse(5, 36)<CR> + map <silent> <F4> :call test_setmouse(4, 42)<CR> + map <silent> <F5> :call test_setmouse(7, 42)<CR> END call writefile(lines, 'XtestPopupScroll') let buf = RunVimInTerminal('-S XtestPopupScroll', {'rows': 10}) @@ -1464,6 +1472,14 @@ func Test_popup_scrollbar() call term_sendkeys(buf, ":call ScrollDown()\<CR>") call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {}) + call term_sendkeys(buf, ":call ClickTop()\<CR>") + sleep 100m + call term_sendkeys(buf, ":call ClickTop()\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_scroll_8', {}) + + call term_sendkeys(buf, ":call ClickBot()\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_scroll_9', {}) + " clean up call StopVimInTerminal(buf) call delete('XtestPopupScroll')