mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
vim-patch:7.4.1094
Problem: Test for :hardcopy fails on MS-Windows.
Solution: Check for the +postscript feature.
ccb80989f2
This commit is contained in:
@@ -1,56 +1,58 @@
|
|||||||
" Test :hardcopy
|
" Test :hardcopy
|
||||||
|
|
||||||
func Test_printoptions_parsing()
|
func Test_printoptions_parsing()
|
||||||
" Only test that this doesn't throw an error.
|
" Only test that this doesn't throw an error.
|
||||||
set printoptions=left:5in,right:10pt,top:8mm,bottom:2pc
|
set printoptions=left:5in,right:10pt,top:8mm,bottom:2pc
|
||||||
set printoptions=left:2in,top:30pt,right:16mm,bottom:3pc
|
set printoptions=left:2in,top:30pt,right:16mm,bottom:3pc
|
||||||
set printoptions=header:3,syntax:y,number:7,wrap:n
|
set printoptions=header:3,syntax:y,number:7,wrap:n
|
||||||
set printoptions=duplex:short,collate:n,jobsplit:y,portrait:n
|
set printoptions=duplex:short,collate:n,jobsplit:y,portrait:n
|
||||||
set printoptions=paper:10x14
|
set printoptions=paper:10x14
|
||||||
set printoptions=paper:A3
|
set printoptions=paper:A3
|
||||||
set printoptions=paper:A4
|
set printoptions=paper:A4
|
||||||
set printoptions=paper:A5
|
set printoptions=paper:A5
|
||||||
set printoptions=paper:B4
|
set printoptions=paper:B4
|
||||||
set printoptions=paper:B5
|
set printoptions=paper:B5
|
||||||
set printoptions=paper:executive
|
set printoptions=paper:executive
|
||||||
set printoptions=paper:folio
|
set printoptions=paper:folio
|
||||||
set printoptions=paper:ledger
|
set printoptions=paper:ledger
|
||||||
set printoptions=paper:legal
|
set printoptions=paper:legal
|
||||||
set printoptions=paper:letter
|
set printoptions=paper:letter
|
||||||
set printoptions=paper:quarto
|
set printoptions=paper:quarto
|
||||||
set printoptions=paper:statement
|
set printoptions=paper:statement
|
||||||
set printoptions=paper:tabloid
|
set printoptions=paper:tabloid
|
||||||
set printoptions=formfeed:y
|
set printoptions=formfeed:y
|
||||||
set printoptions=
|
set printoptions=
|
||||||
set printoptions&
|
set printoptions&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_printmbfont_parsing()
|
func Test_printmbfont_parsing()
|
||||||
" Only test that this doesn't throw an error.
|
" Only test that this doesn't throw an error.
|
||||||
set printmbfont=r:WadaMin-Regular,b:WadaMin-Bold,i:WadaMin-Italic,o:WadaMin-Bold-Italic,c:yes,a:no
|
set printmbfont=r:WadaMin-Regular,b:WadaMin-Bold,i:WadaMin-Italic,o:WadaMin-Bold-Italic,c:yes,a:no
|
||||||
set printmbfont=
|
set printmbfont=
|
||||||
set printmbfont&
|
set printmbfont&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_printheader_parsing()
|
func Test_printheader_parsing()
|
||||||
" Only test that this doesn't throw an error.
|
" Only test that this doesn't throw an error.
|
||||||
set printheader=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
|
set printheader=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
|
||||||
set printheader=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
|
set printheader=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
|
||||||
set printheader=%<%f%=\ [%1*%M%*%n%R%H]\ %-19(%3l,%02c%03V%)%O'%02b'
|
set printheader=%<%f%=\ [%1*%M%*%n%R%H]\ %-19(%3l,%02c%03V%)%O'%02b'
|
||||||
set printheader=...%r%{VarExists('b:gzflag','\ [GZ]')}%h...
|
set printheader=...%r%{VarExists('b:gzflag','\ [GZ]')}%h...
|
||||||
set printheader=
|
set printheader=
|
||||||
set printheader&
|
set printheader&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test that :hardcopy produces a non-empty file.
|
" Test that :hardcopy produces a non-empty file.
|
||||||
" We don't check much of the contents.
|
" We don't check much of the contents.
|
||||||
func Test_with_syntax()
|
func Test_with_syntax()
|
||||||
set printoptions=syntax:y
|
if has('postscript')
|
||||||
syn on
|
set printoptions=syntax:y
|
||||||
hardcopy > Xhardcopy
|
syn on
|
||||||
let lines = readfile('Xhardcopy')
|
hardcopy > Xhardcopy
|
||||||
call assert_true(len(lines) > 20)
|
let lines = readfile('Xhardcopy')
|
||||||
call assert_true(lines[0] =~ 'PS-Adobe')
|
call assert_true(len(lines) > 20)
|
||||||
call delete('Xhardcopy')
|
call assert_true(lines[0] =~ 'PS-Adobe')
|
||||||
set printoptions&
|
call delete('Xhardcopy')
|
||||||
endfunc
|
set printoptions&
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
@@ -590,7 +590,7 @@ static int included_patches[] = {
|
|||||||
// 1097,
|
// 1097,
|
||||||
// 1096,
|
// 1096,
|
||||||
// 1095 NA
|
// 1095 NA
|
||||||
// 1094,
|
1094,
|
||||||
1093,
|
1093,
|
||||||
1092,
|
1092,
|
||||||
1091,
|
1091,
|
||||||
|
Reference in New Issue
Block a user