test: update tests

This commit is contained in:
Tobias Schmitz 2025-05-20 14:27:28 +02:00
parent 65e72a39e0
commit 9350d14557
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -8,5 +8,5 @@
#let data = read("/assets/text/missing.txt")
--- read-invalid-utf-8 ---
// Error: 18-40 file is not valid utf-8
// Error: 18-40 failed to convert to string (file is not valid utf-8 at 1:1)
#let data = read("/assets/text/bad.txt")

View File

@ -334,7 +334,7 @@
--- import-cyclic-in-other-file ---
// Cyclic import in other file.
// error: "./modules/cycle1.typ" 2:29-2:51 file is not valid utf-8
// Error: "tests/suite/scripting/modules/cycle2.typ" 2:9-2:21 cyclic import
#import "./modules/cycle1.typ": *
This is never reached.

View File

@ -167,7 +167,7 @@ A #box(image("/assets/images/tiger.jpg", height: 1cm, width: 80%)) B
#image("/assets/plugins/hello.wasm")
--- image-bad-svg ---
// Error: "/assets/images/bad.svg" 4:0 failed to parse SVG (found closing tag 'g' instead of 'style' at 4:3)
// Error: "/assets/images/bad.svg" 4:3 failed to parse SVG (found closing tag 'g' instead of 'style')
#image("/assets/images/bad.svg")
--- image-decode-svg ---
@ -176,7 +176,7 @@ A #box(image("/assets/images/tiger.jpg", height: 1cm, width: 80%)) B
#image.decode(`<svg xmlns="http://www.w3.org/2000/svg" height="140" width="500"><ellipse cx="200" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" /></svg>`.text, format: "svg")
--- image-decode-bad-svg ---
// Error: 2-168 failed to parse SVG (missing root node)
// Error: 15-152 failed to parse SVG (missing root node at 1:1)
// Warning: 8-14 `image.decode` is deprecated, directly pass bytes to `image` instead
#image.decode(`<svg height="140" width="500"><ellipse cx="200" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" /></svg>`.text, format: "svg")