On Fr, 29 Sep 2017, Bram Moolenaar wrote:
> + func Test_popup_and_window_resize()
> + if !has('terminal') || has('gui_running')
> + return
> + endif
> + let h = winheight(0)
> + if h < 15
> + return
> + endif
> + let g:buf = term_start([$VIMPROG, '--clean', '-c', 'set noswapfile'],
> {'term_rows': h / 3})
> + call term_sendkeys(g:buf, (h / 3 - 1)."o\<esc>G")
> + call term_sendkeys(g:buf, "i\<c-x>")
> + call term_wait(g:buf, 100)
> + call term_sendkeys(g:buf, "\<c-v>")
> + call term_wait(g:buf, 100)
> + call assert_match('^!\s*$', term_getline(g:buf, 1))
> + exe 'resize +' . (h - 1)
> + call term_wait(g:buf, 100)
> + redraw!
> + call WaitFor('"" == term_getline(g:buf, 1)')
> + call assert_equal('', term_getline(g:buf, 1))
> + sleep 100m
> + call WaitFor('"^!" =~ term_getline(g:buf, term_getcursor(g:buf)[0] + 1)')
> + call assert_match('^!\s*$', term_getline(g:buf, term_getcursor(g:buf)[0]
> + 1))
> bwipe!
> endfunc
This fails on Windows
https://ci.appveyor.com/project/chrisbra/vim-win32-installer/build/500/job/kforu9e7r7ld0e2e#L2279
Christian
--
Es hat sich bewährt, an das Gute im Menschen zu glauben, aber sich auf
das Schlechte zu verlassen.
-- Alfred Polgar
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.