typst/tests/typ/image-error.typ
Laurenz 81e80ecfba Test [page] function 📕
- Make page break behaviour more consistent
- Allow skipping reference image testing for single tests with `// compare-ref: false` (useful for tests which only check error messages)
2020-12-17 00:20:27 +01:00

12 lines
271 B
XML

// Test error cases of the `image` function.
// compare-ref: false
// error: 8:9-8:30 failed to load image
// error: 11:9-11:30 failed to load image
// File does not exist.
[image: "path/does/not/exist"]
// File exists, but is no image.
[image: "typ/image-error.typ"]