ElyMark: navigation tested through the whole window (C14.8)
desk::open_in takes the data folder, so gpui tests start ElyMark in a temp folder: open, outline, jump, recent list, tabs, folder listing. The web page strings, left from C14.5, go. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
71c5d809f5
commit
53ce8eec0b
8 files changed
+194
-42
No files matched your search
@@ -19,7 +19,6 @@ mod tools;
|
||||
mod tree;
|
||||
mod tree_ops;
|
||||
mod tree_places;
|
||||
mod web;
|
||||
use gpui::{App, SharedString};
|
||||
|
||||
const EN: &[(&str, &str)] = &[
|
||||
@@ -179,7 +178,6 @@ fn catalogs() -> (Catalog, Catalog) {
|
||||
.chain(tree::EN)
|
||||
.chain(tree_ops::EN)
|
||||
.chain(tree_places::EN)
|
||||
.chain(web::EN)
|
||||
.chain(mark::EN)
|
||||
.chain(settings::EN)
|
||||
.copied()
|
||||
@@ -203,7 +201,6 @@ fn catalogs() -> (Catalog, Catalog) {
|
||||
.chain(tree::ZH_CN)
|
||||
.chain(tree_ops::ZH_CN)
|
||||
.chain(tree_places::ZH_CN)
|
||||
.chain(web::ZH_CN)
|
||||
.chain(mark::ZH_CN)
|
||||
.chain(settings::ZH_CN)
|
||||
.copied()
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//! Words for bundled web pages.
|
||||
|
||||
pub(super) const EN: &[(&str, &str)] = &[
|
||||
("web.failed", "The page could not show"),
|
||||
("web.reload", "Reload"),
|
||||
];
|
||||
|
||||
pub(super) const ZH_CN: &[(&str, &str)] = &[
|
||||
("web.failed", "页面无法显示"),
|
||||
("web.reload", "重新载入"),
|
||||
];
|
||||
@@ -10,6 +10,8 @@ pub mod updates;
|
||||
pub mod watching;
|
||||
|
||||
pub use opening::{launch_files, on_open};
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub use opening::install_no_launch_files;
|
||||
pub use run::run;
|
||||
pub use shell::{Root, Shell, blank, document_root, root, set_document_menus, tool_root};
|
||||
pub use tasks::{LongTask, TaskState};
|
||||
@@ -39,6 +39,12 @@ pub(crate) fn keep(asked: mpsc::UnboundedReceiver<PathBuf>, cx: &mut App) {
|
||||
cx.set_global(Asked(Some(asked)));
|
||||
}
|
||||
|
||||
/// No files asked at launch, for tests.
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub fn install_no_launch_files(cx: &mut App) {
|
||||
keep(mpsc::unbounded().1, cx);
|
||||
}
|
||||
|
||||
/// Files asked before the app started: arguments and Finder's.
|
||||
pub fn launch_files(cx: &mut App) -> Vec<PathBuf> {
|
||||
let asked = cx.global_mut::<Asked>().0.as_mut();
|
||||
|
||||
Reference in new issue
Block a user