summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/par.typ10
-rw-r--r--tests/typ/layout/repeat.typ2
-rw-r--r--tests/typ/layout/spacing.typ2
3 files changed, 3 insertions, 11 deletions
diff --git a/tests/typ/layout/par.typ b/tests/typ/layout/par.typ
index 558059e9..aabe63ef 100644
--- a/tests/typ/layout/par.typ
+++ b/tests/typ/layout/par.typ
@@ -2,7 +2,7 @@
---
// Test ragged-left.
-#set par(align: right)
+#set align(right)
To the right! Where the sunlight peeks behind the mountain.
---
@@ -35,11 +35,3 @@ fn main() {}
- List
Paragraph
-
----
-// Error: 17-20 must be horizontal
-#set par(align: top)
-
----
-// Error: 17-33 expected alignment, found 2d alignment
-#set par(align: horizon + center)
diff --git a/tests/typ/layout/repeat.typ b/tests/typ/layout/repeat.typ
index 13e99b51..3b5459c9 100644
--- a/tests/typ/layout/repeat.typ
+++ b/tests/typ/layout/repeat.typ
@@ -32,7 +32,7 @@ A#repeat(rect(width: 2.5em, height: 1em))B
// Test single repeat in both directions.
A#repeat(rect(width: 6em, height: 0.7em))B
-#set par(align: center)
+#set align(center)
A#repeat(rect(width: 6em, height: 0.7em))B
#set text(dir: rtl)
diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ
index eb0bd39e..3cb1a20c 100644
--- a/tests/typ/layout/spacing.typ
+++ b/tests/typ/layout/spacing.typ
@@ -19,7 +19,7 @@ Add #h(10pt) #h(10pt) up
---
// Test spacing collapsing before spacing.
-#set par(align: right)
+#set align(right)
A #h(0pt) B #h(0pt) \
A B \
A #h(-1fr) B