diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/compiler/show-set.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/compiler/show-set.typ')
| -rw-r--r-- | tests/typ/compiler/show-set.typ | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/tests/typ/compiler/show-set.typ b/tests/typ/compiler/show-set.typ deleted file mode 100644 index e336f517..00000000 --- a/tests/typ/compiler/show-set.typ +++ /dev/null @@ -1,55 +0,0 @@ -// Test show-set rules. - ---- -// Test overriding show-set rules. -#show strong: set text(red) -Hello *World* - -#show strong: set text(blue) -Hello *World* - ---- -// Test show-set rule on the same element. -#set figure(supplement: [Default]) -#show figure.where(kind: table): set figure(supplement: [Tableau]) -#figure( - table(columns: 2)[A][B][C][D], - caption: [Four letters], -) - ---- -// Test both things at once. -#show heading: set text(red) -= Level 1 -== Level 2 - -#show heading.where(level: 1): set text(blue) -#show heading.where(level: 1): set text(green) -#show heading.where(level: 1): set heading(numbering: "(I)") -= Level 1 -== Level 2 - ---- -// Test setting the thing we just matched on. -// This is quite cursed, but it works. -#set heading(numbering: "(I)") -#show heading.where(numbering: "(I)"): set heading(numbering: "1.") -= Heading - ---- -// Same thing, but even more cursed, because `kind` is synthesized. -#show figure.where(kind: table): set figure(kind: raw) -#figure(table[A], caption: [Code]) - ---- -// Test that show-set rules on the same element don't affect each other. This -// could be implemented, but isn't as of yet. -#show heading.where(level: 1): set heading(numbering: "(I)") -#show heading.where(numbering: "(I)"): set text(red) -= Heading - ---- -// Test show-set rules on layoutable element to ensure it is realized -// even though it implements `LayoutMultiple`. -#show table: set text(red) -#pad(table(columns: 4)[A][B][C][D]) |
