summaryrefslogtreecommitdiff
path: root/tests/typ/structure
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/structure')
-rw-r--r--tests/typ/structure/attach.typ18
-rw-r--r--tests/typ/structure/desc.typ2
-rw-r--r--tests/typ/structure/heading.typ4
-rw-r--r--tests/typ/structure/list.typ2
4 files changed, 12 insertions, 14 deletions
diff --git a/tests/typ/structure/attach.typ b/tests/typ/structure/attach.typ
index c6d3c28c..c13de236 100644
--- a/tests/typ/structure/attach.typ
+++ b/tests/typ/structure/attach.typ
@@ -9,10 +9,8 @@ Attached to:
Next paragraph.
---
-// Test attached list without parbreak after it.
-// Ensures the par spacing is used below by setting
-// super high around spacing.
-#set list(around: 100pt)
+// Test that attached list isn't affected by block spacing.
+#show list: it => { set block(above: 100pt); it }
Hello
- A
World
@@ -29,8 +27,8 @@ World
- B
---
-// Test not-attached tight list.
-#set list(around: 15pt)
+// Test non-attached tight list.
+#set block(spacing: 15pt)
Hello
- A
World
@@ -41,8 +39,8 @@ World
More.
---
-// Test that wide lists cannot be attached ...
-#set list(around: 15pt, spacing: 15pt)
+// Test that wide lists cannot be ...
+#set block(spacing: 15pt)
Hello
- A
@@ -50,7 +48,7 @@ Hello
World
---
-// ... unless really forced to.
+// ... even if forced to.
Hello
-#list(attached: true, tight: false)[A][B]
+#list(tight: false)[A][B]
World
diff --git a/tests/typ/structure/desc.typ b/tests/typ/structure/desc.typ
index af1b2986..1bc92625 100644
--- a/tests/typ/structure/desc.typ
+++ b/tests/typ/structure/desc.typ
@@ -30,8 +30,8 @@ No: list \
---
// Test style change.
#set text(8pt)
-
/ First list: #lorem(4)
+
#set desc(body-indent: 30pt)
/ Second list: #lorem(4)
diff --git a/tests/typ/structure/heading.typ b/tests/typ/structure/heading.typ
index b552f6c3..9fd4e648 100644
--- a/tests/typ/structure/heading.typ
+++ b/tests/typ/structure/heading.typ
@@ -43,9 +43,9 @@ multiline.
---
// Test styling.
-#show heading.where(level: 5): it => {
+#show heading.where(level: 5): it => block(
text(family: "Roboto", fill: eastern, it.body + [!])
-}
+)
= Heading
===== Heading 🌍
diff --git a/tests/typ/structure/list.typ b/tests/typ/structure/list.typ
index 9a021f31..9ed5993a 100644
--- a/tests/typ/structure/list.typ
+++ b/tests/typ/structure/list.typ
@@ -6,7 +6,7 @@ No list
---
_Shopping list_
-#list(attached: true)[Apples][Potatoes][Juice]
+#list[Apples][Potatoes][Juice]
---
- First level.