aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/integration/movement.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-04-19 05:21:31 +0000
committerSkyler Hawthorne2022-06-19 03:54:03 +0000
commitee705dcb3363aeb197f6125ab2f8285782333010 (patch)
treee045ef2a2c062f0e4df11ff50788b0e0b161e37a /helix-term/tests/integration/movement.rs
parent36e5809f638028644d8a51e1ed2467ea402de170 (diff)
use main application event loop
Use the Application's main event loop to allow LSP, file writes, etc
Diffstat (limited to 'helix-term/tests/integration/movement.rs')
-rw-r--r--helix-term/tests/integration/movement.rs24
1 files changed, 16 insertions, 8 deletions
diff --git a/helix-term/tests/integration/movement.rs b/helix-term/tests/integration/movement.rs
index fc2583c1..cac10852 100644
--- a/helix-term/tests/integration/movement.rs
+++ b/helix-term/tests/integration/movement.rs
@@ -14,25 +14,29 @@ async fn insert_mode_cursor_position() -> anyhow::Result<()> {
out_text: String::new(),
out_selection: Selection::single(0, 0),
},
- )?;
+ )
+ .await?;
test_key_sequence_text_result(
Args::default(),
Config::default(),
("#[\n|]#", "i", "#[|\n]#"),
- )?;
+ )
+ .await?;
test_key_sequence_text_result(
Args::default(),
Config::default(),
("#[\n|]#", "i<esc>", "#[|\n]#"),
- )?;
+ )
+ .await?;
test_key_sequence_text_result(
Args::default(),
Config::default(),
("#[\n|]#", "i<esc>i", "#[|\n]#"),
- )?;
+ )
+ .await?;
Ok(())
}
@@ -44,7 +48,8 @@ async fn insert_to_normal_mode_cursor_position() -> anyhow::Result<()> {
Args::default(),
Config::default(),
("#[f|]#oo\n", "vll<A-;><esc>", "#[|foo]#\n"),
- )?;
+ )
+ .await?;
test_key_sequence_text_result(
Args::default(),
@@ -60,7 +65,8 @@ async fn insert_to_normal_mode_cursor_position() -> anyhow::Result<()> {
#(|bar)#"
},
),
- )?;
+ )
+ .await?;
test_key_sequence_text_result(
Args::default(),
@@ -76,7 +82,8 @@ async fn insert_to_normal_mode_cursor_position() -> anyhow::Result<()> {
#(ba|)#r"
},
),
- )?;
+ )
+ .await?;
test_key_sequence_text_result(
Args::default(),
@@ -92,7 +99,8 @@ async fn insert_to_normal_mode_cursor_position() -> anyhow::Result<()> {
#(b|)#ar"
},
),
- )?;
+ )
+ .await?;
Ok(())
}