neovim/test/functional/legacy/qf_title_spec.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
659 B
Lua
Raw Normal View History

2015-02-23 08:28:42 -07:00
-- Tests for quickfix window's title
local n = require('test.functional.testnvim')()
local insert, source = n.insert, n.source
local clear, expect = n.clear, n.expect
2015-02-23 08:28:42 -07:00
describe('qf_title', function()
setup(clear)
it('is working', function()
insert([[
Results of test_qf_title:]])
source([[
set efm=%E%f:%l:%c:%m
cgetexpr ['file:1:1:message']
let qflist=getqflist()
call setqflist(qflist, 'r')
copen
let g:quickfix_title=w:quickfix_title
wincmd p
$put =g:quickfix_title
]])
-- Assert buffer contents.
expect([[
Results of test_qf_title:
:setqflist()]])
end)
end)