Tidy up TestContext lifecycle
Co-Authored-By: Max <max@zed.dev>
This commit is contained in:
parent
c7568a7d37
commit
709682e8bc
10 changed files with 82 additions and 78 deletions
|
@ -1091,13 +1091,10 @@ mod tests {
|
|||
theme::init(theme::LoadThemes::JustBase, cx);
|
||||
});
|
||||
}
|
||||
|
||||
fn init_test(
|
||||
cx: &mut TestAppContext,
|
||||
) -> (
|
||||
View<Editor>,
|
||||
View<BufferSearchBar>,
|
||||
&mut VisualTestContext<'_>,
|
||||
) {
|
||||
) -> (View<Editor>, View<BufferSearchBar>, &mut VisualTestContext) {
|
||||
init_globals(cx);
|
||||
let buffer = cx.new_model(|cx| {
|
||||
Buffer::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue