Fix test failures
This commit is contained in:
parent
cae35d3334
commit
a99ee5e599
3 changed files with 40 additions and 51 deletions
|
@ -1081,7 +1081,7 @@ mod tests {
|
|||
|
||||
use super::*;
|
||||
use editor::{DisplayPoint, Editor};
|
||||
use gpui::{Context, EmptyView, Hsla, TestAppContext, VisualTestContext};
|
||||
use gpui::{Context, Hsla, TestAppContext, VisualTestContext};
|
||||
use language::Buffer;
|
||||
use smol::stream::StreamExt as _;
|
||||
use unindent::Unindent as _;
|
||||
|
@ -1114,7 +1114,7 @@ mod tests {
|
|||
.unindent(),
|
||||
)
|
||||
});
|
||||
let (_, cx) = cx.add_window_view(|_| EmptyView {});
|
||||
let cx = cx.add_empty_window();
|
||||
let editor = cx.new_view(|cx| Editor::for_buffer(buffer.clone(), None, cx));
|
||||
|
||||
let search_bar = cx.new_view(|cx| {
|
||||
|
@ -1461,7 +1461,7 @@ mod tests {
|
|||
"Should pick a query with multiple results"
|
||||
);
|
||||
let buffer = cx.new_model(|cx| Buffer::new(0, cx.entity_id().as_u64(), buffer_text));
|
||||
let window = cx.add_window(|_| EmptyView {});
|
||||
let window = cx.add_window(|_| ());
|
||||
|
||||
let editor = window.build_view(cx, |cx| Editor::for_buffer(buffer.clone(), None, cx));
|
||||
|
||||
|
@ -1657,7 +1657,7 @@ mod tests {
|
|||
"#
|
||||
.unindent();
|
||||
let buffer = cx.new_model(|cx| Buffer::new(0, cx.entity_id().as_u64(), buffer_text));
|
||||
let (_, cx) = cx.add_window_view(|_| EmptyView {});
|
||||
let cx = cx.add_empty_window();
|
||||
|
||||
let editor = cx.new_view(|cx| Editor::for_buffer(buffer.clone(), None, cx));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue