robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

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