Better TestWindow support (#3876)
Adding guest roles led us down a rabbit hole where we'd have liked to rely on a side-effect of activating a window in tests; but the test window didn't implement that. Looking into that, I realized our TestWindow wasn't doing a great job of emulating the MacWindow, so this makes the two more similar.
This commit is contained in:
@@ -930,10 +930,7 @@ mod tests {
|
||||
fn do_work() { «test»(); }
|
||||
"});
|
||||
|
||||
// Deactivating the window dismisses the highlight
|
||||
cx.update_workspace(|workspace, cx| {
|
||||
workspace.on_window_activation_changed(cx);
|
||||
});
|
||||
cx.cx.cx.deactivate_window();
|
||||
cx.assert_editor_text_highlights::<LinkGoToDefinitionState>(indoc! {"
|
||||
fn test() { do_work(); }
|
||||
fn do_work() { test(); }
|
||||
|
||||
Reference in New Issue
Block a user