diff options
| author | Bram Moolenaar <Bram@vim.org> | 2019-06-20 02:31:49 +0200 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2019-06-20 02:31:49 +0200 |
| commit | a3fce62c911c204ae144b55018f6dc9295088850 (patch) | |
| tree | b65c7ea4a00a3bc741dea05eaf04b56ae6d5d8e3 /src/testdir/test_popupwin.vim | |
| parent | 37e66cf0f6fa482d36d67818672000fbfb37dfbb (diff) | |
| download | vim-git-8.1.1574.tar.gz | |
patch 8.1.1574: tabpage option not yet implemented for popup windowv8.1.1574
Problem: Tabpage option not yet implemented for popup window.
Solution: Implement tabpage option, also for popup_getoptions().
Diffstat (limited to 'src/testdir/test_popupwin.vim')
| -rw-r--r-- | src/testdir/test_popupwin.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 7d723a066..451f0b6b9 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -398,8 +398,10 @@ func Test_popup_in_tab() let winid = popup_create("text", {}) let bufnr = winbufnr(winid) call assert_equal(1, popup_getpos(winid).visible) + call assert_equal(0, popup_getoptions(winid).tabpage) tabnew call assert_equal(0, popup_getpos(winid).visible) + call assert_equal(1, popup_getoptions(winid).tabpage) quit call assert_equal(1, popup_getpos(winid).visible) @@ -411,11 +413,23 @@ func Test_popup_in_tab() " global popup is visible in any tab let winid = popup_create("text", {'tabpage': -1}) call assert_equal(1, popup_getpos(winid).visible) + call assert_equal(-1, popup_getoptions(winid).tabpage) tabnew call assert_equal(1, popup_getpos(winid).visible) + call assert_equal(-1, popup_getoptions(winid).tabpage) quit call assert_equal(1, popup_getpos(winid).visible) call popup_clear() + + " create popup in other tab + tabnew + let winid = popup_create("text", {'tabpage': 1}) + call assert_equal(0, popup_getpos(winid).visible) + call assert_equal(1, popup_getoptions(winid).tabpage) + quit + call assert_equal(1, popup_getpos(winid).visible) + call assert_equal(0, popup_getoptions(winid).tabpage) + call popup_clear() endfunc func Test_popup_valid_arguments() |
