diff options
| author | ZyX <kp-pav@yandex.ru> | 2017-08-14 01:17:16 +0300 |
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2017-08-14 01:17:16 +0300 |
| commit | a5449f79ac21919d45544c1e9ce86ae003e04298 (patch) | |
| tree | 4299f74ee495aa61e30f949cc30ddb1d11638411 | |
| parent | 474aa823dc5680b06dc84cd2ae248e58b6e83359 (diff) | |
| download | rneovim-a5449f79ac21919d45544c1e9ce86ae003e04298.tar.gz rneovim-a5449f79ac21919d45544c1e9ce86ae003e04298.tar.bz2 rneovim-a5449f79ac21919d45544c1e9ce86ae003e04298.zip | |
functests: Check that input is correctly silenced
| -rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 45 |
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') |