Add test for vim-patch 7.4.672

This commit is contained in:
KillTheMule
2016-05-01 21:47:10 +02:00
parent 3e1ca9a2db
commit 11f41a3c8c
2 changed files with 32 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
local helpers = require('test.functional.helpers')
local Screen = require('test.functional.ui.screen')
local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute
local funcs = helpers.funcs
describe("'wildmode'", function()
local screen
@@ -30,3 +31,34 @@ describe("'wildmode'", function()
end)
end)
end)
describe('command line completion', function()
local screen
before_each(function()
clear()
screen = Screen.new(40, 5)
screen:attach()
screen:set_default_attr_ignore({{bold=true, foreground=Screen.colors.Blue}})
end)
after_each(function()
os.remove('Xtest-functional-viml-compl-dir')
end)
it('lists directories with empty PATH', function()
local tmp = funcs.tempname()
execute('e '.. tmp)
execute('cd %:h')
execute("call mkdir('Xtest-functional-viml-compl-dir')")
execute('let $PATH=""')
feed(':!<tab><bs>')
screen:expect([[
|
~ |
~ |
~ |
:!Xtest-functional-viml-compl-dir^ |
]])
end)
end)

View File

@@ -1,4 +1,3 @@
local helpers = require('test.functional.helpers')
local Screen = require('test.functional.ui.screen')
local clear, feed = helpers.clear, helpers.feed
@@ -716,4 +715,3 @@ describe('completion', function()
end)
end)