summaryrefslogtreecommitdiff
path: root/tests/typ/func-image.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-14 16:47:29 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-14 16:47:29 +0100
commitcfcb36b159e3f65aff8cbdac6b537b40c22507c0 (patch)
tree18e17b3cec5530b67ec596fe13b45423a867eb5f /tests/typ/func-image.typ
parent272a4c228976466e9fa6cc100ad89f93dc5cc371 (diff)
Move test files into category subfolders 🚚
Diffstat (limited to 'tests/typ/func-image.typ')
-rw-r--r--tests/typ/func-image.typ44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/typ/func-image.typ b/tests/typ/func-image.typ
deleted file mode 100644
index 1f94a66f..00000000
--- a/tests/typ/func-image.typ
+++ /dev/null
@@ -1,44 +0,0 @@
-// Test loading different image formats.
-
-// Load an RGBA PNG image.
-[image "res/rhino.png"]
-[pagebreak]
-
-// Load an RGB JPEG image.
-[image "res/tiger.jpg"]
-
----
-// Test configuring the size and fitting behaviour of images.
-
-// Fit to width of page.
-[image "res/rhino.png"]
-
-// Fit to height of page.
-[page height: 40pt][
- [image "res/rhino.png"]
-]
-
-// Set width explicitly.
-[image "res/rhino.png", width: 50pt]
-
-// Set height explicitly.
-[image "res/rhino.png", height: 50pt]
-
-// Set width and height explicitly and force stretching.
-[image "res/rhino.png", width: 25pt, height: 50pt]
-
-// Make sure the bounding-box of the image is correct.
-[align bottom, right][
- [image "res/tiger.jpg", width: 60pt]
-]
-
----
-// Test error cases.
-//
-// Ref: false
-
-// Error: 1:8-1:29 failed to load image
-[image "path/does/not/exist"]
-
-// Error: 1:8-1:29 failed to load image
-[image "typ/image-error.typ"]