diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-09 02:02:53 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-09 03:24:17 +0300 |
commit | 9a0c921909f455cb068c3bcbf33ddefcabba220c (patch) | |
tree | be78d8e34abcc1b83b6e5786884ef65bde52defe | |
parent | d53fae5f54b107fb7ade15309db01f94bc36a4fe (diff) | |
download | rneovim-9a0c921909f455cb068c3bcbf33ddefcabba220c.tar.gz rneovim-9a0c921909f455cb068c3bcbf33ddefcabba220c.tar.bz2 rneovim-9a0c921909f455cb068c3bcbf33ddefcabba220c.zip |
functests: Fix legacy/096_location_list_spec
-rw-r--r-- | test/functional/legacy/096_location_list_spec.lua | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/test/functional/legacy/096_location_list_spec.lua b/test/functional/legacy/096_location_list_spec.lua index 908551f060..85c4fe0ec4 100644 --- a/test/functional/legacy/096_location_list_spec.lua +++ b/test/functional/legacy/096_location_list_spec.lua @@ -82,7 +82,7 @@ describe('location list', function() command('lrewind') command('enew') command('lopen') - command('lnext', 'lnext', 'lnext', 'lnext') + command(('lnext|'):rep(4)) -- Split the window, copying the location list, then open the copied -- location list and again navigate forward. @@ -119,11 +119,14 @@ describe('location list', function() -- ":{number}" followed by Enter repeatedly in the location list window. command('lrewind') command('lopen') - command('2', [[exe "normal \\<CR>"]]) + command('2') + command([[exe "normal \\<CR>"]]) command('wincmd p') - command('3', [[exe "normal \<CR>"]]) + command('3') + command([[exe "normal \<CR>"]]) command('wincmd p') - command('4', [[exe "normal \<CR>"]]) + command('4') + command([[exe "normal \<CR>"]]) -- Record the number of windows open, then go back to the result buffer. command('let numberOfWindowsOpen = winnr("$")') @@ -149,11 +152,14 @@ describe('location list', function() command('lrewind') command('lopen') command('wincmd K') - command('2', [[exe "normal \<CR>"]]) + command('2') + command([[exe "normal \<CR>"]]) command('wincmd p') - command('3', [[exe "normal \<CR>"]]) + command('3') + command([[exe "normal \<CR>"]]) command('wincmd p') - command('4', [[exe "normal \<CR>"]]) + command('4') + command([[exe "normal \<CR>"]]) -- Record the 'buftype' of window 1 (the location list) and the buffer name -- of window 2 (the current "test protocol" buffer), then go back to the |