diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-12-23 14:00:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 14:00:32 -0500 |
commit | a3b58cd60a6bb40c568ee5af4ea9a3ca5a8f7d09 (patch) | |
tree | c9bea5a80703ff2552717637d12401c2bb69233d /test | |
parent | f1bfd055a7f461fd6c3770b28d08b922838ee6b0 (diff) | |
parent | 657369bb68b08d2c373d6b425ed55e53d5f6789a (diff) | |
download | rneovim-a3b58cd60a6bb40c568ee5af4ea9a3ca5a8f7d09.tar.gz rneovim-a3b58cd60a6bb40c568ee5af4ea9a3ca5a8f7d09.tar.bz2 rneovim-a3b58cd60a6bb40c568ee5af4ea9a3ca5a8f7d09.zip |
Merge #5758 from justinmk/fixkbs
tui: check stty/termios for kbs
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/core/job_spec.lua | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index e27adc1a51..e4b6621ff9 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -6,6 +6,7 @@ local clear, eq, eval, execute, feed, insert, neq, next_msg, nvim, helpers.nvim_dir, helpers.ok, helpers.source, helpers.write_file, helpers.mkdir, helpers.rmdir local command = helpers.command +local wait = helpers.wait local Screen = require('test.functional.ui.screen') if helpers.pending_win32(pending) then return end @@ -271,7 +272,7 @@ describe('jobs', function() screen:set_default_attr_ids({ [1] = {bold=true, foreground=Screen.colors.Blue}, }) - local script = [[ + source([[ function! g:JobHandler(job_id, data, event) endfunction @@ -281,26 +282,14 @@ describe('jobs', function() \ 'on_exit': function('g:JobHandler') \ } let job = jobstart('cat -', g:callbacks) - ]] - source(script) - feed(':function! g:JobHandler(job_id, data, event)<cr>') - feed(':endfunction<cr>') - screen:expect([[ - ^ | - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - {1:~ }| - | ]]) + wait() + source([[ + function! g:JobHandler(job_id, data, event) + endfunction + ]]) + + eq("", eval("v:errmsg")) end) it('requires funcrefs for script-local (s:) functions', function() |