From 337b056400955c9384accf4bb4f3a58a768852cf Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Mon, 4 Jan 2021 23:57:43 -0600 Subject: Add test for apng --- test/test_apng.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/test_apng.cpp (limited to 'test/test_apng.cpp') diff --git a/test/test_apng.cpp b/test/test_apng.cpp new file mode 100644 index 00000000..c1c04814 --- /dev/null +++ b/test/test_apng.cpp @@ -0,0 +1,15 @@ +#include + +#include +#include +#include + +TEST_CASE("Support APNG Plugin (place lib same path)", "[apng]") { + QCoreApplication::addLibraryPath("."); + QPluginLoader apngPlugin("qapng"); + REQUIRE(apngPlugin.load()); + + // Fails for some reason on windows and linux don't know about osx + // apng animation seems to be broken linux qt5-5.15.2 + REQUIRE(QImageReader::supportedImageFormats().contains("APNG")); +} -- cgit