summaryrefslogtreecommitdiff
path: root/tests/suite/layout/grid
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-09-16 16:41:18 +0200
committerGitHub <noreply@github.com>2024-09-16 14:41:18 +0000
commit16e67f8bea7e6891e954420e2e005976fb48a528 (patch)
treeb1de8e17f184d10894447a602da1722a71dd23a9 /tests/suite/layout/grid
parentdb71a178bef7f1525d732a190ac75a1a6d56f24b (diff)
Shrink tests (#4967)
Diffstat (limited to 'tests/suite/layout/grid')
-rw-r--r--tests/suite/layout/grid/grid.typ4
-rw-r--r--tests/suite/layout/grid/headers.typ6
-rw-r--r--tests/suite/layout/grid/rowspan.typ2
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/suite/layout/grid/grid.typ b/tests/suite/layout/grid/grid.typ
index d35adca5..e56299e7 100644
--- a/tests/suite/layout/grid/grid.typ
+++ b/tests/suite/layout/grid/grid.typ
@@ -247,8 +247,8 @@
--- issue-grid-skip-list ---
#set page(height: 60pt)
-#lorem(5)
-- #lorem(5)
+#lines(2)
+- #lines(2)
--- issue-grid-double-skip ---
// Ensure that the list does not jump to the third page.
diff --git a/tests/suite/layout/grid/headers.typ b/tests/suite/layout/grid/headers.typ
index c3b92997..cb263376 100644
--- a/tests/suite/layout/grid/headers.typ
+++ b/tests/suite/layout/grid/headers.typ
@@ -186,7 +186,7 @@
[*Hello*],
[*World*]
),
- table.cell(rowspan: 3, lorem(40))
+ table.cell(rowspan: 3, lines(15))
)
--- grid-header-and-rowspan-non-contiguous-2 ---
@@ -201,7 +201,7 @@
[*Hello*],
[*World*]
),
- table.cell(rowspan: 3, lorem(40))
+ table.cell(rowspan: 3, lines(15))
)
--- grid-header-and-rowspan-non-contiguous-3 ---
@@ -215,7 +215,7 @@
[*Hello*],
[*World*]
),
- table.cell(rowspan: 3, lorem(40))
+ table.cell(rowspan: 3, lines(15))
)
--- grid-header-lack-of-space ---
diff --git a/tests/suite/layout/grid/rowspan.typ b/tests/suite/layout/grid/rowspan.typ
index e5c8bbc8..88aa34c6 100644
--- a/tests/suite/layout/grid/rowspan.typ
+++ b/tests/suite/layout/grid/rowspan.typ
@@ -194,7 +194,7 @@
--- grid-rowspan-unbreakable-2 ---
// Test cell breakability
#show grid.cell: it => {
- assert.eq(it.breakable, (it.x, it.y) != (0, 6) and (it.y in (2, 5, 6) or (it.x, it.y) in ((0, 1), (2, 3), (1, 7))))
+ test(it.breakable, (it.x, it.y) != (0, 6) and (it.y in (2, 5, 6) or (it.x, it.y) in ((0, 1), (2, 3), (1, 7))))
it.breakable
}
#grid(