0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1598: update to test file missing

Problem:    Update to test file missing.
Solution:   Update the popup window test file.
This commit is contained in:
Bram Moolenaar
2019-06-26 03:54:08 +02:00
parent 68acb41f99
commit 53a95d6584
2 changed files with 21 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ func Test_popup_with_border_and_padding()
\ 'core_width': 12, \ 'core_width': 12,
\ 'height': 3, \ 'height': 3,
\ 'core_height': 1, \ 'core_height': 1,
\ 'firstline': 1,
\ 'scrollbar': 0, \ 'scrollbar': 0,
\ 'visible': 1} \ 'visible': 1}
let winid = popup_create('hello border', {'line': 2, 'col': 3, 'border': []})", let winid = popup_create('hello border', {'line': 2, 'col': 3, 'border': []})",
@@ -173,6 +174,7 @@ func Test_popup_with_border_and_padding()
\ 'height': 5, \ 'height': 5,
\ 'scrollbar': 0, \ 'scrollbar': 0,
\ 'core_height': 1, \ 'core_height': 1,
\ 'firstline': 1,
\ 'visible': 1}, popup_getpos(winid)) \ 'visible': 1}, popup_getpos(winid))
call popup_clear() call popup_clear()
@@ -1426,6 +1428,13 @@ func Test_popup_scrollbar()
\ 'minwidth': 8, \ 'minwidth': 8,
\ 'maxheight': 4, \ 'maxheight': 4,
\ }) \ })
func ScrollUp()
call feedkeys("\<F3>\<ScrollWheelUp>", "xt")
endfunc
func ScrollDown()
call feedkeys("\<F3>\<ScrollWheelDown>", "xt")
endfunc
map <silent> <F3> :call test_setmouse(5, 36)<CR>
END END
call writefile(lines, 'XtestPopupScroll') call writefile(lines, 'XtestPopupScroll')
let buf = RunVimInTerminal('-S XtestPopupScroll', {'rows': 10}) let buf = RunVimInTerminal('-S XtestPopupScroll', {'rows': 10})
@@ -1440,6 +1449,16 @@ func Test_popup_scrollbar()
call term_sendkeys(buf, ":call popup_setoptions(winid, {'firstline': 9})\<CR>") call term_sendkeys(buf, ":call popup_setoptions(winid, {'firstline': 9})\<CR>")
call VerifyScreenDump(buf, 'Test_popupwin_scroll_4', {}) call VerifyScreenDump(buf, 'Test_popupwin_scroll_4', {})
call term_sendkeys(buf, ":call ScrollUp()\<CR>")
call VerifyScreenDump(buf, 'Test_popupwin_scroll_5', {})
call term_sendkeys(buf, ":call ScrollDown()\<CR>")
call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {})
call term_sendkeys(buf, ":call ScrollDown()\<CR>")
call term_sendkeys(buf, ":call ScrollDown()\<CR>")
call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {})
" clean up " clean up
call StopVimInTerminal(buf) call StopVimInTerminal(buf)
call delete('XtestPopupScroll') call delete('XtestPopupScroll')

View File

@@ -777,6 +777,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1598,
/**/ /**/
1597, 1597,
/**/ /**/