Mercurial > vim
diff src/testdir/test_popupwin.vim @ 17235:2a97167854fc v8.1.1617
patch 8.1.1617: no test for popup window with mask and position fixed
commit https://github.com/vim/vim/commit/d529ba58dc7566833546e4beb5c4c50d8b78816a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 2 23:13:53 2019 +0200
patch 8.1.1617: no test for popup window with mask and position fixed
Problem: No test for popup window with mask and position fixed.
Solution: Add a couple of screenshots. Fix deteced problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 02 Jul 2019 23:15:06 +0200 |
parents | e9ebf3f27af6 |
children | 3ada3d207b33 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -427,7 +427,7 @@ func Test_popup_with_mask() throw 'Skipped: cannot make screendumps' endif let lines =<< trim END - call setline(1, repeat([join(range(1, 40), '')], 10)) + call setline(1, repeat([join(range(1, 42), '')], 10)) hi PopupColor ctermbg=lightgrey let winid = popup_create([ \ 'some text', @@ -435,6 +435,8 @@ func Test_popup_with_mask() \], { \ 'line': 2, \ 'col': 10, + \ 'wrap': 0, + \ 'fixed': 1, \ 'zindex': 90, \ 'padding': [], \ 'highlight': 'PopupColor', @@ -454,6 +456,12 @@ func Test_popup_with_mask() call term_sendkeys(buf, ":call popup_move(winid, {'col': 11, 'line': 3})\<CR>") call VerifyScreenDump(buf, 'Test_popupwin_mask_2', {}) + call term_sendkeys(buf, ":call popup_move(winid, {'col': 65, 'line': 3})\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_mask_3', {}) + + call term_sendkeys(buf, ":call popup_move(winid, {'pos': 'topright', 'col': 12, 'line': 3})\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_mask_4', {}) + " clean up call StopVimInTerminal(buf) call delete('XtestPopupMask')