mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 10:29:35 +03:00
fix failing test
This commit is contained in:
parent
113b7f6f97
commit
2ac537393d
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1736,6 +1736,7 @@ dependencies = [
|
|||||||
"collections",
|
"collections",
|
||||||
"context_menu",
|
"context_menu",
|
||||||
"ctor",
|
"ctor",
|
||||||
|
"drag_and_drop",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
"futures 0.3.24",
|
"futures 0.3.24",
|
||||||
"fuzzy",
|
"fuzzy",
|
||||||
|
@ -20,6 +20,7 @@ test-support = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
drag_and_drop = { path = "../drag_and_drop" }
|
||||||
text = { path = "../text" }
|
text = { path = "../text" }
|
||||||
clock = { path = "../clock" }
|
clock = { path = "../clock" }
|
||||||
collections = { path = "../collections" }
|
collections = { path = "../collections" }
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
use std::{cell::RefCell, rc::Rc, time::Instant};
|
use std::{cell::RefCell, rc::Rc, time::Instant};
|
||||||
|
|
||||||
|
use drag_and_drop::DragAndDrop;
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
use indoc::indoc;
|
use indoc::indoc;
|
||||||
use unindent::Unindent;
|
use unindent::Unindent;
|
||||||
@ -472,6 +473,7 @@ fn test_clone(cx: &mut gpui::MutableAppContext) {
|
|||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
fn test_navigation_history(cx: &mut gpui::MutableAppContext) {
|
fn test_navigation_history(cx: &mut gpui::MutableAppContext) {
|
||||||
cx.set_global(Settings::test(cx));
|
cx.set_global(Settings::test(cx));
|
||||||
|
cx.set_global(DragAndDrop::<Workspace>::default());
|
||||||
use workspace::Item;
|
use workspace::Item;
|
||||||
let (_, pane) = cx.add_window(Default::default(), |cx| Pane::new(None, cx));
|
let (_, pane) = cx.add_window(Default::default(), |cx| Pane::new(None, cx));
|
||||||
let buffer = MultiBuffer::build_simple(&sample_text(300, 5, 'a'), cx);
|
let buffer = MultiBuffer::build_simple(&sample_text(300, 5, 'a'), cx);
|
||||||
|
Loading…
Reference in New Issue
Block a user