summaryrefslogtreecommitdiff
path: root/tests/suite/introspection
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-05-22 11:26:03 +0200
committerGitHub <noreply@github.com>2024-05-22 09:26:03 +0000
commita52987a8c26bc13e3db4cc300b8cd9d81eb8a18d (patch)
treeb6eeb1aeb07ead2b60acfcf99562f16dd53ba7b1 /tests/suite/introspection
parenta24052cb80e8a86695ac73e00281d5df0b9317c9 (diff)
Refactor frame metadata into tags (#4212)
Diffstat (limited to 'tests/suite/introspection')
-rw-r--r--tests/suite/introspection/locate.typ7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/suite/introspection/locate.typ b/tests/suite/introspection/locate.typ
index 981f8c46..b3a77fde 100644
--- a/tests/suite/introspection/locate.typ
+++ b/tests/suite/introspection/locate.typ
@@ -4,6 +4,13 @@
= Introduction <intro>
#context test(locate(<intro>).position().y, 20pt)
+--- locate-position-trailing-tag ---
+// Test locating the position of a tag with no following content.
+#context test(here().position().y, 10pt)
+#box[]
+#v(10pt)
+#context test(here().position().y, 20pt)
+
--- locate-missing-label ---
// Error: 10-25 label `<intro>` does not exist in the document
#context locate(<intro>)