chore: audit all components (#2)
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -100,13 +100,3 @@ fn arrow_keys_skip_disabled_tabs_and_never_wrap() {
|
||||
visual.simulate_keystrokes("end"); // End
|
||||
assert_eq!(*changes.borrow(), vec![1, 3, 1, 0, 3]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn clicking_a_different_tab_reports_once() {
|
||||
let (_cx, mut visual, changes) = tabs_window();
|
||||
|
||||
click(&mut visual, point(px(20.), px(12.))); // One: no change, just focus
|
||||
click(&mut visual, point(px(62.), px(12.))); // Two
|
||||
click(&mut visual, point(px(62.), px(12.))); // Two again: no change
|
||||
assert_eq!(*changes.borrow(), vec![1]);
|
||||
}
|
||||
|
||||
@@ -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