diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-09-16 18:17:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-16 16:17:24 +0000 |
| commit | ea145ff33bb6c3babb9765b5d0059612b2ea54f0 (patch) | |
| tree | cd6707aa91329c8c1f14d81b1f21eec17e7f619b /tests/suite | |
| parent | 16e67f8bea7e6891e954420e2e005976fb48a528 (diff) | |
Do not surface warnings from non-last layout iterations (#4970)
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/foundations/context.typ | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/suite/foundations/context.typ b/tests/suite/foundations/context.typ index 0906fb1e..9ed31757 100644 --- a/tests/suite/foundations/context.typ +++ b/tests/suite/foundations/context.typ @@ -76,3 +76,16 @@ // Warning: 2-44 `counter.display` without context is deprecated // Hint: 2-44 use it in a `context` expression instead #counter(heading).display(n => test(n, 10)) + +--- context-delayed-warning --- +// Ensure that the warning that triggers in the first layout iteration is not +// surfaced since it goes away in the second one. Just like errors in show +// rules. +#show heading: none + += A <a> +#context { + let n = query(<a>).len() + let fonts = ("nope", "Roboto") + set text(font: fonts.at(n)) +} |
