summaryrefslogtreecommitdiff
path: root/tests/typ/func-image-error.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/func-image-error.typ')
-rw-r--r--tests/typ/func-image-error.typ11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/typ/func-image-error.typ b/tests/typ/func-image-error.typ
new file mode 100644
index 00000000..e6a989ca
--- /dev/null
+++ b/tests/typ/func-image-error.typ
@@ -0,0 +1,11 @@
+// Test error cases of the `image` function.
+
+// File does not exist.
+[image: "path/does/not/exist"]
+
+// File exists, but is no image.
+[image: "typ/image-error.typ"]
+
+// compare-ref: false
+// error: 4:9-4:30 failed to load image
+// error: 7:9-7:30 failed to load image