Hoisted assert clipboard into TestAppContext

This commit is contained in:
Mikayla Maki 2022-07-07 13:29:58 -07:00
parent 9209c0dfeb
commit 2a6e23ff28
4 changed files with 9 additions and 17 deletions

View file

@ -8232,7 +8232,7 @@ mod tests {
fox ju|mps over
the lazy dog"});
cx.update_editor(|e, cx| e.copy(&Copy, cx));
cx.assert_clipboard_content(Some("fox jumps over\n"));
cx.cx.assert_clipboard_content(Some("fox jumps over\n"));
// Paste with three selections, noticing how the copied full-line selection is inserted
// before the empty selections but replaces the selection that is non-empty.