diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-03-13 13:13:31 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-03-17 00:07:38 -0400 |
commit | 77a7ca458bc3e6e140149d1f2bf97593e2d502cd (patch) | |
tree | c16313c43e047a06d91636044d8957187bb03a27 /test | |
parent | c94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff) | |
download | rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.tar.gz rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.tar.bz2 rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.zip |
'shortmess': Add "F" flag. #4446
Add "Don't give the file editing message" flag in shortmess option.
Add the UI tests by @fmoralesc
Fix the changes for Vim 7.4.1570
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/shortmess_spec.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/ui/shortmess_spec.lua b/test/functional/ui/shortmess_spec.lua new file mode 100644 index 0000000000..e58e33f6c3 --- /dev/null +++ b/test/functional/ui/shortmess_spec.lua @@ -0,0 +1,40 @@ +local helpers = require('test.functional.helpers') +local Screen = require('test.functional.ui.screen') +local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute + +describe("'shortmess'", function() + local screen + + before_each(function() + clear() + screen = Screen.new(25, 5) + screen:attach() + execute('set shortmess&') + end) + + after_each(function() + screen:detach() + end) + + describe("=F", function() + it(':hides messages about the files read', function() + execute('e test') + screen:expect([[ + ^ | + ~ | + ~ | + ~ | + "test" is a directory | + ]]) + execute('set shortmess=F') + execute('e test') + screen:expect([[ + ^ | + ~ | + ~ | + ~ | + :e test | + ]]) + end) + end) +end) |