diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-07-20 14:51:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 12:51:24 +0000 |
| commit | 0c37a2c2334afb6947f265e00bded0fe75be6434 (patch) | |
| tree | c6dd66554f1f9cadc1f43f386639c05f3aa6bf3e /tests/fuzz/src | |
| parent | 3aa18beacf84e8e982a1cb28170d281769c06dd0 (diff) | |
Support transparent page fill (#4586)
Co-authored-by: Martin Haug <mhaug@live.de>
Diffstat (limited to 'tests/fuzz/src')
| -rw-r--r-- | tests/fuzz/src/compile.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/fuzz/src/compile.rs b/tests/fuzz/src/compile.rs index c9536150..fa939781 100644 --- a/tests/fuzz/src/compile.rs +++ b/tests/fuzz/src/compile.rs @@ -6,7 +6,6 @@ use typst::foundations::{Bytes, Datetime}; use typst::syntax::{FileId, Source}; use typst::text::{Font, FontBook}; use typst::utils::LazyHash; -use typst::visualize::Color; use typst::{Library, World}; struct FuzzWorld { @@ -68,7 +67,7 @@ fuzz_target!(|text: &str| { let world = FuzzWorld::new(text); if let Ok(document) = typst::compile(&world).output { if let Some(page) = document.pages.first() { - std::hint::black_box(typst_render::render(&page.frame, 1.0, Color::WHITE)); + std::hint::black_box(typst_render::render(page, 1.0)); } } comemo::evict(10); |
