From 517ebdf2479647cd7c42166ec0c292d86ec3aace Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Thu, 7 Jan 2021 03:57:04 -0600 Subject: [PATCH] Add test case for auto detect of apng from png failing --- test/test_apng.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_apng.cpp b/test/test_apng.cpp index fdfb8dd..180465a 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()); }