summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/foundations/content.typ14
-rw-r--r--tests/suite/styling/show.typ2
2 files changed, 14 insertions, 2 deletions
diff --git a/tests/suite/foundations/content.typ b/tests/suite/foundations/content.typ
index afecc124..31ef1c54 100644
--- a/tests/suite/foundations/content.typ
+++ b/tests/suite/foundations/content.typ
@@ -13,7 +13,7 @@
- C
--- content-field-missing ---
-// Error: 25-28 content does not contain field "fun"
+// Error: 25-28 heading does not have field "fun"
#show heading: it => it.fun
= A
@@ -118,3 +118,15 @@
}
= Hello, world! <my-label>
+
+--- content-fields-unset ---
+// Error: 10-15 field "block" in raw is not known at this point
+#raw("").block
+
+--- content-fields-unset-no-default ---
+// Error: 2-21 field "block" in raw is not known at this point and no default was specified
+#raw("").at("block")
+
+--- content-try-to-access-internal-field ---
+// Error: 9-15 hide does not have field "hidden"
+#hide[].hidden
diff --git a/tests/suite/styling/show.typ b/tests/suite/styling/show.typ
index aa121bff..05f545c6 100644
--- a/tests/suite/styling/show.typ
+++ b/tests/suite/styling/show.typ
@@ -78,7 +78,7 @@ Another text.
= Heading
--- show-unknown-field ---
-// Error: 25-29 content does not contain field "page"
+// Error: 25-29 heading does not have field "page"
#show heading: it => it.page
= Heading