summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/image.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/visualize/image.typ')
-rw-r--r--tests/typ/visualize/image.typ28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/typ/visualize/image.typ b/tests/typ/visualize/image.typ
index 6a2c37e1..89381955 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("/res/rhino.png")
+#image("/rhino.png")
// Load an RGB JPEG image.
#set page(height: 60pt)
-#image("../../res/tiger.jpg")
+#image("/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)
+#image("/rhino.png", width: 30pt)
+#image("/rhino.png", height: 30pt)
// Set width and height explicitly and force stretching.
-#image("/res/monkey.svg", width: 100%, height: 20pt, fit: "stretch")
+#image("/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))
+#align(bottom + right, image("/tiger.jpg", width: 40pt))
---
// Test all three fit modes.
@@ -30,9 +30,9 @@
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"),
+ 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"),
)
---
@@ -40,15 +40,15 @@
#set page(height: 60pt)
Stuff #parbreak()
Stuff
-#image("/res/rhino.png")
+#image("/rhino.png")
---
// Test baseline.
-A #image("/res/tiger.jpg", height: 1cm, width: 80%) B
+A #image("/tiger.jpg", height: 1cm, width: 80%) B
---
// Test advanced SVG features.
-#image("/res/pattern.svg")
+#image("/pattern.svg")
---
// Error: 8-29 file not found (searched at typ/visualize/path/does/not/exist)
@@ -59,5 +59,5 @@ A #image("/res/tiger.jpg", height: 1cm, width: 80%) B
#image("./image.typ")
---
-// Error: 8-22 failed to parse svg: found closing tag 'g' instead of 'style' in line 4
-#image("/res/bad.svg")
+// Error: 8-18 failed to parse svg: found closing tag 'g' instead of 'style' in line 4
+#image("/bad.svg")