aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_highlight_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-08-14 01:17:16 +0300
committerZyX <kp-pav@yandex.ru>2017-08-14 01:17:16 +0300
commita5449f79ac21919d45544c1e9ce86ae003e04298 (patch)
tree4299f74ee495aa61e30f949cc30ddb1d11638411 /test/functional/ui/cmdline_highlight_spec.lua
parent474aa823dc5680b06dc84cd2ae248e58b6e83359 (diff)
downloadrneovim-a5449f79ac21919d45544c1e9ce86ae003e04298.tar.gz
rneovim-a5449f79ac21919d45544c1e9ce86ae003e04298.tar.bz2
rneovim-a5449f79ac21919d45544c1e9ce86ae003e04298.zip
functests: Check that input is correctly silenced
Diffstat (limited to 'test/functional/ui/cmdline_highlight_spec.lua')
-rw-r--r--test/functional/ui/cmdline_highlight_spec.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua
index b6288b746e..262d706e4e 100644
--- a/test/functional/ui/cmdline_highlight_spec.lua
+++ b/test/functional/ui/cmdline_highlight_spec.lua
@@ -342,6 +342,51 @@ describe('Command-line coloring', function()
:e^ |
]])
end)
+ it('silences :echo', function()
+ set_color_cb('Echoing')
+ start_prompt('e')
+ screen:expect([[
+ |
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ :e^ |
+ ]])
+ eq('', meths.command_output('messages'))
+ end)
+ it('silences :echon', function()
+ set_color_cb('Echoning')
+ start_prompt('e')
+ screen:expect([[
+ |
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ :e^ |
+ ]])
+ eq('', meths.command_output('messages'))
+ end)
+ it('silences :echomsg', function()
+ set_color_cb('Echomsging')
+ start_prompt('e')
+ screen:expect([[
+ |
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ :e^ |
+ ]])
+ eq('', meths.command_output('messages'))
+ end)
it('does the right thing when throwing', function()
set_color_cb('Throwing')
start_prompt('e')