diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-14 04:22:40 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-14 09:08:56 -0400 |
commit | 9c2d5f1a33ccf3838899425ede481c6cdb00acb5 (patch) | |
tree | 07f044aad44712a058a27e66e852f97bf4e80a7e /test/functional/ui/cmdline_highlight_spec.lua | |
parent | e7ba32529861e2c843ad7d5fc2d2d505a9412108 (diff) | |
download | rneovim-9c2d5f1a33ccf3838899425ede481c6cdb00acb5.tar.gz rneovim-9c2d5f1a33ccf3838899425ede481c6cdb00acb5.tar.bz2 rneovim-9c2d5f1a33ccf3838899425ede481c6cdb00acb5.zip |
functionaltest: map error does not cancel prompt
Diffstat (limited to 'test/functional/ui/cmdline_highlight_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index 5d9fffdf23..4db7720c2c 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -831,7 +831,7 @@ describe('Ex commands coloring support', function() | ]]) end) - it('does not prevent mapping error from cancelling prompt', function() + it('does prevent mapping error from cancelling prompt', function() command("cnoremap <expr> x execute('throw 42')[-1]") feed(':#x') screen:expect([[ @@ -846,14 +846,14 @@ describe('Ex commands coloring support', function() ]]) feed('<CR>') screen:expect([[ - ^ | - {EOB:~ }| - {EOB:~ }| {EOB:~ }| {EOB:~ }| {EOB:~ }| - {EOB:~ }| - | + :# | + {ERR:Error detected while processing :} | + {ERR:E605: Exception not caught: 42} | + {ERR:E749: empty buffer} | + {PE:Press ENTER or type command to continue}^ | ]]) feed('<CR>') screen:expect([[ @@ -866,7 +866,7 @@ describe('Ex commands coloring support', function() {EOB:~ }| | ]]) - eq('Error detected while processing :\nE605: Exception not caught: 42', + eq('Error detected while processing :\nE605: Exception not caught: 42\nE749: empty buffer', meths.command_output('messages')) end) it('errors out when failing to get callback', function() |