diff options
| author | Skye Deving <76892045+skyedeving@users.noreply.github.com> | 2021-01-07 03:57:04 -0600 |
|---|---|---|
| committer | Skye Deving <76892045+skyedeving@users.noreply.github.com> | 2021-01-28 11:05:42 -0600 |
| commit | 517ebdf2479647cd7c42166ec0c292d86ec3aace (patch) | |
| tree | e62e8444121f4883adb05df9189281490d270e9e /test | |
| parent | 9363246ca1b03a23f7fa99a02f8adcc347d18e8c (diff) | |
Add test case for auto detect of apng from png failing
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_apng.cpp | 7 |
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()); } |
