aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-10-26 11:24:51 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-26 11:24:51 -0300
commit29d64a901df6eff436b100374b2a240eea1906d9 (patch)
tree613b820fdc3d1d48a68146a4b516d05898798513 /test/functional/api/vim_spec.lua
parent424b00ea610b90ed4041711f27d71d0e359038a7 (diff)
parent1726c7d999e68b4ed8aee234b7dfa339ed0784b2 (diff)
downloadrneovim-29d64a901df6eff436b100374b2a240eea1906d9.tar.gz
rneovim-29d64a901df6eff436b100374b2a240eea1906d9.tar.bz2
rneovim-29d64a901df6eff436b100374b2a240eea1906d9.zip
Merge PR #3413 'Refactor Neovim to remove the side effects of `K_EVENT`'
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua18
1 files changed, 3 insertions, 15 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 8d4e183653..eb4804f141 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -247,33 +247,21 @@ describe('vim_* functions', function()
~ |
{1:very fail} |
]])
+ helpers.wait()
-- shows up to &cmdheight lines
- nvim_async('err_write', 'more fail\n')
- nvim_async('err_write', 'too fail\n')
+ nvim_async('err_write', 'more fail\ntoo fail\n')
screen:expect([[
~ |
~ |
~ |
~ |
~ |
- {1:very fail} |
- {1:more fail} |
- {2:Press ENTER or type command to continue}^ |
- ]])
-
- -- shows the rest after return
- feed('<cr>')
- screen:expect([[
- ~ |
- ~ |
- ~ |
- {1:very fail} |
{1:more fail} |
- {2:Press ENTER or type command to continue} |
{1:too fail} |
{2:Press ENTER or type command to continue}^ |
]])
+ feed('<cr>') -- exit the press ENTER screen
end)
end)