call term_sendkeys(buf, "q:")
call term_wait(buf)
call term_sendkeys(buf, ":echo b:dummy_var\<cr>")
- call WaitForAssert({-> assert_match('^This is a dummy', term_getline(buf, 6))}, 1000)
+ call WaitForAssert({-> assert_match('^This is a dummy', term_getline(buf, 6))}, 2000)
call term_sendkeys(buf, ":echo &buftype\<cr>")
call WaitForAssert({-> assert_notmatch('^nofile', term_getline(buf, 6))}, 1000)
call term_sendkeys(buf, ":echo winnr\<cr>")
endif
let g:job = job_start(cmd, {})
call job_stop(g:job)
- sleep 10m
+ sleep 50m
call assert_equal(-1, job_info(g:job).exitval)
let g:job = job_start(cmd, {})
call job_stop(g:job, 'term')
- sleep 10m
+ sleep 50m
call assert_equal(-1, job_info(g:job).exitval)
let g:job = job_start(cmd, {})
call job_stop(g:job, 'kill')
- sleep 10m
+ sleep 50m
call assert_equal(-1, job_info(g:job).exitval)
endfunc
\ 'call setline(1, range(20))',
\ 'hi PopTerm ctermbg=grey',
\ 'func OpenTerm(setColor)',
+ \ " set noruler",
\ " let s:buf = term_start('" .. cmd .. " Xtext', #{hidden: 1, term_finish: 'close'})",
\ ' let g:winid = popup_create(s:buf, #{minwidth: 45, minheight: 7, border: [], drag: 1, resize: 1})',
\ ' if a:setColor',
\ ]
call writefile(lines, 'XtermPopup')
let buf = RunVimInTerminal('-S XtermPopup', #{rows: 15})
- call term_wait(buf, 100)
- call term_sendkeys(buf, "\<C-L>")
+ call term_wait(buf, 200)
call term_sendkeys(buf, ":call OpenTerm(0)\<CR>")
- call term_wait(buf, 100)
+ call term_wait(buf, 200)
call term_sendkeys(buf, ":\<CR>")
+ call term_wait(buf, 200)
call term_sendkeys(buf, "\<C-W>:echo getwinvar(g:winid, \"&buftype\") win_gettype(g:winid)\<CR>")
call VerifyScreenDump(buf, 'Test_terminal_popup_1', {})
call VerifyScreenDump(buf, 'Test_terminal_popup_2', {})
call term_sendkeys(buf, ":call OpenTerm(1)\<CR>")
+ call term_wait(buf, 300)
call term_sendkeys(buf, ":set hlsearch\<CR>")
call term_sendkeys(buf, "/edit\<CR>")
call VerifyScreenDump(buf, 'Test_terminal_popup_3', {})
call term_wait(buf, 100)
call term_sendkeys(buf, ":q\<CR>")
- call term_wait(buf, 100) " wait for terminal to vanish
+ call term_wait(buf, 200) " wait for terminal to vanish
call StopVimInTerminal(buf)
call delete('Xtext')
\ ]
call writefile(lines, 'XtermPopup')
let buf = RunVimInTerminal('-S XtermPopup', #{rows: 15})
- call term_wait(buf, 100)
- call term_sendkeys(buf, "\<C-L>")
+ call term_wait(buf, 200)
+ call term_sendkeys(buf, ":set noruler\<CR>")
call term_sendkeys(buf, ":call OpenTerm()\<CR>")
call term_wait(buf, 100)
call term_sendkeys(buf, ":\<CR>")