mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 052498ed42
			
		
	
	052498ed42
	
	
	
		
			
			Specifically, functions that are run in the context of the test runner are put in module `test/testutil.lua` while the functions that are run in the context of the test session are put in `test/functional/testnvim.lua`. Closes https://github.com/neovim/neovim/issues/27004.
		
			
				
	
	
		
			32 lines
		
	
	
		
			659 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			659 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| -- 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
 | |
| 
 | |
| 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)
 |