From f74664df8dfe7b7923c33caa692e04f51af9c715 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 13 Oct 2026 00:33:00 +0000 Subject: [PATCH] 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) --- crates/tools/src/tests.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/tools/src/tests.rs b/crates/tools/src/tests.rs index 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}"); } }