summaryrefslogtreecommitdiff
path: root/tests/suite/foundations/context.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/foundations/context.typ')
-rw-r--r--tests/suite/foundations/context.typ40
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/suite/foundations/context.typ b/tests/suite/foundations/context.typ
index 9ed31757..e506d50d 100644
--- a/tests/suite/foundations/context.typ
+++ b/tests/suite/foundations/context.typ
@@ -37,46 +37,6 @@
// Error: 11-12 variables from outside the context expression are read-only and cannot be modified
#context (i = 1)
---- context-compatibility-locate ---
-#let s = state("x", 0)
-#let compute(expr) = [
- #s.update(x =>
- eval(expr.replace("x", str(x)))
- )
- // Warning: 17-28 `state.display` is deprecated
- // Hint: 17-28 use `state.get` in a `context` expression instead
- New value is #s.display().
-]
-
-// Warning: 1:2-6:3 `locate` with callback function is deprecated
-// Hint: 1:2-6:3 use a `context` expression instead
-#locate(loc => {
- // Warning: 14-32 calling `query` with a location is deprecated
- // Hint: 14-32 try removing the location argument
- let elem = query(<here>, loc).first()
- test(s.at(elem.location()), 13)
-})
-
-#compute("10") \
-#compute("x + 3") \
-*Here.* <here> \
-#compute("x * 2") \
-#compute("x - 5")
-
---- context-compatibility-styling ---
-// Warning: 2-53 `style` is deprecated
-// Hint: 2-53 use a `context` expression instead
-// Warning: 18-39 calling `measure` with a styles argument is deprecated
-// Hint: 18-39 try removing the styles argument
-#style(styles => measure([it], styles).width < 20pt)
-
---- context-compatibility-counter-display ---
-#counter(heading).update(10)
-
-// 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