-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(docx): add PNG fallback generation test for SVG
Just look at --trace output. Can't use a golden test because the actual .png will be different depending on rsvg-convert version. Signed-off-by: Edwin Török <edwin@etorok.net>
- Loading branch information
1 parent
0892709
commit de4ec4d
Showing
5 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
``` | ||
% pandoc -f native -t docx -o /dev/null --trace --quiet | ||
[ Figure | ||
( "" , [] , [] ) | ||
(Caption Nothing [ Plain [ Str "5in" ] ]) | ||
[ Plain | ||
[ Image | ||
( "" , [] , [ ( "width" , "5in" ) ] ) | ||
[ Str "5in" ] | ||
( "command/SVG_logo.svg" , "" ) | ||
] | ||
] | ||
, Figure | ||
( "" , [] , [] ) | ||
(Caption Nothing [ Plain [ Str "5in" ] ]) | ||
[ Plain | ||
[ Image | ||
( "" , [] , [ ( "width" , "5in" ) ] ) | ||
[ Str "5in" ] | ||
( "command/SVG_logo.svg" , "" ) | ||
] | ||
] | ||
, Figure | ||
( "" , [] , [] ) | ||
(Caption Nothing [ Plain [ Str "80%" ] ]) | ||
[ Plain | ||
[ Image | ||
( "" , [] , [ ( "width" , "80%" ) ] ) | ||
[ Str "5in" ] | ||
( "command/SVG_logo.svg" , "" ) | ||
] | ||
] | ||
, Figure | ||
( "" , [] , [] ) | ||
(Caption Nothing [ Plain [ Str "default" ] ]) | ||
[ Plain | ||
[ Image | ||
( "" , [] , [] ) | ||
[ Str "5in" ] | ||
( "command/SVG_logo.svg" , "" ) | ||
] | ||
] | ||
] | ||
^D | ||
2> [trace] rsvg-convert -f png -a --dpi-x 96 --dpi-y 96 --width 360.000000pt --height 360.000000pt | ||
2> [trace] rsvg-convert -f png -a --dpi-x 96 --dpi-y 96 --width 360.000000pt --height 360.000000pt | ||
2> [trace] rsvg-convert -f png -a --dpi-x 96 --dpi-y 96 --width 336.000000pt --height 336.000000pt | ||
2> [trace] rsvg-convert -f png -a --dpi-x 96 --dpi-y 96 --width 75.000000pt --height 75.000000pt | ||
``` |