aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_highlight_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-06-28 14:26:23 +0300
committerZyX <kp-pav@yandex.ru>2017-06-28 14:26:23 +0300
commit0ed95423de714edac11ccff177b8aee6b7987bac (patch)
treed1db5ee9f34434ea0b622da7ae3d460e47ece0f6 /test/functional/ui/cmdline_highlight_spec.lua
parent493d250446e5323e64c80399f0c5a15621c4f15c (diff)
downloadrneovim-0ed95423de714edac11ccff177b8aee6b7987bac.tar.gz
rneovim-0ed95423de714edac11ccff177b8aee6b7987bac.tar.bz2
rneovim-0ed95423de714edac11ccff177b8aee6b7987bac.zip
ex_getln: Call highlight callback inside :try
Diffstat (limited to 'test/functional/ui/cmdline_highlight_spec.lua')
-rw-r--r--test/functional/ui/cmdline_highlight_spec.lua15
1 files changed, 11 insertions, 4 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua
index 12577a4db4..8207a903f4 100644
--- a/test/functional/ui/cmdline_highlight_spec.lua
+++ b/test/functional/ui/cmdline_highlight_spec.lua
@@ -285,16 +285,23 @@ describe('Command-line coloring', function()
]])
end)
it('does the right thing when errorring', function()
- if true then return pending('echoerr does not work well now') end
set_color_cb('Echoerring')
start_prompt('e')
- -- FIXME Does not work well with :echoerr: error message overwrites cmdline.
+ -- FIXME Does not work well with :echoerr: error message not shown.
end)
it('does the right thing when throwing', function()
- if true then return pending('Throwing does not work well now') end
set_color_cb('Throwing')
start_prompt('e')
- -- FIXME Does not work well with :throw: error message overwrites cmdline.
+ screen:expect([[
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ : |
+ {ERR:E5407: Callback has thrown an exception:}|
+ {ERR: ABC} |
+ :e^ |
+ ]])
end)
it('stops executing callback after a number of errors', function()
set_color_cb('SplittedMultibyteStart')