Skip to content

Commit 0dd1cda

Browse files
authored
Update runtests.jl
Updating the tests to accommodate failure in downloading from PDFSharp
1 parent 3d66b13 commit 0dd1cda

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/runtests.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using PDFIO.Common: read_pkcs12
1313

1414
include("debugIO.jl")
1515

16-
pdftest_ver = "0.0.8"
16+
pdftest_ver = "0.0.9"
1717
pdftest_link = "https://github.com/sambitdash/PDFTest/archive/v"*pdftest_ver
1818

1919
zipfile = "pdftest-"*pdftest_ver
@@ -647,13 +647,8 @@ end
647647

648648
@testset "Forms XObjects Test" begin
649649
@test begin
650-
filename="Graphics-wpf.pdf"
651-
result, template_file = testfiles(filename)
650+
result, template, filename = local_testfiles("Graphics-wpf.pdf")
652651
DEBUG && println(filename)
653-
isfile(filename) ||
654-
download("http://www.pdfsharp.net/wiki/GetFile.aspx?"*
655-
"File=%2fGraphics-sample%2fGraphics-wpf.pdf",
656-
filename)
657652
doc = pdDocOpen(filename)
658653
@assert (npage = pdDocGetPageCount(doc)) == 5
659654
try
@@ -666,7 +661,7 @@ end
666661
end
667662
end
668663
end
669-
@test files_equal(result, template_file)
664+
@test files_equal(result, template)
670665
finally
671666
pdDocClose(doc)
672667
end

0 commit comments

Comments
 (0)