qf_title_spec.lua 659 B

1234567891011121314151617181920212223242526272829303132
  1. -- Tests for quickfix window's title
  2. local n = require('test.functional.testnvim')()
  3. local insert, source = n.insert, n.source
  4. local clear, expect = n.clear, n.expect
  5. describe('qf_title', function()
  6. setup(clear)
  7. it('is working', function()
  8. insert([[
  9. Results of test_qf_title:]])
  10. source([[
  11. set efm=%E%f:%l:%c:%m
  12. cgetexpr ['file:1:1:message']
  13. let qflist=getqflist()
  14. call setqflist(qflist, 'r')
  15. copen
  16. let g:quickfix_title=w:quickfix_title
  17. wincmd p
  18. $put =g:quickfix_title
  19. ]])
  20. -- Assert buffer contents.
  21. expect([[
  22. Results of test_qf_title:
  23. :setqflist()]])
  24. end)
  25. end)