Remove tab zoom tests as it now involves an interaction with the app
This commit is contained in:
parent
ef1c7beab1
commit
ea9e237810
2 changed files with 1 additions and 37 deletions
13
src/app.rs
13
src/app.rs
|
|
@ -3813,19 +3813,6 @@ pub(crate) mod test_utils {
|
|||
);
|
||||
}
|
||||
|
||||
pub fn assert_zoom_affects_item_size(tab: &mut Tab, message: tab::Message, should_zoom: bool) {
|
||||
let grid_icon_size = tab.config.icon_sizes.grid;
|
||||
let list_icon_size = tab.config.icon_sizes.list;
|
||||
|
||||
debug!("Emitting {:?}", message);
|
||||
tab.update(message, Modifiers::empty());
|
||||
|
||||
let grid_size_changed = grid_icon_size != tab.config.icon_sizes.grid;
|
||||
let list_size_changed = list_icon_size != tab.config.icon_sizes.list;
|
||||
|
||||
assert_eq!(grid_size_changed || list_size_changed, should_zoom);
|
||||
}
|
||||
|
||||
/// Assert that tab's items are equal to a path's entries.
|
||||
pub fn assert_eq_tab_path_contents(tab: &Tab, path: &Path) {
|
||||
let Location::Path(ref tab_path) = tab.location else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue