mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 22:59:36 +00:00
legacy tests: migrate test_changelist
This commit is contained in:
committed by
Thiago de Arruda
parent
4ca353d3bd
commit
b67ad4f67f
@@ -1,22 +0,0 @@
|
||||
Test changelist position after splitting window
|
||||
Set 'undolevels' to make changelist for sourced file
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
Gkylp:set ul=100
|
||||
Gylp:set ul=100
|
||||
gg
|
||||
:vsplit
|
||||
:try
|
||||
: normal g;
|
||||
: normal ggVGcpass
|
||||
:catch
|
||||
: normal ggVGcfail
|
||||
:finally
|
||||
: %w! test.out
|
||||
:endtry
|
||||
:qa!
|
||||
ENDTEST
|
||||
|
||||
1
|
||||
2
|
||||
@@ -1 +0,0 @@
|
||||
pass
|
||||
26
test/functional/legacy/changelist_spec.lua
Normal file
26
test/functional/legacy/changelist_spec.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
-- Test changelist position after splitting window
|
||||
-- Set 'undolevels' to make changelist for sourced file
|
||||
|
||||
local helpers = require('test.functional.helpers')
|
||||
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
|
||||
local execute, expect = helpers.execute, helpers.expect
|
||||
|
||||
describe('changelist', function()
|
||||
setup(clear)
|
||||
|
||||
it('is working', function()
|
||||
insert("1\n2")
|
||||
|
||||
feed('Gkylp')
|
||||
execute('set ul=100')
|
||||
|
||||
feed('Gylp')
|
||||
execute('set ul=100')
|
||||
|
||||
feed('gg')
|
||||
execute('vsplit')
|
||||
execute('try', 'normal g;', 'normal ggVGcpass', 'catch', 'normal ggVGcfail', 'endtry')
|
||||
|
||||
expect('pass')
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user