libsai icon indicating copy to clipboard operation
libsai copied to clipboard

Tiny test files for automated tests.

Open therahedwig opened this issue 6 years ago • 1 comments

I implemented some automated comparison tests in the Krita code yesterday with the help of tiny test files. I figured I'd share the test files, even though I am not sure what your feelings are about automated testing :)

sai_tiny_test_files.zip

So all of the test files are in both sai and png, so that someone who is actually decoding and compositing the data can compare. The files are an RGBA pixel grid, a grid of all possible blending modes, a grid with all sorts of possible layer configurations, a layer offset file, and a file dedicated to the clipping masks configuration.

Because I know you were also interested in the sai2 files, I've added them for future reference, expanded to include the new blending modes and layer configurations, as well as giving some layers extra random unicode phrases( taken from the pages of japanese calligraphy, arabic calligraphy and the word 'sanskrit' in devaganari).

There's no vector layer testing yet, but that's mostly because I am not sure what a minimal test file would need to test yet :)

EDIT: And, come to think of it, the masks might need a separate test file too, there's no mask data being tested yet.

therahedwig avatar Sep 12 '19 12:09 therahedwig

Thanks for the reference files! Once libsai reaches MVP I def want to look into reverse engineering the sai2 format if there is certainly enough demand/use for such a thing.

Wunkolo avatar Sep 17 '19 06:09 Wunkolo