mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 23:31:23 +00:00
Selection: format the frame test's marquee assertion
This commit is contained in:
@@ -2077,7 +2077,10 @@ fn a_dropped_press_keeps_the_text_loaded() {
|
||||
t.pointer(&cx, &ev(PointerKind::Drag, 80.0, 90.0));
|
||||
assert!(t.drop_press(&cx).is_empty());
|
||||
assert!(t.pointer(&cx, &ev(PointerKind::Up, 80.0, 90.0)).is_empty(), "the release threads nothing");
|
||||
assert!(!t.overlays(&cx).iter().any(|o| matches!(o, Overlay::Marquee(_) | Overlay::SelectionMarquee { .. })), "the new frame's outline is removed");
|
||||
assert!(
|
||||
!t.overlays(&cx).iter().any(|o| matches!(o, Overlay::Marquee(_) | Overlay::SelectionMarquee { .. })),
|
||||
"the new frame's outline is removed"
|
||||
);
|
||||
assert_eq!(t.cursor(&cx, Point::new(30.0, 420.0), Mods::default()), Cursor::LoadedText);
|
||||
// A press on the port that loaded the text puts it down; dropped, it leaves the text loaded.
|
||||
t.pointer(&cx, &ev(PointerKind::Down, port.x, port.y));
|
||||
|
||||
Reference in New Issue
Block a user