]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
img test: use the right filenames when testing that deletion occurs
authorSimon McVittie <smcv@debian.org>
Thu, 5 May 2016 22:24:17 +0000 (23:24 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 5 May 2016 22:44:31 +0000 (23:44 +0100)
Also use a less misleading name for the sample SVG: it is no longer empty.
Since commit 105f285a it has contained a blue square.

t/img.t

diff --git a/t/img.t b/t/img.t
index a7b92531f5c9c71b4f8a6122d66f02af9dd2b123..2473b9d7686910baddcc39e3f9b443ace3f98ce8 100755 (executable)
--- a/t/img.t
+++ b/t/img.t
@@ -31,7 +31,7 @@ ok(! system("cp t/img/redsquare.png t/tmp/in/a:b:c:d.png"));
 ok(! system("cp t/img/redsquare.png t/tmp/in/a:b:c:d:e:f:g:h:i:j.png"));
 
 if ($SVGS_WORK) {
-       writefile("emptysquare.svg", "t/tmp/in",
+       writefile("bluesquare.svg", "t/tmp/in",
                '<svg width="30" height="30"><rect x="0" y="0" width="30" height="30" fill="blue"/></svg>');
 }
 
@@ -40,7 +40,7 @@ ok(! system("cp t/img/twopages.pdf t/tmp/in/twopages.pdf"));
 
 my $maybe_svg_img = "";
 if ($SVGS_WORK) {
-       $maybe_svg_img = "[[!img emptysquare.svg size=10x]]";
+       $maybe_svg_img = "[[!img bluesquare.svg size=10x]]";
 }
 
 writefile("imgconversions.mdwn", "t/tmp/in", <<EOF
@@ -98,10 +98,10 @@ if (1) { # for easier testing
 
        ok(! system("$command --refresh"));
 
-       ok(! -e "$outpath/10x-simple.png");
-       ok(! -e "$outpath/10x-simple-svg.png");
-       ok(! -e "$outpath/10x-simple-pdf.png");
-       ok(! -e "$outpath/10x-p1-simple-pdf.png");
+       ok(! -e "$outpath/10x-redsquare.png");
+       ok(! -e "$outpath/10x-bluesquare.png");
+       ok(! -e "$outpath/12x-twopages.png");
+       ok(! -e "$outpath/16x-p1-twopages.png");
        ok(! -e "$outpath/x8-hello:world.png");
        ok(! -e "$outpath/x4-a:b:c.png");
        ok(! -e "$outpath/x6-a:b:c:d:e:f:g:h:i:j.png");