diff options
author | Simon McVittie <smcv@debian.org> | 2014-11-26 11:10:44 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-11-26 11:10:44 +0000 |
commit | 105f285a63381b9db2c1d538cfdf42798f1c9042 (patch) | |
tree | 8a2cc67d38e96a604300dba5a220baeb48de2746 /t/img.t | |
parent | 38cf3a80bb32fdf2b0954949a56107d2ca2b00a5 (diff) | |
download | ikiwiki-105f285a63381b9db2c1d538cfdf42798f1c9042.tar ikiwiki-105f285a63381b9db2c1d538cfdf42798f1c9042.tar.gz |
Work around Debian #771047: use a non-blank SVG for the regression test
Inkscape loses the bounding box of a SVG with no content when it
converts it to EPS, and ImageMagick does not have a special case for
converting SVG to PNG with Inkscape in one step (which Inkscape can do);
it prefers to convert SVG to EPS with Inkscape, then EPS to whatever.
Diffstat (limited to 't/img.t')
-rwxr-xr-x | t/img.t | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -26,7 +26,8 @@ ok(! system("rm -rf t/tmp; mkdir -p t/tmp/in")); ok(! system("cp t/img/redsquare.png t/tmp/in/redsquare.png")); if ($SVGS_WORK) { - writefile("emptysquare.svg", "t/tmp/in", '<svg width="30" height="30"/>'); + writefile("emptysquare.svg", "t/tmp/in", + '<svg width="30" height="30"><rect x="0" y="0" width="30" height="30" fill="blue"/></svg>'); } # using different image sizes for different pages, so the pagenumber selection can be tested easily |