diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-21 17:08:29 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-21 17:08:29 -0300 |
commit | af5eaf22c529205ea75665df4a917b9294419f12 (patch) | |
tree | d204eca11f8ea4fa128016f68a1bc0f8af62ff18 /test/functional/legacy | |
parent | 2c29b20af767bd7ebebeb41da14df4d66a19d5a0 (diff) | |
parent | f09a33bbc131138f67aa13752559ade2d4e577c2 (diff) | |
download | rneovim-af5eaf22c529205ea75665df4a917b9294419f12.tar.gz rneovim-af5eaf22c529205ea75665df4a917b9294419f12.tar.bz2 rneovim-af5eaf22c529205ea75665df4a917b9294419f12.zip |
Merge PR #1518 'Improve functional tests and perform explicit K_EVENT handling'
Diffstat (limited to 'test/functional/legacy')
-rw-r--r-- | test/functional/legacy/004_bufenter_with_modelines_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/legacy/101_hlsearch_spec.lua | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/legacy/004_bufenter_with_modelines_spec.lua b/test/functional/legacy/004_bufenter_with_modelines_spec.lua index f1222700a7..6f009b52dd 100644 --- a/test/functional/legacy/004_bufenter_with_modelines_spec.lua +++ b/test/functional/legacy/004_bufenter_with_modelines_spec.lua @@ -31,7 +31,7 @@ describe('BufEnter with modelines', function() execute('sp Xxx') -- Append text with autoindent to this file - feed('G?this is a<Esc>') + feed('G?this is a<CR>') feed('othis should be auto-indented<Esc>') -- Go to Xxx, no autocmd anymore @@ -39,7 +39,7 @@ describe('BufEnter with modelines', function() execute('buf Xxx') -- Append text without autoindent to Xxx - feed('G?this is a<Esc>') + feed('G?this is a<CR>') feed('othis should be in column 1<Esc>') execute('wq') diff --git a/test/functional/legacy/101_hlsearch_spec.lua b/test/functional/legacy/101_hlsearch_spec.lua index 4a3abb19ce..3c44f02edb 100644 --- a/test/functional/legacy/101_hlsearch_spec.lua +++ b/test/functional/legacy/101_hlsearch_spec.lua @@ -3,6 +3,7 @@ local helpers = require('test.functional.helpers') local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert local execute, expect = helpers.execute, helpers.expect +local eval = helpers.eval describe('v:hlsearch', function() setup(clear) @@ -44,7 +45,7 @@ describe('v:hlsearch', function() execute('$put=r') execute('call garbagecollect(1)') execute('call getchar()') - execute('1d') + execute('1d', '1d') -- Assert buffer contents. expect([[ |