summaryrefslogtreecommitdiff
path: root/src/testdir/test_popupwin.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_popupwin.vim')
-rw-r--r--src/testdir/test_popupwin.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index f89d56602..13b0f1cc5 100644
--- 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')