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.
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index f89d566..13b0f1c 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -427,7 +427,7 @@
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 @@
\], {
\ 'line': 2,
\ 'col': 10,
+ \ 'wrap': 0,
+ \ 'fixed': 1,
\ 'zindex': 90,
\ 'padding': [],
\ 'highlight': 'PopupColor',
@@ -454,6 +456,12 @@
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')