summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/shape-rect.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-13 10:39:45 +0200
committerGitHub <noreply@github.com>2024-04-13 08:39:45 +0000
commit020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch)
treec0027ad22046e2726c22298461327823d6b88d53 /tests/typ/visualize/shape-rect.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/visualize/shape-rect.typ')
-rw-r--r--tests/typ/visualize/shape-rect.typ78
1 files changed, 0 insertions, 78 deletions
diff --git a/tests/typ/visualize/shape-rect.typ b/tests/typ/visualize/shape-rect.typ
deleted file mode 100644
index bd9cf1ae..00000000
--- a/tests/typ/visualize/shape-rect.typ
+++ /dev/null
@@ -1,78 +0,0 @@
-// Test the `rect` function.
-
----
-// Default rectangle.
-#rect()
-
----
-#set page(width: 150pt)
-
-// Fit to text.
-#rect(fill: conifer)[Textbox]
-
-// Empty with fixed width and height.
-#block(rect(
- height: 15pt,
- fill: rgb("46b3c2"),
- stroke: 2pt + rgb("234994"),
-))
-
-// Fixed width, text height.
-#rect(width: 2cm, fill: rgb("9650d6"))[Fixed and padded]
-
-// Page width, fixed height.
-#rect(height: 1cm, width: 100%, fill: rgb("734ced"))[Topleft]
-
-// These are inline with text.
-{#box(rect(width: 0.5in, height: 7pt, fill: rgb("d6cd67")))
- #box(rect(width: 0.5in, height: 7pt, fill: rgb("edd466")))
- #box(rect(width: 0.5in, height: 7pt, fill: rgb("e3be62")))}
-
-// Rounded corners.
-#stack(
- dir: ltr,
- spacing: 1fr,
- rect(width: 2cm, radius: 30%),
- rect(width: 1cm, radius: (left: 10pt, right: 5pt)),
- rect(width: 1.25cm, radius: (
- top-left: 2pt,
- top-right: 5pt,
- bottom-right: 8pt,
- bottom-left: 11pt
- )),
-)
-
-// Different strokes.
-#set rect(stroke: (right: red))
-#rect(width: 100%, fill: lime, stroke: (x: 5pt, y: 1pt))
-
----
-// Error: 15-38 unexpected key "cake", valid keys are "top-left", "top-right", "bottom-right", "bottom-left", "left", "top", "right", "bottom", and "rest"
-#rect(radius: (left: 10pt, cake: 5pt))
-
----
-// Error: 15-21 expected length, color, gradient, pattern, dictionary, stroke, none, or auto, found array
-#rect(stroke: (1, 2))
-
----
-#set page(width: 17.8cm)
-#lorem(100)
-#rect(lorem(100))
-#set par(justify: true)
-#lorem(100)
-#rect(lorem(100))
-
----
-// Negative dimensions
-#rect(width: -1cm, fill: gradient.linear(red, blue))[Reverse left]
-
-#rect(width: 1cm, fill: gradient.linear(red, blue))[Left]
-
-#align(center, rect(width: -1cm, fill: gradient.linear(red, blue))[Reverse center])
-
-#align(center, rect(width: 1cm, fill: gradient.linear(red, blue))[Center])
-
-#align(right, rect(width: -1cm, fill: gradient.linear(red, blue))[Reverse right])
-
-#align(right, rect(width: 1cm, fill: gradient.linear(red, blue))[Right])
-