diff options
| author | Skye Deving <76892045+skyedeving@users.noreply.github.com> | 2021-01-04 23:57:43 -0600 |
|---|---|---|
| committer | Skye Deving <76892045+skyedeving@users.noreply.github.com> | 2021-01-28 11:05:42 -0600 |
| commit | 337b056400955c9384accf4bb4f3a58a768852cf (patch) | |
| tree | 58e3af8d6f6a2b949958ec51bff736b79968347f /test/test_apng.cpp | |
| parent | b1090d6e271ae2b04854462c242ef2ce87d74822 (diff) | |
Add test for apng
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")); +} |
