diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/layout/page.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/layout/page.typ')
| -rw-r--r-- | tests/typ/layout/page.typ | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/typ/layout/page.typ b/tests/typ/layout/page.typ deleted file mode 100644 index f5c7822d..00000000 --- a/tests/typ/layout/page.typ +++ /dev/null @@ -1,42 +0,0 @@ -// Test the page class. - ---- -// Just empty page. -// Should result in auto-sized page, just like nothing. -#page[] - ---- -// Just empty page with styles. -// Should result in one conifer-colored A11 page. -#page("a11", flipped: true, fill: conifer)[] - ---- -// Set width and height. -// Should result in one high and one wide page. -#set page(width: 80pt, height: 80pt) -#[#set page(width: 40pt);High] -#[#set page(height: 40pt);Wide] - -// Flipped predefined paper. -#[#set page(paper: "a11", flipped: true);Flipped A11] - ---- -// Test page fill. -#set page(width: 80pt, height: 40pt, fill: eastern) -#text(15pt, font: "Roboto", fill: white, smallcaps[Typst]) -#page(width: 40pt, fill: none, margin: (top: 10pt, rest: auto))[Hi] - ---- -// Just page followed by pagebreak. -// Should result in one forest-colored A11 page and one auto-sized page. -#page("a11", flipped: true, fill: forest)[] -#pagebreak() - ---- -// Layout without any container should provide the page's dimensions, minus its margins. - -#page(width: 100pt, height: 100pt, { - layout(size => [This page has a width of #size.width and height of #size.height ]) - h(1em) - place(left, rect(width: 80pt, stroke: blue)) -}) |
