mirror of
https://github.com/neovim/neovim.git
synced 2025-12-04 21:52:41 +00:00
refactor: format test/*
This commit is contained in:
@@ -23,7 +23,9 @@ end
|
||||
|
||||
describe('Ex command', function()
|
||||
before_each(clear)
|
||||
after_each(function() eq({}, meths.get_vvar('errors')) end)
|
||||
after_each(function()
|
||||
eq({}, meths.get_vvar('errors'))
|
||||
end)
|
||||
|
||||
it('checks for address line overflow', function()
|
||||
if sizeoflong() < 8 then
|
||||
@@ -47,10 +49,10 @@ describe(':confirm command dialog', function()
|
||||
clear()
|
||||
screen = Screen.new(75, 20)
|
||||
screen:set_default_attr_ids({
|
||||
[0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText
|
||||
[1] = {bold = true, reverse = true}, -- StatusLine, MsgSeparator
|
||||
[2] = {reverse = true}, -- StatusLineNC
|
||||
[3] = {bold = true, foreground = Screen.colors.SeaGreen}, -- MoreMsg
|
||||
[0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
|
||||
[1] = { bold = true, reverse = true }, -- StatusLine, MsgSeparator
|
||||
[2] = { reverse = true }, -- StatusLineNC
|
||||
[3] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg
|
||||
})
|
||||
screen:attach()
|
||||
end
|
||||
@@ -335,7 +337,7 @@ describe(':confirm command dialog', function()
|
||||
]])
|
||||
end
|
||||
eq('foobar\n', read_file('Xconfirm_write_ro'))
|
||||
feed('<CR>') -- suppress hit-enter prompt
|
||||
feed('<CR>') -- suppress hit-enter prompt
|
||||
|
||||
-- Try to write with read-only file permissions.
|
||||
funcs.setfperm('Xconfirm_write_ro', 'r--r--r--')
|
||||
@@ -375,7 +377,7 @@ describe(':confirm command dialog', function()
|
||||
]])
|
||||
end
|
||||
eq('foo\n', read_file('Xconfirm_write_ro'))
|
||||
feed('<CR>') -- suppress hit-enter prompt
|
||||
feed('<CR>') -- suppress hit-enter prompt
|
||||
|
||||
os.remove('Xconfirm_write_ro')
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user