diff options
author | Rainer Borene <rainerborene@gmail.com> | 2014-10-22 22:35:55 -0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-04 12:57:33 -0300 |
commit | b67ad4f67f3012c2f0165fc0f2874614ab2b796a (patch) | |
tree | 9740c3d84d26aad2cef0c7c8c286559dc2dc7e04 /test | |
parent | 4ca353d3bdfc41250835dcaba727554a4d21243d (diff) | |
download | rneovim-b67ad4f67f3012c2f0165fc0f2874614ab2b796a.tar.gz rneovim-b67ad4f67f3012c2f0165fc0f2874614ab2b796a.tar.bz2 rneovim-b67ad4f67f3012c2f0165fc0f2874614ab2b796a.zip |
legacy tests: migrate test_changelist
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/changelist_spec.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/legacy/changelist_spec.lua b/test/functional/legacy/changelist_spec.lua new file mode 100644 index 0000000000..7c696369d4 --- /dev/null +++ b/test/functional/legacy/changelist_spec.lua @@ -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) |