mirror of
https://github.com/1j01/textual-paint.git
synced 2024-10-05 20:07:45 +03:00
Rename pathological test case SVG
This commit is contained in:
parent
453111269e
commit
da861e4a2c
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@ -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.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user