mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
65fb622000
Hope this will make people using feed_command less likely: this hides bugs. Already found at least two: 1. msgpackparse() will show internal error: hash_add() in case of duplicate keys, though it will still work correctly. Currently silenced. 2. ttimeoutlen was spelled incorrectly, resulting in option not being set when expected. Test was still functioning somehow though. Currently fixed.
42 lines
1.0 KiB
Lua
42 lines
1.0 KiB
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local Screen = require('test.functional.ui.screen')
|
|
local clear, feed_command = helpers.clear, helpers.feed_command
|
|
|
|
if helpers.pending_win32(pending) then return end
|
|
|
|
describe("'shortmess'", function()
|
|
local screen
|
|
|
|
before_each(function()
|
|
clear()
|
|
screen = Screen.new(25, 5)
|
|
screen:attach()
|
|
end)
|
|
|
|
after_each(function()
|
|
screen:detach()
|
|
end)
|
|
|
|
describe('"F" flag', function()
|
|
it('hides messages about the files read', function()
|
|
feed_command('e test')
|
|
screen:expect([[
|
|
^ |
|
|
~ |
|
|
~ |
|
|
~ |
|
|
"test" is a directory |
|
|
]])
|
|
feed_command('set shortmess=F')
|
|
feed_command('e test')
|
|
screen:expect([[
|
|
^ |
|
|
~ |
|
|
~ |
|
|
~ |
|
|
:e test |
|
|
]])
|
|
end)
|
|
end)
|
|
end)
|