diff options
Diffstat (limited to 'test/test_apng.cpp')
| -rw-r--r-- | test/test_apng.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <catch2/catch.hpp> + +#include <QPluginLoader> +#include <QImageReader> +#include <QCoreApplication> + +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")); +} |
