summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/elements/circle.pngbin18782 -> 18873 bytes
-rw-r--r--tests/ref/elements/image.pngbin185125 -> 211019 bytes
-rw-r--r--tests/ref/elements/square.pngbin6565 -> 6585 bytes
-rw-r--r--tests/ref/layout/aspect.pngbin3618 -> 3601 bytes
-rw-r--r--tests/ref/layout/containers.pngbin5201 -> 5194 bytes
-rw-r--r--tests/ref/text/baseline.pngbin0 -> 886 bytes
-rw-r--r--tests/typ/elements/image.typ4
-rw-r--r--tests/typ/layout/aspect.typ12
-rw-r--r--tests/typ/text/baseline.typ4
9 files changed, 12 insertions, 8 deletions
diff --git a/tests/ref/elements/circle.png b/tests/ref/elements/circle.png
index e5a38e28..931debd0 100644
--- a/tests/ref/elements/circle.png
+++ b/tests/ref/elements/circle.png
Binary files differ
diff --git a/tests/ref/elements/image.png b/tests/ref/elements/image.png
index 2385d820..92c68e29 100644
--- a/tests/ref/elements/image.png
+++ b/tests/ref/elements/image.png
Binary files differ
diff --git a/tests/ref/elements/square.png b/tests/ref/elements/square.png
index 9663015f..86bc1ff5 100644
--- a/tests/ref/elements/square.png
+++ b/tests/ref/elements/square.png
Binary files differ
diff --git a/tests/ref/layout/aspect.png b/tests/ref/layout/aspect.png
index 62f17ba4..f76b4980 100644
--- a/tests/ref/layout/aspect.png
+++ b/tests/ref/layout/aspect.png
Binary files differ
diff --git a/tests/ref/layout/containers.png b/tests/ref/layout/containers.png
index f8977f1d..f6981fe5 100644
--- a/tests/ref/layout/containers.png
+++ b/tests/ref/layout/containers.png
Binary files differ
diff --git a/tests/ref/text/baseline.png b/tests/ref/text/baseline.png
new file mode 100644
index 00000000..6890236f
--- /dev/null
+++ b/tests/ref/text/baseline.png
Binary files differ
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
index 0fce4295..5fd121e3 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/elements/image.typ
@@ -43,6 +43,10 @@ Stuff
#image("../../res/rhino.png")
---
+// Test baseline.
+A #image("../../res/tiger.jpg", height: 1cm, width: 80%) B
+
+---
// Error: 8-29 file not found
#image("path/does/not/exist")
diff --git a/tests/typ/layout/aspect.typ b/tests/typ/layout/aspect.typ
index c0db17e0..c9b8ee41 100644
--- a/tests/typ/layout/aspect.typ
+++ b/tests/typ/layout/aspect.typ
@@ -11,14 +11,10 @@
---
// Test alignment in automatically sized square and circle.
#font(8pt)
-#grid(
- columns: 2,
- gutter: 10pt,
- square(padding: 4pt)[
- Hey there, #align(center + bottom, rotate(180deg, [you!]))
- ],
- circle(align(center + horizon, [Hey.])),
-)
+#square(padding: 4pt)[
+ Hey there, #align(center + bottom, rotate(180deg, [you!]))
+]
+#circle(align(center + horizon, [Hey.]))
---
// Test that maximum wins if both width and height are given.
diff --git a/tests/typ/text/baseline.typ b/tests/typ/text/baseline.typ
new file mode 100644
index 00000000..f22fce08
--- /dev/null
+++ b/tests/typ/text/baseline.typ
@@ -0,0 +1,4 @@
+// Test text baseline.
+
+---
+Hi #font(150%)[You], #font(75%)[how are you?]