annotate src/testdir/test_qf_title.in @ 7595:99e93f72ff91 v7.4.1097

commit https://github.com/vim/vim/commit/065ee9aebf9abe08ae8c0dba7d05cbdcc423c8e0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 15 20:53:38 2016 +0100 patch 7.4.1097 Problem: Looking up the alloc ID for tests fails. Solution: Fix the line computation. Use assert_fails() for unlet test.
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jan 2016 21:00:07 +0100
parents 75ae211df37d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6079
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for quickfix window's title vim: set ft=vim :
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :if !has('quickfix') | e! test.ok | wq! test.out | endif
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :set efm=%E%f:%l:%c:%m
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :cgetexpr ['file:1:1:message']
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :let qflist=getqflist()
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :call setqflist(qflist, 'r')
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :copen
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :let g:quickfix_title=w:quickfix_title
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :wincmd p
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :$put =g:quickfix_title
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :/^Results/,$w test.out
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :qa!
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 ENDTEST
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
75ae211df37d updated for version 7.4.378
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 Results of test_qf_title: