legacy tests: migrate test_changelist

This commit is contained in:
Rainer Borene
2014-10-22 22:35:55 -02:00
committed by Thiago de Arruda
parent 4ca353d3bd
commit b67ad4f67f
3 changed files with 26 additions and 23 deletions

View File

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

View File

@@ -1 +0,0 @@
pass

View 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)