Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Canvas tests: the isolation-mode Lock test uses plain paths, as the task bar shows Lock for them

bflatastic19b4fc8d437f
diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs
index b323306af..f7361da0c 100644
--- a/crates/ui-egui/src/canvas/tests.rs
+++ b/crates/ui-egui/src/canvas/tests.rs
@@ -6982,9 +6982,6 @@ fn the_task_bar_lock_button_locks_selected_art_in_isolation_mode() {
|x: f64| json!({"anchors": [{"x": x, "y": 130}, {"x": x + 40.0, "y": 130}, {"x": x + 40.0, "y": 170}, {"x": x, "y": 170}], "closed": true});
let a = app.session.execute("path.create", &square(150.0)).unwrap()["id"].clone();
let b = app.session.execute("path.create", &square(210.0)).unwrap()["id"].clone();
- app.session.execute("select.set", &json!({"ids": [a.clone(), b]})).unwrap();
- let a = app.session.execute("shape.rectangle", &json!({"x": 150, "y": 130, "width": 40, "height": 40})).unwrap()["id"].clone();
- let b = app.session.execute("shape.rectangle", &json!({"x": 210, "y": 130, "width": 40, "height": 40})).unwrap()["id"].clone();
app.session.execute("select.set", &json!({"ids": [a.clone(), b.clone()]})).unwrap();
let g = app.session.execute("object.group", &json!({})).unwrap()["id"].clone();
app.select_tool("selection");