Fix documentation and integration tests

pull/7109/head
Nikodem Rabuliński 1 year ago
parent 77bd9450a4
commit 505adef39e
No known key found for this signature in database

@ -59,6 +59,10 @@
| `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. |
| `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. |
| `:debug-eval` | Evaluate expression in current debug context. |
| `:tab-new` | Create a new tab. |
| `:tab-next` | Goto next tab. |
| `:tab-previous` | Goto previous tab. |
| `:tab-rename` | Change the name of the current tab. |
| `:vsplit`, `:vs` | Open the file in a vertical split. |
| `:vsplit-new`, `:vnew` | Open a scratch buffer in a vertical split. |
| `:hsplit`, `:hs`, `:sp` | Open the file in a horizontal split. |

@ -47,14 +47,14 @@ async fn test_split_write_quit_all() -> anyhow::Result<()> {
assert_eq!("hello3", doc3.text().to_string());
helpers::assert_status_not_error(&app.editor);
assert_eq!(3, app.editor.tree.views().count());
assert_eq!(3, app.editor.tabs.curr_tree().views().count());
}),
),
(
Some(":wqa<ret>"),
Some(&|app| {
helpers::assert_status_not_error(&app.editor);
assert_eq!(0, app.editor.tree.views().count());
assert_eq!(0, app.editor.tabs.curr_tree().views().count());
}),
),
],
@ -82,7 +82,7 @@ async fn test_split_write_quit_same_file() -> anyhow::Result<()> {
(
Some("O<esc>ihello<esc>:sp<ret>ogoodbye<esc>"),
Some(&|app| {
assert_eq!(2, app.editor.tree.views().count());
assert_eq!(2, app.editor.tabs.curr_tree().views().count());
helpers::assert_status_not_error(&app.editor);
let mut docs: Vec<_> = app.editor.documents().collect();
@ -102,7 +102,7 @@ async fn test_split_write_quit_same_file() -> anyhow::Result<()> {
Some(":wq<ret>"),
Some(&|app| {
helpers::assert_status_not_error(&app.editor);
assert_eq!(1, app.editor.tree.views().count());
assert_eq!(1, app.editor.tabs.curr_tree().views().count());
let mut docs: Vec<_> = app.editor.documents().collect();
assert_eq!(1, docs.len());

Loading…
Cancel
Save