aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/shortmess_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/shortmess_spec.lua')
-rw-r--r--test/functional/ui/shortmess_spec.lua40
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)