aseprite/tests
Gaspar Capello 5798e27993 Fix mask color turns to opaque on RGBA->INDEXED conversion (fix #4438)
Original issue title: When using a background layer, switching to
Indexed Color Mode fills all layer bounding rectangles with
Color 0.
Conditions to reproduce the original issue:
- Opaque RGBA sprite, i.e. the bottom layer is 'Background'.
- There is a second layer with an ellipse (for example).
- There is a mask color #000000 alpha=0 is in the palette.
- The mask color index is greater and not equal than 0.
- Go to Sprite > Color Mode > Indexed.
Result: the transparent color of the second layer will change to
index color = 0 (usually black).

Also added test for RGBA->INDEXED conversion
2024-09-04 13:48:56 -03:00
..
cli Add --play-subtags CLI test 2024-05-28 15:00:22 -03:00
scripts Fix mask color turns to opaque on RGBA->INDEXED conversion (fix #4438) 2024-09-04 13:48:56 -03:00
sprites Add --play-subtags CLI test 2024-05-28 15:00:22 -03:00
LICENSE.txt [lua] Add short field names (fix #3815, fix #3816) 2023-04-19 13:48:15 -03:00
README.md Fix instructions/paths for CLI tests 2022-10-25 15:57:31 -03:00
run-tests.sh Merge remote-tracking branch 'tests/main' 2022-10-25 15:30:38 -03:00

Aseprite Tests

Test suite for Aseprite to avoid breaking backward compatibility.

This directory is cloned by the build.yml action to run several automated tests after Aseprite is compiled:

How to run tests?

You have to set the ASEPRITE environment variable pointing to the Aseprite executable and then run run-tests.sh from Bash:

export ASEPRITE=$HOME/your-aseprite-build/bin/aseprite
cd tests
bash run-tests.sh

You can filter some tests with a regex giving a parameter to run-tests.sh, for example:

run-tests.sh color

Should run all tests which have the color word in their name.