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)

This commit is contained in:
aiongg
2026-10-13 00:33:00 +00:00
parent 5b81bfa9b6
commit f74664df8d
+1 -4
View File
@@ -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}");
}
}