diff options
author | Rainer Borene <rainerborene@gmail.com> | 2015-02-23 12:28:42 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-03-11 00:00:22 -0400 |
commit | 05fcce38968cd32198dafdadf6c1f07bb0d7b550 (patch) | |
tree | e2943308817417a63b4fdfaf2a2c8e0970dee16e /test/functional/legacy | |
parent | b18cd6326068d6fee83fc7193e49037feef8ad7e (diff) | |
download | rneovim-05fcce38968cd32198dafdadf6c1f07bb0d7b550.tar.gz rneovim-05fcce38968cd32198dafdadf6c1f07bb0d7b550.tar.bz2 rneovim-05fcce38968cd32198dafdadf6c1f07bb0d7b550.zip |
legacy tests: migrate test_qf_title
Diffstat (limited to 'test/functional/legacy')
-rw-r--r-- | test/functional/legacy/qf_title_spec.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/legacy/qf_title_spec.lua b/test/functional/legacy/qf_title_spec.lua new file mode 100644 index 0000000000..aa005117be --- /dev/null +++ b/test/functional/legacy/qf_title_spec.lua @@ -0,0 +1,30 @@ +-- Tests for quickfix window's title + +local helpers = require('test.functional.helpers') +local feed, insert, source = helpers.feed, helpers.insert, helpers.source +local clear, execute, expect = helpers.clear, helpers.execute, helpers.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) |