mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 05:22:23 +00:00
5798e27993
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 |
||
---|---|---|
.. | ||
cli | ||
scripts | ||
sprites | ||
LICENSE.txt | ||
README.md | ||
run-tests.sh |
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:
- Save/load file formats correctly. For this we have
.aseprite
,.png
,.gif
, etc. files sprites folder. - Test backward compatibility with Aseprite CLI options
- Future scripting API using scripts
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.