Christian wrote:
> 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
It's also flaky on Travis. Not sure how to solve that.
Adding sleeps is not a nice way.
At least one WaitFor() is missing, and another has the match the wrong
way around.
--
hundred-and-one symptoms of being an internet addict:
229. You spend so much time thinking what to add on this list.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.