aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_apng.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test_apng.cpp b/test/test_apng.cpp
index 180465a1..50965ad5 100644
--- a/test/test_apng.cpp
+++ b/test/test_apng.cpp
@@ -37,10 +37,17 @@ TEST_CASE("Detect png animation", "[apng][noci]") {
p.setFormat("png");
REQUIRE(!QPixmap::fromImage(p.read()).isNull());
- // Auto detect fails
+ // Auto detect fails on apng
QImageReader d;
- d.setAutoDetectImageFormat(true);
+ d.setDecideFormatFromContent(true);
d.setFileName("snackoo.png");
REQUIRE(!d.supportsAnimation());
REQUIRE(!QPixmap::fromImage(d.read()).isNull());
+
+ // Decide format fom content fails on apng
+ QImageReader c;
+ c.setDecideFormatFromContent(true);
+ c.setFileName("snackoo.png");
+ REQUIRE(!c.supportsAnimation());
+ REQUIRE(!QPixmap::fromImage(c.read()).isNull());
}