mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 10:20:51 +00:00
Fixed integration test
This commit is contained in:
parent
ab0ca7d42a
commit
59c8e8bdad
1 changed files with 3 additions and 4 deletions
|
@ -38,7 +38,7 @@ const RIGHT_SEQ: &str = "\x1b[C";
|
||||||
const UP_SEQ: &str = "\x1b[A";
|
const UP_SEQ: &str = "\x1b[A";
|
||||||
const DOWN_SEQ: &str = "\x1b[B";
|
const DOWN_SEQ: &str = "\x1b[B";
|
||||||
const DEFAULT_TITLE: &str = "Terminal";
|
const DEFAULT_TITLE: &str = "Terminal";
|
||||||
const DEBUG_TERMINAL_WIDTH: f32 = 300.;
|
const DEBUG_TERMINAL_WIDTH: f32 = 1000.; //This needs to be wide enough that the prompt can fill the whole space.
|
||||||
const DEBUG_TERMINAL_HEIGHT: f32 = 200.;
|
const DEBUG_TERMINAL_HEIGHT: f32 = 200.;
|
||||||
const DEBUG_CELL_WIDTH: f32 = 5.;
|
const DEBUG_CELL_WIDTH: f32 = 5.;
|
||||||
const DEBUG_LINE_HEIGHT: f32 = 5.;
|
const DEBUG_LINE_HEIGHT: f32 = 5.;
|
||||||
|
@ -608,8 +608,7 @@ mod tests {
|
||||||
.expect("Could not remove test directory");
|
.expect("Could not remove test directory");
|
||||||
}
|
}
|
||||||
|
|
||||||
///Basic integration test, can we get the terminal to show up, execute a command,
|
///If this test is failing for you, check that DEBUG_TERMINAL_WIDTH is wide enough to fit your entire command prompt!
|
||||||
//and produce noticable output?
|
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
async fn test_copy(cx: &mut TestAppContext) {
|
async fn test_copy(cx: &mut TestAppContext) {
|
||||||
let terminal = cx.add_view(Default::default(), |cx| Terminal::new(cx, None));
|
let terminal = cx.add_view(Default::default(), |cx| Terminal::new(cx, None));
|
||||||
|
@ -632,7 +631,7 @@ mod tests {
|
||||||
let mut term = terminal.term.lock();
|
let mut term = terminal.term.lock();
|
||||||
term.selection = Some(Selection::new(
|
term.selection = Some(Selection::new(
|
||||||
SelectionType::Semantic,
|
SelectionType::Semantic,
|
||||||
Point::new(Line(3), Column(0)),
|
Point::new(Line(2), Column(0)),
|
||||||
Side::Right,
|
Side::Right,
|
||||||
));
|
));
|
||||||
drop(term);
|
drop(term);
|
||||||
|
|
Loading…
Reference in a new issue