diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2017-10-11 21:25:54 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-02-19 07:10:41 -0500 |
commit | 0fd899aa077b9a70932bfc3b191e780716b4b4d5 (patch) | |
tree | 75b70c3c17d04ac82fe7c50b235d72dbdfb80360 | |
parent | 3e19e18f4cfa0f9c578b6e306a0d887551893b3c (diff) | |
download | rneovim-0fd899aa077b9a70932bfc3b191e780716b4b4d5.tar.gz rneovim-0fd899aa077b9a70932bfc3b191e780716b4b4d5.tar.bz2 rneovim-0fd899aa077b9a70932bfc3b191e780716b4b4d5.zip |
win: enable legacy test 025
-rw-r--r-- | test/functional/legacy/025_jump_tag_hidden_spec.lua | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test/functional/legacy/025_jump_tag_hidden_spec.lua b/test/functional/legacy/025_jump_tag_hidden_spec.lua index 0d51b4da26..dd89a3680e 100644 --- a/test/functional/legacy/025_jump_tag_hidden_spec.lua +++ b/test/functional/legacy/025_jump_tag_hidden_spec.lua @@ -5,8 +5,6 @@ local helpers = require('test.functional.helpers')(after_each) local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert local feed_command, expect = helpers.feed_command, helpers.expect -if helpers.pending_win32(pending) then return end - describe('jump to a tag with hidden set', function() setup(clear) @@ -25,12 +23,17 @@ describe('jump to a tag with hidden set', function() feed_command('set hidden') -- Create a link from test25.dir to the current directory. - feed_command('!rm -f test25.dir') - feed_command('!ln -s . test25.dir') + if helpers.iswin() then + feed_command('!rd /q/s test25.dir') + feed_command('!mklink /j test25.dir .') + else + feed_command('!rm -f test25.dir') + feed_command('!ln -s . test25.dir') + end -- Create tags.text, with the current directory name inserted. feed_command('/tags line') - feed_command('r !pwd') + feed_command('r !' .. (helpers.iswin() and 'cd' or 'pwd')) feed('d$/test<cr>') feed('hP:.w! tags.test<cr>') @@ -39,7 +42,13 @@ describe('jump to a tag with hidden set', function() -- space will then be eaten by hit-return, instead of moving the cursor to 'd'. feed_command('set tags=tags.test') feed('G<C-]> x:yank a<cr>') - feed_command('!rm -f Xxx test25.dir tags.test') + feed_command("call delete('tags.test')") + feed_command("call delete('Xxx')") + if helpers.iswin() then + feed_command('!rd /q test25.dir') + else + feed_command('!rm -f test25.dir') + end -- Put @a and remove empty line feed_command('%d') |