mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Align Edges tests: PhotocraftApp::new gives a Box
This commit is contained in:
1 parent
4b86687a0e
commit
dd1c3ef788
1 file changed
+1
-1
@@ -20,7 +20,7 @@ const GEAR: &str = "Set additional shape and path options";
|
||||
|
||||
/// A 200 × 100 document with the Rectangle tool and its options set by `set`. The pixel-grid snap
|
||||
/// of vector tools is off, so only Align Edges rounds.
|
||||
fn app(set: impl FnOnce(&mut ToolOptions)) -> PhotocraftApp {
|
||||
fn app(set: impl FnOnce(&mut ToolOptions)) -> Box<PhotocraftApp> {
|
||||
let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());
|
||||
app.run("file.new", json!({"width": 200, "height": 100})).unwrap();
|
||||
app.run("prefs.set", json!({"path": "tools.snapVectorToolsAndTransformsToPixelGrid", "value": false})).unwrap();
|
||||
|
||||
Reference in new issue
Block a user