DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration (#636): the Direct Selection end-anchor test checks only Direct Selection (with the default brackets the Selection tool's thread ports sit there too)
aionggf74664df8dfe
diff --git a/crates/tools/src/tests.rs b/crates/tools/src/tests.rsindex c35ece5a1..05b411c83 100644--- a/crates/tools/src/tests.rs+++ b/crates/tools/src/tests.rs@@ -1662,13 +1662,10 @@ fn direct_selection_drags_the_end_anchors_of_type_on_a_path() {let off = l.xf(SpreadRef::Doc(0)).translation();let s = Selection { items: vec![id], content: true, ..Default::default() };let cx = ctx(&d, &s, &c, &l);- for (x, end) in [(100.0, false), (500.0, true)] {+ for x in [100.0, 500.0] {let p = Point::new(x + off.x, 300.0 + off.y);let mut direct = create("directSelection");assert_ne!(direct.cursor(&cx, p, Mods::default()), Cursor::PathBracket, "anchor at {x}");assert_eq!(direct.pointer(&cx, &PointerEvent::new(PointerKind::Down, p.x, p.y)), vec![Action::Begin("Move Anchor".into())]);- // The Selection tool still takes the bracket there.- let mut sel = create("selection");- assert_eq!(sel.pointer(&cx, &PointerEvent::new(PointerKind::Down, p.x, p.y)), vec![Action::Begin("Move Bracket".into())], "end {end}");}}