aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/utils.rs
diff options
context:
space:
mode:
authorDenis Maximov <denismaximov98@gmail.com>2020-12-18 12:11:25 +0200
committerGitHub <noreply@github.com>2020-12-18 11:11:25 +0100
commitd47904ea5bf3c7d5043c73d953c6ac2545ccdbd9 (patch)
treeb38e2d9ad9090e58d3f33988c4fb82f175a983c7 /src/tests/utils.rs
parentfix(compatibility): fix bash linewrap (#109) (diff)
downloadsl0ppij-d47904ea5bf3c7d5043c73d953c6ac2545ccdbd9.tar.gz
sl0ppij-d47904ea5bf3c7d5043c73d953c6ac2545ccdbd9.tar.xz
sl0ppij-d47904ea5bf3c7d5043c73d953c6ac2545ccdbd9.zip
feature(infrastructure): tabs (#89)
* wip: tabs, just outlining stuff, for now it is a mess * wip: tabs, just outlining stuff, for now it is a mess * wip: formatting * wip: some moving around * wip: not sure why those things are not imported * wip: cleaning up a bit * wip: doesn't render when new tab is created? * wip: doesnt re-render when a new tab is spawned for now * wip: tabs now are a BTreeMap and we can switch between them in both directions * wip: I think that should also be here * wip: cleanup * Spawn a new terminal simultaneously with a new tab * Ensure proper Opening and Closing of tabs * cleanup * more cleanup * tests(snapshots): add 'loading' snapshot to each scenario * fix(tests): update snapshots * Add tests for tabs implementation * wip: added tests, moved tab related stuff to a separate file * wip: var name change, removed unused imports * chore: fromatting * wip: tests are you ok? * Remove next_tab_index field * clean close_tab() logic in screen.render() * wip: more tests added, review changes covered * chore: a programmer and a formatter walk into a bar.... * style(screen): update description comment * docs(tab): add comment description Co-authored-by: denis <denis@airheadventures.com> Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com> Co-authored-by: Aram Drevekenin <aram@poor.dev> Co-authored-by: Kunal Mohan <44079328+kunalmohan@users.noreply.github.com>
Diffstat (limited to 'src/tests/utils.rs')
-rw-r--r--src/tests/utils.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/utils.rs b/src/tests/utils.rs
index 82f2bec5..a107dce4 100644
--- a/src/tests/utils.rs
+++ b/src/tests/utils.rs
@@ -75,4 +75,12 @@ pub mod commands {
pub const MOVE_FOCUS_UP: [u8; 1] = [105];
/// o
pub const MOVE_FOCUS_RIGHT: [u8; 1] = [111];
+ /// 1
+ pub const NEW_TAB: [u8; 1] = [49];
+ /// 2
+ pub const SWITCH_PREV_TAB: [u8; 1] = [50];
+ /// 3
+ pub const SWITCH_NEXT_TAB: [u8; 1] = [51];
+ /// 4
+ pub const CLOSE_TAB: [u8; 1] = [52];
}