summaryrefslogtreecommitdiff
path: root/tests/typ/visualize
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/visualize')
-rw-r--r--tests/typ/visualize/image.typ28
-rw-r--r--tests/typ/visualize/svg-text.typ2
2 files changed, 15 insertions, 15 deletions
diff --git a/tests/typ/visualize/image.typ b/tests/typ/visualize/image.typ
index 7891e7e2..e3bcc64f 100644
--- a/tests/typ/visualize/image.typ
+++ b/tests/typ/visualize/image.typ
@@ -4,24 +4,24 @@
// Test loading different image formats.
// Load an RGBA PNG image.
-#image("/rhino.png")
+#image("/files/rhino.png")
// Load an RGB JPEG image.
#set page(height: 60pt)
-#image("/tiger.jpg")
+#image("../../files/tiger.jpg")
---
// Test configuring the size and fitting behaviour of images.
// Set width and height explicitly.
-#box(image("/rhino.png", width: 30pt))
-#box(image("/rhino.png", height: 30pt))
+#box(image("/files/rhino.png", width: 30pt))
+#box(image("/files/rhino.png", height: 30pt))
// Set width and height explicitly and force stretching.
-#image("/monkey.svg", width: 100%, height: 20pt, fit: "stretch")
+#image("/files/monkey.svg", width: 100%, height: 20pt, fit: "stretch")
// Make sure the bounding-box of the image is correct.
-#align(bottom + right, image("/tiger.jpg", width: 40pt, alt: "A tiger"))
+#align(bottom + right, image("/files/tiger.jpg", width: 40pt, alt: "A tiger"))
---
// Test all three fit modes.
@@ -30,24 +30,24 @@
columns: (1fr, 1fr, 1fr),
rows: 100%,
gutter: 3pt,
- image("/tiger.jpg", width: 100%, height: 100%, fit: "contain"),
- image("/tiger.jpg", width: 100%, height: 100%, fit: "cover"),
- image("/monkey.svg", width: 100%, height: 100%, fit: "stretch"),
+ image("/files/tiger.jpg", width: 100%, height: 100%, fit: "contain"),
+ image("/files/tiger.jpg", width: 100%, height: 100%, fit: "cover"),
+ image("/files/monkey.svg", width: 100%, height: 100%, fit: "stretch"),
)
---
// Does not fit to remaining height of page.
#set page(height: 60pt)
Stuff
-#image("/rhino.png")
+#image("/files/rhino.png")
---
// Test baseline.
-A #box(image("/tiger.jpg", height: 1cm, width: 80%)) B
+A #box(image("/files/tiger.jpg", height: 1cm, width: 80%)) B
---
// Test advanced SVG features.
-#image("/pattern.svg")
+#image("/files/pattern.svg")
---
// Error: 8-29 file not found (searched at typ/visualize/path/does/not/exist)
@@ -58,5 +58,5 @@ A #box(image("/tiger.jpg", height: 1cm, width: 80%)) B
#image("./image.typ")
---
-// Error: 2-19 failed to parse svg: found closing tag 'g' instead of 'style' in line 4
-#image("/bad.svg")
+// Error: 2-25 failed to parse svg: found closing tag 'g' instead of 'style' in line 4
+#image("/files/bad.svg")
diff --git a/tests/typ/visualize/svg-text.typ b/tests/typ/visualize/svg-text.typ
index 132905a8..838f7360 100644
--- a/tests/typ/visualize/svg-text.typ
+++ b/tests/typ/visualize/svg-text.typ
@@ -4,6 +4,6 @@
#set page(width: 250pt)
#figure(
- image("/diagram.svg"),
+ image("/files/diagram.svg"),
caption: [A textful diagram],
)