diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/columns-1.png | bin | 0 -> 1322 bytes | |||
| -rw-r--r-- | tests/ref/bugs/flow-1.png | bin | 0 -> 9726 bytes | |||
| -rw-r--r-- | tests/ref/bugs/flow-2.png | bin | 0 -> 5600 bytes | |||
| -rw-r--r-- | tests/ref/bugs/flow-3.png | bin | 0 -> 1600 bytes | |||
| -rw-r--r-- | tests/ref/layout/grid-3.png | bin | 44418 -> 44308 bytes | |||
| -rw-r--r-- | tests/ref/layout/grid-5.png | bin | 3699 -> 3673 bytes | |||
| -rw-r--r-- | tests/typ/bugs/columns-1.typ | 12 | ||||
| -rw-r--r-- | tests/typ/bugs/flow-1.typ | 11 | ||||
| -rw-r--r-- | tests/typ/bugs/flow-2.typ | 10 | ||||
| -rw-r--r-- | tests/typ/bugs/flow-3.typ | 12 | ||||
| -rw-r--r-- | tests/typ/layout/flow-orphan.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/grid-5.typ | 1 |
12 files changed, 47 insertions, 1 deletions
diff --git a/tests/ref/bugs/columns-1.png b/tests/ref/bugs/columns-1.png Binary files differnew file mode 100644 index 00000000..ecb3d417 --- /dev/null +++ b/tests/ref/bugs/columns-1.png diff --git a/tests/ref/bugs/flow-1.png b/tests/ref/bugs/flow-1.png Binary files differnew file mode 100644 index 00000000..2c5013c4 --- /dev/null +++ b/tests/ref/bugs/flow-1.png diff --git a/tests/ref/bugs/flow-2.png b/tests/ref/bugs/flow-2.png Binary files differnew file mode 100644 index 00000000..7661cf8f --- /dev/null +++ b/tests/ref/bugs/flow-2.png diff --git a/tests/ref/bugs/flow-3.png b/tests/ref/bugs/flow-3.png Binary files differnew file mode 100644 index 00000000..e12d5e12 --- /dev/null +++ b/tests/ref/bugs/flow-3.png diff --git a/tests/ref/layout/grid-3.png b/tests/ref/layout/grid-3.png Binary files differindex 1bb76292..d9562e9a 100644 --- a/tests/ref/layout/grid-3.png +++ b/tests/ref/layout/grid-3.png diff --git a/tests/ref/layout/grid-5.png b/tests/ref/layout/grid-5.png Binary files differindex 532700b1..2e9d1705 100644 --- a/tests/ref/layout/grid-5.png +++ b/tests/ref/layout/grid-5.png diff --git a/tests/typ/bugs/columns-1.typ b/tests/typ/bugs/columns-1.typ new file mode 100644 index 00000000..96a4d0e5 --- /dev/null +++ b/tests/typ/bugs/columns-1.typ @@ -0,0 +1,12 @@ +// The well-known columns bug. + +--- +#set page(height: 70pt) + +Hallo +#columns(2)[ + = A + Text + = B + Text +] diff --git a/tests/typ/bugs/flow-1.typ b/tests/typ/bugs/flow-1.typ new file mode 100644 index 00000000..425a0ce8 --- /dev/null +++ b/tests/typ/bugs/flow-1.typ @@ -0,0 +1,11 @@ +// In this bug, the first line of the second paragraph was on its page alone an +// the rest moved down. The reason was that the second block resulted in +// overlarge frames because the region wasn't finished properly. + +--- +#set page(height: 70pt) +#block[This file tests a bug where an almost empty page occurs.] +#block[ + The text in this second block was torn apart and split up for + some reason beyond my knowledge. +] diff --git a/tests/typ/bugs/flow-2.typ b/tests/typ/bugs/flow-2.typ new file mode 100644 index 00000000..5ffffd58 --- /dev/null +++ b/tests/typ/bugs/flow-2.typ @@ -0,0 +1,10 @@ +// In this bug, the first part of the paragraph moved down to the second page +// because trailing leading wasn't trimmed, resulting in an overlarge frame. + +--- +#set page(height: 60pt) +#v(19pt) +#block[ + But, soft! what light through yonder window breaks? + It is the east, and Juliet is the sun. +] diff --git a/tests/typ/bugs/flow-3.typ b/tests/typ/bugs/flow-3.typ new file mode 100644 index 00000000..71af1914 --- /dev/null +++ b/tests/typ/bugs/flow-3.typ @@ -0,0 +1,12 @@ +// In this bug, there was a bit of space below the heading because weak spacing +// directly before a layout-induced column or page break wasn't trimmed. + +--- +#set page(height: 60pt) +#rect(inset: 0pt, columns(2)[ + Text + #v(12pt) + Hi + #v(10pt, weak: true) + At column break. +]) diff --git a/tests/typ/layout/flow-orphan.typ b/tests/typ/layout/flow-orphan.typ index a51da2b2..482fd145 100644 --- a/tests/typ/layout/flow-orphan.typ +++ b/tests/typ/layout/flow-orphan.typ @@ -1,4 +1,4 @@ -// Test that a heading doesn't become an orphan. +// Test that lines and headings doesn't become orphan. --- #set page(height: 100pt) diff --git a/tests/typ/layout/grid-5.typ b/tests/typ/layout/grid-5.typ index db7c525a..64385f61 100644 --- a/tests/typ/layout/grid-5.typ +++ b/tests/typ/layout/grid-5.typ @@ -22,6 +22,7 @@ #align(bottom)[ Bottom \ Bottom \ + #v(0pt) Top ] ], |
