mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Reflect new behavior in test now that we don't replace windows anymore
This commit is contained in:
parent
d03c431f9a
commit
bcba11ba82
1 changed files with 1 additions and 16 deletions
|
@ -735,8 +735,6 @@ mod tests {
|
|||
.unwrap();
|
||||
assert_eq!(cx.window_ids().len(), 2);
|
||||
|
||||
// Replace existing windows
|
||||
let window_id = cx.window_ids()[0];
|
||||
cx.update(|cx| {
|
||||
open_paths(
|
||||
&[PathBuf::from("/root/c"), PathBuf::from("/root/d")],
|
||||
|
@ -746,20 +744,7 @@ mod tests {
|
|||
})
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(cx.window_ids().len(), 2);
|
||||
cx.read_window(window_id, |cx| {
|
||||
let workspace = cx.root_view().clone().downcast::<Workspace>().unwrap();
|
||||
let workspace = workspace.read(cx);
|
||||
assert_eq!(
|
||||
workspace
|
||||
.worktrees(cx)
|
||||
.map(|w| w.read(cx).abs_path())
|
||||
.collect::<Vec<_>>(),
|
||||
&[Path::new("/root/c").into(), Path::new("/root/d").into()]
|
||||
);
|
||||
assert!(workspace.left_sidebar().read(cx).is_open());
|
||||
assert!(workspace.active_pane().is_focused(cx));
|
||||
});
|
||||
assert_eq!(cx.window_ids().len(), 3);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
|
|
Loading…
Reference in a new issue