Remove TestAppContext::add_view
Instead, we now call this on window handles.
This commit is contained in:
parent
0f332238b3
commit
f0da6b05fd
9 changed files with 35 additions and 93 deletions
|
@ -328,10 +328,9 @@ mod tests {
|
|||
|
||||
let window = cx.add_window(|cx| Workspace::test_new(project.clone(), cx));
|
||||
let workspace = window.root(cx);
|
||||
let window_id = window.id();
|
||||
|
||||
// Create the project symbols view.
|
||||
let symbols = cx.add_view(window_id, |cx| {
|
||||
let symbols = window.add_view(cx, |cx| {
|
||||
ProjectSymbols::new(
|
||||
ProjectSymbolsDelegate::new(workspace.downgrade(), project.clone()),
|
||||
cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue