summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-28 10:35:44 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-28 10:36:53 +0200
commit04bffc4f12ff7dd85d25f5fd65506440287f879c (patch)
tree311a78d174f95c6e4733e3eb17a40f78744c3854 /tests/typ/layout
parent7b92bd7c340d9f9c094ed2fa57912049317d9b20 (diff)
Reintroduce `--root`
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/grid-3.typ2
-rw-r--r--tests/typ/layout/pad.typ2
-rw-r--r--tests/typ/layout/par-bidi.typ2
-rw-r--r--tests/typ/layout/par-indent.typ4
-rw-r--r--tests/typ/layout/place-background.typ2
-rw-r--r--tests/typ/layout/place.typ2
-rw-r--r--tests/typ/layout/transform.typ4
7 files changed, 9 insertions, 9 deletions
diff --git a/tests/typ/layout/grid-3.typ b/tests/typ/layout/grid-3.typ
index ee79f2fd..89bcb90f 100644
--- a/tests/typ/layout/grid-3.typ
+++ b/tests/typ/layout/grid-3.typ
@@ -23,7 +23,7 @@
columns: 4 * (1fr,),
row-gutter: 10pt,
column-gutter: (0pt, 10%),
- align(top, image("/rhino.png")),
+ align(top, image("/files/rhino.png")),
align(top, rect(inset: 0pt, fill: eastern, align(right)[LoL])),
[rofl],
[\ A] * 3,
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ
index 88e8510f..f7b47142 100644
--- a/tests/typ/layout/pad.typ
+++ b/tests/typ/layout/pad.typ
@@ -22,7 +22,7 @@ Hi #box(pad(left: 10pt)[A]) there
// Test that the pad element doesn't consume the whole region.
#set page(height: 6cm)
#align(left)[Before]
-#pad(10pt, image("/tiger.jpg"))
+#pad(10pt, image("/files/tiger.jpg"))
#align(right)[After]
---
diff --git a/tests/typ/layout/par-bidi.typ b/tests/typ/layout/par-bidi.typ
index 90c6a55e..ea3711ab 100644
--- a/tests/typ/layout/par-bidi.typ
+++ b/tests/typ/layout/par-bidi.typ
@@ -41,7 +41,7 @@ Lריווח #h(1cm) R
---
// Test inline object.
#set text(lang: "he")
-קרנפיםRh#box(image("/rhino.png", height: 11pt))inoחיים
+קרנפיםRh#box(image("/files/rhino.png", height: 11pt))inoחיים
---
// Test whether L1 whitespace resetting destroys stuff.
diff --git a/tests/typ/layout/par-indent.typ b/tests/typ/layout/par-indent.typ
index 78789181..324ff44a 100644
--- a/tests/typ/layout/par-indent.typ
+++ b/tests/typ/layout/par-indent.typ
@@ -9,10 +9,10 @@ The first paragraph has no indent.
But the second one does.
-#box(image("/tiger.jpg", height: 6pt))
+#box(image("/files/tiger.jpg", height: 6pt))
starts a paragraph, also with indent.
-#align(center, image("/rhino.png", width: 1cm))
+#align(center, image("/files/rhino.png", width: 1cm))
= Headings
- And lists.
diff --git a/tests/typ/layout/place-background.typ b/tests/typ/layout/place-background.typ
index 6f480b93..3a7a06b9 100644
--- a/tests/typ/layout/place-background.typ
+++ b/tests/typ/layout/place-background.typ
@@ -7,7 +7,7 @@
dx: -10pt,
dy: -10pt,
image(
- "/tiger.jpg",
+ "/files/tiger.jpg",
fit: "cover",
width: 100% + 20pt,
height: 100% + 20pt,
diff --git a/tests/typ/layout/place.typ b/tests/typ/layout/place.typ
index f0ffaf57..6f79e3e1 100644
--- a/tests/typ/layout/place.typ
+++ b/tests/typ/layout/place.typ
@@ -5,7 +5,7 @@
#place(bottom + center)[© Typst]
= Placement
-#place(right, image("/tiger.jpg", width: 1.8cm))
+#place(right, image("/files/tiger.jpg", width: 1.8cm))
Hi there. This is \
a placed element. \
Unfortunately, \
diff --git a/tests/typ/layout/transform.typ b/tests/typ/layout/transform.typ
index 22a94532..3a674282 100644
--- a/tests/typ/layout/transform.typ
+++ b/tests/typ/layout/transform.typ
@@ -31,13 +31,13 @@ nor #xetex!
// Test combination of scaling and rotation.
#set page(height: 80pt)
#align(center + horizon,
- rotate(20deg, scale(70%, image("/tiger.jpg")))
+ rotate(20deg, scale(70%, image("/files/tiger.jpg")))
)
---
// Test setting rotation origin.
#rotate(10deg, origin: top + left,
- image("/tiger.jpg", width: 50%)
+ image("/files/tiger.jpg", width: 50%)
)
---