summaryrefslogtreecommitdiff
path: root/src/testdir/test_popupwin.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-02 15:25:16 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-02 15:25:16 +0100
commitd98c0b63abd7b0e61a383669474abe96044615af (patch)
tree81409a98d3a6d7712373b57242a40171ab64d8de /src/testdir/test_popupwin.vim
parent3180fe6c6dc0728d21c6318b957022b029c234f0 (diff)
downloadvim-git-d98c0b63abd7b0e61a383669474abe96044615af.tar.gz
patch 8.2.0196: blocking commands for a finished job in a popup windowv8.2.0196
Problem: Blocking commands for a finished job in a popup window. Solution: Do not block commands if the job has finished. Adjust test.
Diffstat (limited to 'src/testdir/test_popupwin.vim')
-rw-r--r--src/testdir/test_popupwin.vim14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 75247b533..f8f501afa 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2396,10 +2396,20 @@ endfunc
func Test_popupwin_terminal_buffer()
CheckFeature terminal
+ CheckUnix
+ let origwin = win_getid()
let ptybuf = term_start(&shell, #{hidden: 1})
- call assert_fails('let winnr = popup_create(ptybuf, #{})', 'E278:')
- exe 'bwipe! ' .. ptybuf
+ let winnr = popup_create(ptybuf, #{minwidth: 40, minheight: 10})
+ " Wait for shell to start
+ sleep 200m
+ " Cannot quit while job is running
+ call assert_fails('call feedkeys("\<C-W>:quit\<CR>", "xt")', 'E948:')
+ call feedkeys("exit\<CR>", 'xt')
+ " Wait for shell to exit
+ sleep 100m
+ call feedkeys(":quit\<CR>", 'xt')
+ call assert_equal(origwin, win_getid())
endfunc
func Test_popupwin_with_buffer_and_filter()