test: Check that VectorImage is able to load Lottie files
This test goes through the test files under baseline tests
and tries to load each one of them using VectorImage,
reporting if any of them fail to parse.
We also introduce a test to verify that a broken file does
not parse correctly and that we only support loading Lottie
when assumeTrustedSource is set to true.
Fixes: QTBUG-140812
Pick-to: 6.10
Change-Id: Ieea4b640b8623ee94b5b5d3704720aa4d45cc590
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
| commit | 9eea72f99aeba7610ef547d11d0027b2a90e6381 |
| parent | 6b8b8733c9d8ea3d40627918bb0a2a9e32f312a7 |
| author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> |
| committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> |
| commit time | Tue, 14 Oct 2025 14:31:23 +0200 |
- M CMakeLists.txt
- M tests/auto/lottie/CMakeLists.txt
- A tests/auto/lottie/vectorimage/CMakeLists.txt
- A tests/auto/lottie/vectorimage/data/json/broken.json
- A tests/auto/lottie/vectorimage/data/json/ok.json
- A tests/auto/lottie/vectorimage/data/vectorimage.qml
- A tests/auto/lottie/vectorimage/data/vectorimage_noassumetrustedsource.qml
- A tests/auto/lottie/vectorimage/tst_vectorimage.cpp