mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
functests: Fix legacy/062_tab_pages_spec
This commit is contained in:
parent
ed0ad7ce3e
commit
b3b31e1065
@ -4,6 +4,7 @@ local helpers = require('test.functional.helpers')(after_each)
|
||||
local feed, insert, source, clear, command, expect, eval, eq =
|
||||
helpers.feed, helpers.insert, helpers.source, helpers.clear,
|
||||
helpers.command, helpers.expect, helpers.eval, helpers.eq
|
||||
local exc_exec = helpers.exc_exec
|
||||
|
||||
describe('tab pages', function()
|
||||
before_each(clear)
|
||||
@ -112,12 +113,8 @@ describe('tab pages', function()
|
||||
command('7tabmove 5')
|
||||
eq(5, eval('tabpagenr()'))
|
||||
command('let a="No error caught."')
|
||||
command('try')
|
||||
command('tabmove foo')
|
||||
command('catch E474')
|
||||
command('let a="E474 caught."')
|
||||
command('endtry')
|
||||
eq('E474 caught.', eval('a'))
|
||||
eq('Vim(tabmove):E474: Invalid argument: tabmove foo',
|
||||
exc_exec('tabmove foo'))
|
||||
end)
|
||||
|
||||
it('can trigger certain autocommands', function()
|
||||
|
Loading…
Reference in New Issue
Block a user