diff options
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/benches.rs | 3 | ||||
| -rw-r--r-- | tests/src/tests.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index ea53f602..21fdbc7a 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -5,6 +5,7 @@ use iai::{black_box, main, Iai}; use typst::diag::{FileError, FileResult}; use typst::eval::Library; use typst::font::{Font, FontBook}; +use typst::geom::Color; use typst::syntax::{Source, SourceId}; use typst::util::Buffer; use typst::World; @@ -90,7 +91,7 @@ fn bench_compile(iai: &mut Iai) { fn bench_render(iai: &mut Iai) { let world = BenchWorld::new(); let document = typst::compile(&world, &world.source).unwrap(); - iai.run(|| typst::export::render(&document.pages[0], 1.0)) + iai.run(|| typst::export::render(&document.pages[0], 1.0, Color::WHITE)) } struct BenchWorld { diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 8a25af15..24b3431f 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -690,7 +690,7 @@ fn render(frames: &[Frame]) -> sk::Pixmap { if frame.width() > limit || frame.height() > limit { panic!("overlarge frame: {:?}", frame.size()); } - typst::export::render(frame, pixel_per_pt) + typst::export::render(frame, pixel_per_pt, Color::WHITE) }) .collect(); |
