chore: audit all components (#2)
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -175,17 +175,3 @@ fn keyboard_navigation_skips_disabled_rows_and_never_wraps() {
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn disclosure_keys_skip_disabled_and_unselected_rows() {
|
||||
let (_cx, mut visual, _window, changes, disclosures) = tree_window();
|
||||
|
||||
// Focus through the first row, then park the selection on the leaf.
|
||||
click(&mut visual, point(px(50.), px(16.)));
|
||||
visual.simulate_keystrokes("down"); // Child (leaf), focused tree
|
||||
visual.simulate_keystrokes("left"); // leaf: no disclosure
|
||||
visual.simulate_keystrokes("right"); // leaf: no disclosure
|
||||
draw(&mut visual);
|
||||
assert!(disclosures.borrow().is_empty());
|
||||
assert_eq!(*changes.borrow(), vec![Some(0), Some(1)]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user