Give the export-ignores-the-viewport tests the viewport zoom now takes
0b06e31b ("Let a zoomed view fill the viewport...") added the
viewport's size to DevelopSession::zoom_about and left this
integration test calling it with three arguments, so dr-ui's tests did
not compile. The photograph here is 64×64; a 64×64 viewport keeps the
zoomed view the tests were written against.
This commit is contained in:
@@ -75,7 +75,7 @@ fn an_export_is_the_same_frame_whether_or_not_the_canvas_is_zoomed() {
|
||||
let before = top_row_span(&unzoomed.rgba, unzoomed.width);
|
||||
|
||||
// What a scroll wheel over the middle of the canvas does.
|
||||
session.zoom_about(4.0, 0.5, 0.5);
|
||||
session.zoom_about(4.0, 0.5, 0.5, 64, 64);
|
||||
assert!(session.is_zoomed(), "the session did not take the zoom");
|
||||
|
||||
let zoomed = session
|
||||
@@ -108,7 +108,7 @@ fn a_thumbnail_is_the_same_frame_whether_or_not_the_canvas_is_zoomed() {
|
||||
let (w, _, unzoomed) = session.render_thumbnail(32).expect("thumbnail");
|
||||
let before = top_row_span(&unzoomed, w);
|
||||
|
||||
session.zoom_about(4.0, 0.5, 0.5);
|
||||
session.zoom_about(4.0, 0.5, 0.5, 64, 64);
|
||||
let (_, _, zoomed) = session.render_thumbnail(32).expect("thumbnail");
|
||||
let after = top_row_span(&zoomed, w);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user