summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/columns.pngbin107086 -> 107087 bytes
-rw-r--r--tests/ref/layout/par-bidi.pngbin25285 -> 25290 bytes
-rw-r--r--tests/ref/layout/par-indent.pngbin47226 -> 47225 bytes
-rw-r--r--tests/src/benches.rs3
-rw-r--r--tests/src/tests.rs2
5 files changed, 3 insertions, 2 deletions
diff --git a/tests/ref/layout/columns.png b/tests/ref/layout/columns.png
index 4bf76146..51fd5b2c 100644
--- a/tests/ref/layout/columns.png
+++ b/tests/ref/layout/columns.png
Binary files differ
diff --git a/tests/ref/layout/par-bidi.png b/tests/ref/layout/par-bidi.png
index 0406fbf1..8751d93e 100644
--- a/tests/ref/layout/par-bidi.png
+++ b/tests/ref/layout/par-bidi.png
Binary files differ
diff --git a/tests/ref/layout/par-indent.png b/tests/ref/layout/par-indent.png
index 7aca22c1..269c0024 100644
--- a/tests/ref/layout/par-indent.png
+++ b/tests/ref/layout/par-indent.png
Binary files differ
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();