summaryrefslogtreecommitdiff
path: root/tests/typ/elements/image.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-12-20 14:18:29 +0100
committerLaurenz <laurmaedje@gmail.com>2021-12-21 00:20:24 +0100
commit11565a40b315212474f52eb576a9fd92b11f1132 (patch)
treec6b7afb35103065bc92b407094ca905bb75cfc73 /tests/typ/elements/image.typ
parent958f74f77707340f34ee36d09492bdb74523aa2a (diff)
Set Rules Episode IX: The Rise of Testing
Diffstat (limited to 'tests/typ/elements/image.typ')
-rw-r--r--tests/typ/elements/image.typ59
1 files changed, 0 insertions, 59 deletions
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
deleted file mode 100644
index 8817713f..00000000
--- a/tests/typ/elements/image.typ
+++ /dev/null
@@ -1,59 +0,0 @@
-// Test the `image` function.
-
----
-// Test loading different image formats.
-
-// Load an RGBA PNG image.
-#image("../../res/rhino.png")
-
-// Load an RGB JPEG image.
-#set page(height: 60pt)
-#image("../../res/tiger.jpg")
-
----
-// Test configuring the size and fitting behaviour of images.
-
-// Set width and height explicitly.
-#image("../../res/rhino.png", width: 30pt)
-#image("../../res/rhino.png", height: 30pt)
-
-// Set width and height explicitly and force stretching.
-#image("../../res/monkey.svg", width: 100%, height: 20pt, fit: "stretch")
-
-// Make sure the bounding-box of the image is correct.
-#align(bottom + right, image("../../res/tiger.jpg", width: 40pt))
-
----
-// Test all three fit modes.
-#set page(height: 50pt, margins: 0pt)
-#grid(
- columns: (1fr, 1fr, 1fr),
- rows: 100%,
- gutter: 3pt,
- image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "contain"),
- image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "cover"),
- image("../../res/monkey.svg", width: 100%, height: 100%, fit: "stretch"),
-)
-
----
-// Does not fit to remaining height of page.
-#set page(height: 60pt)
-Stuff \
-Stuff
-#image("../../res/rhino.png")
-
----
-// Test baseline.
-A #image("../../res/tiger.jpg", height: 1cm, width: 80%) B
-
----
-// Test advanced SVG features.
-#image("../../res/pattern.svg")
-
----
-// Error: 8-29 file not found
-#image("path/does/not/exist")
-
----
-// Error: 8-21 failed to load image (unknown image format)
-#image("./image.typ")