mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test/API: validate channel arg (#8245)
This commit is contained in:
@@ -4,7 +4,6 @@ local spawn, set_session, clear = helpers.spawn, helpers.set_session, helpers.cl
|
||||
local feed, command = helpers.feed, helpers.command
|
||||
local insert = helpers.insert
|
||||
local eq = helpers.eq
|
||||
local eval = helpers.eval
|
||||
local iswin = helpers.iswin
|
||||
|
||||
describe('screen', function()
|
||||
@@ -631,21 +630,3 @@ describe('Screen', function()
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('nvim_ui_attach()', function()
|
||||
before_each(function()
|
||||
clear()
|
||||
end)
|
||||
it('handles very large width/height #2180', function()
|
||||
local screen = Screen.new(999, 999)
|
||||
screen:attach()
|
||||
eq(999, eval('&lines'))
|
||||
eq(999, eval('&columns'))
|
||||
end)
|
||||
it('invalid option returns error', function()
|
||||
local screen = Screen.new()
|
||||
local status, rv = pcall(function() screen:attach({foo={'foo'}}) end)
|
||||
eq(false, status)
|
||||
eq('No such ui option', rv:match("No such .*"))
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user