Re-enable all project panel tests

Some are still failing.
This commit is contained in:
Max Brunsfeld 2023-11-14 12:41:20 -08:00
parent c7d80c7aac
commit 123faed5b0
3 changed files with 1316 additions and 1293 deletions

View file

@ -9168,6 +9168,10 @@ impl Editor {
cx.focus(&self.focus_handle) cx.focus(&self.focus_handle)
} }
pub fn is_focused(&self, cx: &WindowContext) -> bool {
self.focus_handle.is_focused(cx)
}
fn handle_focus_in(&mut self, cx: &mut ViewContext<Self>) { fn handle_focus_in(&mut self, cx: &mut ViewContext<Self>) {
if self.focus_handle.is_focused(cx) { if self.focus_handle.is_focused(cx) {
// todo!() // todo!()

View file

@ -152,6 +152,21 @@ impl TestAppContext {
(view, VisualTestContext::from_window(*window.deref(), self)) (view, VisualTestContext::from_window(*window.deref(), self))
} }
pub fn simulate_new_path_selection(
&self,
_select_path: impl FnOnce(&std::path::Path) -> Option<std::path::PathBuf>,
) {
//
}
pub fn simulate_prompt_answer(&self, _button_ix: usize) {
//
}
pub fn has_pending_prompt(&self) -> bool {
false
}
pub fn spawn<Fut, R>(&self, f: impl FnOnce(AsyncAppContext) -> Fut) -> Task<R> pub fn spawn<Fut, R>(&self, f: impl FnOnce(AsyncAppContext) -> Fut) -> Task<R>
where where
Fut: Future<Output = R> + 'static, Fut: Future<Output = R> + 'static,

File diff suppressed because it is too large Load diff