aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_apng.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_apng.cpp b/test/test_apng.cpp
index fdfb8ddb..180465a1 100644
--- a/test/test_apng.cpp
+++ b/test/test_apng.cpp
@@ -36,4 +36,11 @@ TEST_CASE("Detect png animation", "[apng][noci]") {
REQUIRE(!p.supportsAnimation());
p.setFormat("png");
REQUIRE(!QPixmap::fromImage(p.read()).isNull());
+
+ // Auto detect fails
+ QImageReader d;
+ d.setAutoDetectImageFormat(true);
+ d.setFileName("snackoo.png");
+ REQUIRE(!d.supportsAnimation());
+ REQUIRE(!QPixmap::fromImage(d.read()).isNull());
}