Skip to content

Commit ffbd317

Browse files
committed
Run all helix tests with "helix_mode" enabled
1 parent f20979a commit ffbd317

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/vim/src/helix.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ mod test {
466466
#[gpui::test]
467467
async fn test_word_motions(cx: &mut gpui::TestAppContext) {
468468
let mut cx = VimTestContext::new(cx, true).await;
469+
cx.enable_helix();
469470
// «
470471
// ˇ
471472
// »
@@ -527,6 +528,7 @@ mod test {
527528
#[gpui::test]
528529
async fn test_delete(cx: &mut gpui::TestAppContext) {
529530
let mut cx = VimTestContext::new(cx, true).await;
531+
cx.enable_helix();
530532

531533
// test delete a selection
532534
cx.set_state(
@@ -607,6 +609,7 @@ mod test {
607609
#[gpui::test]
608610
async fn test_f_and_t(cx: &mut gpui::TestAppContext) {
609611
let mut cx = VimTestContext::new(cx, true).await;
612+
cx.enable_helix();
610613

611614
cx.set_state(
612615
indoc! {"
@@ -660,6 +663,7 @@ mod test {
660663
#[gpui::test]
661664
async fn test_newline_char(cx: &mut gpui::TestAppContext) {
662665
let mut cx = VimTestContext::new(cx, true).await;
666+
cx.enable_helix();
663667

664668
cx.set_state("aa«\nˇ»bb cc", Mode::HelixNormal);
665669

@@ -677,6 +681,7 @@ mod test {
677681
#[gpui::test]
678682
async fn test_insert_selected(cx: &mut gpui::TestAppContext) {
679683
let mut cx = VimTestContext::new(cx, true).await;
684+
cx.enable_helix();
680685
cx.set_state(
681686
indoc! {"
682687
«The ˇ»quick brown
@@ -699,6 +704,7 @@ mod test {
699704
#[gpui::test]
700705
async fn test_append(cx: &mut gpui::TestAppContext) {
701706
let mut cx = VimTestContext::new(cx, true).await;
707+
cx.enable_helix();
702708
// test from the end of the selection
703709
cx.set_state(
704710
indoc! {"
@@ -741,6 +747,7 @@ mod test {
741747
#[gpui::test]
742748
async fn test_replace(cx: &mut gpui::TestAppContext) {
743749
let mut cx = VimTestContext::new(cx, true).await;
750+
cx.enable_helix();
744751

745752
// No selection (single character)
746753
cx.set_state("ˇaa", Mode::HelixNormal);
@@ -791,6 +798,7 @@ mod test {
791798
#[gpui::test]
792799
async fn test_shift_r_paste(cx: &mut gpui::TestAppContext) {
793800
let mut cx = VimTestContext::new(cx, true).await;
801+
cx.enable_helix();
794802

795803
// First copy some text to clipboard
796804
cx.set_state("«hello worldˇ»", Mode::HelixNormal);

0 commit comments

Comments
 (0)