Skip to content

Commit

Permalink
Image regression test: add default align case
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Jan 15, 2021
1 parent 4ceb481 commit 4b8f828
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 19 deletions.
Binary file modified tests_regression/rst/image.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions tests_regression/rst/image.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Default alignment:

.. image:: ../images/title.png


Left-aligned:

.. image:: ../images/title.png
Expand Down
49 changes: 30 additions & 19 deletions tests_regression/rst/image.stylelog
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
---------------------------------- page 1 ----------------------------------
#### FootnoteContainer('footnotes')
StaticGroupedFlowables()
#### DownExpandingContainer('floats')
StaticGroupedFlowables()
#### ChainedContainer('column1')
DocumentTree()
Paragraph('Left-aligned:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:1 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Left-aligned:')
SingleStyledText('Left-aligned:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:None <image>
> (0,0,0,0,2) image
Paragraph('Center-aligned:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:7 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Center-aligned:')
SingleStyledText('Center-aligned:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:None <image>
> (0,0,0,0,2) image
Paragraph('Right-aligned:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:13 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Right-aligned:')
SingleStyledText('Right-aligned:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:None <image>
> (0,0,0,0,2) image
StaticGroupedFlowables()
DocumentTree()
Paragraph('Default alignment:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:1 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Default alignment:')
SingleStyledText('Default alignment:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:5 <image>
> (0,0,0,0,2) image
Paragraph('Left-aligned:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:6 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Left-aligned:')
SingleStyledText('Left-aligned:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:None <image>
> (0,0,0,0,2) image
Paragraph('Center-aligned:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:12 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Center-aligned:')
SingleStyledText('Center-aligned:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:None <image>
> (0,0,0,0,2) image
Paragraph('Right-aligned:') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:18 <paragraph>
> (0,0,0,0,2) body
MixedStyledText('Right-aligned:')
SingleStyledText('Right-aligned:')
Image('../images/title.png') /Users/brechtm/Documents/Code/rinohtype/tests_regression/rst/image.rst:None <image>
> (0,0,0,0,2) image

0 comments on commit 4b8f828

Please sign in to comment.