Rename pathological test case SVG

This commit is contained in:
Isaiah Odhner 2023-05-18 14:34:25 -04:00
parent 453111269e
commit da861e4a2c
2 changed files with 3 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -1182,14 +1182,14 @@ class AnsiArtDocument:
- parsing stylesheets is not supported.
- not all CSS/SVG color formats are supported.
To test the flexibility of this loader, I created combative_character_grid.svg
To test the flexibility of this loader, I created pathological_character_grid.svg
It contains out-of-order unevenly sized rects, missing rects, a background rect, and an emoji.
It doesn't currently contain varying color formats, font sizes, alignments, or transforms,
and it only uses style rather than fill, and text with tspan rather than text without.
To test it, run the following command:
textual run --dev "src/textual_paint/paint.py --language en --clear-screen --inspect-layout --restart-on-changes 'samples/combative_character_grid.svg'" --press ctrl+shift+s,.,s,a,v,e,d,.,s,v,g,enter,enter
and check samples/combative_character_grid.svg.saved.svg
textual run --dev "src/textual_paint/paint.py --language en --clear-screen --inspect-layout --restart-on-changes 'samples/pathological_character_grid.svg'" --press ctrl+shift+s,.,s,a,v,e,d,.,s,v,g,enter,enter
and check samples/pathological_character_grid.svg.saved.svg
There's also useful debug visuals saved in debug.svg (if enabled).
Then add ".saved.svg" to that command and run it to check the saved file.
"""