Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 16892:60c9ac14a2ec v8.1.1447
patch 8.1.1447: not allowed to create an empty popup
commit https://github.com/vim/vim/commit/7b29dd850752b975baef47b66c590f5e978ad847
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 2 13:22:11 2019 +0200
patch 8.1.1447: not allowed to create an empty popup
Problem: Not allowed to create an empty popup.
Solution: Remove restriction that there is some text. (closes https://github.com/vim/vim/issues/4470)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jun 2019 13:30:05 +0200 |
parents | 5131023c5728 |
children | 236c182c6300 |
comparison
equal
deleted
inserted
replaced
16891:bdd52b0f05f5 | 16892:60c9ac14a2ec |
---|---|
594 let winid = popup_create('something', {'callback': 'PopupDone'}) | 594 let winid = popup_create('something', {'callback': 'PopupDone'}) |
595 redraw | 595 redraw |
596 call popup_close(winid, 'done') | 596 call popup_close(winid, 'done') |
597 call assert_equal('done', g:result) | 597 call assert_equal('done', g:result) |
598 endfunc | 598 endfunc |
599 | |
600 func Test_popup_empty() | |
601 let winid = popup_create('', {'padding': [2,2,2,2]}) | |
602 redraw | |
603 let pos = popup_getpos(winid) | |
604 call assert_equal(4, pos.width) | |
605 call assert_equal(5, pos.height) | |
606 | |
607 let winid = popup_create([], {'border': []}) | |
608 redraw | |
609 let pos = popup_getpos(winid) | |
610 call assert_equal(2, pos.width) | |
611 call assert_equal(3, pos.height) | |
612 endfunc |