mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-09 20:12:57 +00:00
docking: the undock hint test uses contains, as clippy asks
This commit is contained in:
1 parent
53947dbfe8
commit
e350bfdb01
1 file changed
+2
-2
@@ -467,14 +467,14 @@ fn ctrl_or_cmd_floats_from_a_tab_or_a_drag_bar_and_the_preview_says_so() {
|
||||
// Without the modifier, a release over a group docks there; the preview names the modifier.
|
||||
let mut d = film();
|
||||
d.hold(from, over);
|
||||
assert!(texts(&d).iter().any(|t| *t == hint), "{from:?}: {:?}", texts(&d));
|
||||
assert!(texts(&d).contains(&hint), "{from:?}: {:?}", texts(&d));
|
||||
let out = d.release(over);
|
||||
assert!(!out.actions.is_empty() && !floated(&out.actions, PROJECT[0]), "{from:?}: {:?}", out.actions);
|
||||
// Held, it floats, and the hint is gone.
|
||||
let mut d = film();
|
||||
d.modifiers = Modifiers::COMMAND;
|
||||
d.hold(from, over);
|
||||
assert!(!texts(&d).iter().any(|t| *t == hint), "{from:?}");
|
||||
assert!(!texts(&d).contains(&hint), "{from:?}");
|
||||
let out = d.release(over);
|
||||
assert!(floated(&out.actions, PROJECT[0]), "{from:?}: {:?}", out.actions);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user