Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/engine/src/tests/cancellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ pub(super) fn long_commands(boundaries: bool) {
read(&s, "raster.imageGrid", &json!({"layer": dem}));
// A PDF's page is read on the same queue: the file, then its drawing, Cancel looked at between
// (#2336).
s.run("layout.new", &json!({"page": "a4", "template": "map"})).unwrap();
// A small page: the sweep draws, measures and compares all its pixels at each check. At 50 mm it
// looks at Cancel as often as an A4 page does (32 times); at 25 mm, only 18.
s.run("layout.new", &json!({"width": 50, "height": 50, "template": "map"})).unwrap();
s.run("layout.export", &json!({"path": out("page.pdf"), "dpi": 36, "allPages": false})).unwrap();
read(&s, "layer.addData", &json!({"path": out("page.pdf")}));
read(&s, "table.statistics", &json!({"layer": "Cities", "field": "pop_max"}));
Expand Down
Loading