mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 15:14:04 +00:00
tests: introduce screen:expect{...} form
This commit is contained in:
@@ -28,27 +28,27 @@ describe('ui/ext_tabline', function()
|
||||
{tab = { id = 1 }, name = '[No Name]'},
|
||||
{tab = { id = 2 }, name = 'another-tab'},
|
||||
}
|
||||
screen:expect([[
|
||||
screen:expect{grid=[[
|
||||
^ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
|
|
||||
]], nil, nil, function()
|
||||
]], condition=function()
|
||||
eq({ id = 2 }, event_curtab)
|
||||
eq(expected_tabs, event_tabs)
|
||||
end)
|
||||
end}
|
||||
|
||||
command("tabNext")
|
||||
screen:expect([[
|
||||
screen:expect{grid=[[
|
||||
^ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
|
|
||||
]], nil, nil, function()
|
||||
]], condition=function()
|
||||
eq({ id = 1 }, event_curtab)
|
||||
eq(expected_tabs, event_tabs)
|
||||
end)
|
||||
end}
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user