parent
64c2043913
commit
1af7425059
2 changed files with 26 additions and 0 deletions
|
@ -157,6 +157,16 @@ async fn test_escape_command_palette(cx: &mut gpui::TestAppContext) {
|
|||
cx.assert_state("aˇbc\n", Mode::Insert);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_escape_cancels(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = VimTestContext::new(cx, true).await;
|
||||
|
||||
cx.set_state("aˇbˇc", Mode::Normal);
|
||||
cx.simulate_keystrokes(["escape"]);
|
||||
|
||||
cx.assert_state("aˇbc", Mode::Normal);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_selection_on_search(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = VimTestContext::new(cx, true).await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue