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