summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-01-09 10:34:16 +0100
committerGitHub <noreply@github.com>2025-01-09 09:34:16 +0000
commite2b37fef33a92a7086790e04fb133472413c0c0a (patch)
treea2bdc638482890183414dce18f8f586786154017 /tests/suite
parentdacd6acd5e73d35c6e7a7a3b144f16ae70d03daa (diff)
Revamp data loading and deprecate `decode` functions (#5671)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/pdf/embed.typ20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/suite/pdf/embed.typ b/tests/suite/pdf/embed.typ
index bb5c9316..83f006d6 100644
--- a/tests/suite/pdf/embed.typ
+++ b/tests/suite/pdf/embed.typ
@@ -10,6 +10,16 @@
description: "Information about a secret project",
)
+--- pdf-embed-bytes ---
+#pdf.embed("hello.txt", read("/assets/text/hello.txt", encoding: none))
+#pdf.embed(
+ "a_file_name.txt",
+ read("/assets/text/hello.txt", encoding: none),
+ relationship: "supplement",
+ mime-type: "text/plain",
+ description: "A description",
+)
+
--- pdf-embed-invalid-relationship ---
#pdf.embed(
"/assets/text/hello.txt",
@@ -18,13 +28,3 @@
mime-type: "text/plain",
description: "A test file",
)
-
---- pdf-embed-decode ---
-#pdf.embed.decode("hello.txt", read("/assets/text/hello.txt"))
-#pdf.embed.decode(
- "a_file_name.txt",
- read("/assets/text/hello.txt"),
- relationship: "supplement",
- mime-type: "text/plain",
- description: "A description",
-)