functests: Fix legacy/062_tab_pages_spec

This commit is contained in:
ZyX 2017-04-09 01:45:31 +03:00
parent ed0ad7ce3e
commit b3b31e1065

View File

@ -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()