File: test-hbox.vim

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (27 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

nnoremap q :qall!<cr>

set nomore

silent edit test-hbox.tex

if empty($INMAKE) | finish | endif

try
  silent call vimtex#qf#setqflist()
catch /VimTeX: No log file found/
  echo 'VimTeX: No log file found'
  cquit
endtry

let s:qf = getqflist()
call assert_equal(5, len(s:qf))
call assert_equal('./test-hbox-1.tex', bufname(s:qf[1].bufnr))
call assert_equal('./test-hbox-1.tex', bufname(s:qf[2].bufnr))
call assert_equal('test-hbox-2.tex', bufname(s:qf[3].bufnr))
call assert_equal('test-hbox-3.tex', bufname(s:qf[4].bufnr))

call vimtex#test#finished()