summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/query-quote.pngbin0 -> 1368 bytes
-rw-r--r--tests/suite/introspection/query.typ16
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/query-quote.png b/tests/ref/query-quote.png
new file mode 100644
index 00000000..e2136592
--- /dev/null
+++ b/tests/ref/query-quote.png
Binary files differ
diff --git a/tests/suite/introspection/query.typ b/tests/suite/introspection/query.typ
index 76ecc913..3d71529e 100644
--- a/tests/suite/introspection/query.typ
+++ b/tests/suite/introspection/query.typ
@@ -281,3 +281,19 @@
// New show rules apply to this, but its location and the materialized fields
// from the original are retained.
#context query(heading).join()
+
+--- query-quote ---
+// Test quoting a query.
+
+#quote[ABC] & #quote[EFG]
+
+#context query(selector(quote).before(here())).first()
+
+#quote(block: true)[HIJ]
+#quote(block: true)[KLM]
+
+#context query(selector(quote).before(here())).last()
+
+#quote[NOP] <nop>
+
+#context query(<nop>).first()