Find theme capture by node id in f04 chooser pointer test
This commit is contained in:
parent
6f7f61fc1a
commit
53ccf0cc0e
1 changed files with 8 additions and 1 deletions
|
|
@ -247,7 +247,14 @@ fn open_and_choose_by_pointer_on_f04() {
|
|||
let chosen = host.click(row_pos);
|
||||
assert!(chosen.diagnostics.is_empty(), "{mode:?}: {:?}", chosen.diagnostics);
|
||||
assert_eq!(chosen.outbound.len(), 1, "{mode:?}");
|
||||
assert_eq!(chosen.outbound[0].captured[0].value, InputValue::Choice(ChoiceValue { value: target_opt.value.clone() }), "{mode:?}");
|
||||
assert!(
|
||||
chosen.outbound[0]
|
||||
.captured
|
||||
.iter()
|
||||
.any(|c| c.node == nid("theme") && c.value == InputValue::Choice(ChoiceValue { value: target_opt.value.clone() })),
|
||||
"{mode:?}: {:?}",
|
||||
chosen.outbound[0].captured
|
||||
);
|
||||
assert!(surface_fills(&chosen).is_empty(), "{mode:?}: chooser closes after choice");
|
||||
assert!(selection_rects(&chosen).is_empty(), "{mode:?}");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue